diff --git a/package.json b/package.json index 712ebe34a..5538e8880 100644 --- a/package.json +++ b/package.json @@ -39,12 +39,34 @@ "space-pen": "2.0.0", "telepath": "0.8.1", "temp": "0.5.0", - "underscore-plus": "0.2.0", - - "atom-light-ui": "0.4.0", - "atom-light-syntax": "0.4.0", - "atom-dark-ui": "0.4.0", - "atom-dark-syntax": "0.4.0", + "underscore-plus": "0.2.0" + }, + "devDependencies": { + "biscotto": "0.0.17", + "formidable": "~1.0.14", + "fstream": "0.1.24", + "grunt": "~0.4.1", + "grunt-cli": "~0.1.9", + "grunt-coffeelint": "0.0.6", + "grunt-lesslint": "0.13.0", + "grunt-cson": "0.5.0", + "grunt-contrib-csslint": "~0.1.2", + "grunt-contrib-coffee": "~0.7.0", + "grunt-contrib-less": "~0.6.4", + "walkdir": "0.0.7", + "ws": "0.4.27", + "js-yaml": "~2.1.0", + "grunt-markdown": "~0.4.0", + "json-front-matter": "~0.1.3", + "grunt-shell": "~0.3.1", + "jasmine-node": "git://github.com/kevinsawicki/jasmine-node.git#short-stacks", + "request": "~2.27.0" + }, + "packageDependencies" : { + "atom-light-ui": "0.5.0", + "atom-light-syntax": "0.5.0", + "atom-dark-ui": "0.5.0", + "atom-dark-syntax": "0.5.0", "base16-tomorrow-dark-theme": "0.2.0", "solarized-dark-syntax": "0.3.0", @@ -53,7 +75,7 @@ "autoflow": "0.5.0", "bookmarks": "0.8.0", "bracket-matcher": "0.7.0", - "collaboration": "0.26.0", + "collaboration": "0.28.0", "command-logger": "0.6.0", "command-palette": "0.5.0", "dev-live-reload": "0.8.0", @@ -88,58 +110,37 @@ "whitespace": "0.7.0", "wrap-guide": "0.4.0", - "c-tmbundle": "1.0.0", - "coffee-script-tmbundle": "1.0.0", - "css-tmbundle": "1.0.0", - "git-tmbundle": "1.0.0", - "go-tmbundle": "1.0.0", - "html-tmbundle": "1.0.0", - "hyperlink-helper-tmbundle": "1.0.0", - "java-tmbundle": "1.0.0", - "javascript-tmbundle": "2.0.0", - "json-tmbundle": "1.0.0", - "less-tmbundle": "1.0.0", - "make-tmbundle": "1.0.0", - "mustache-tmbundle": "1.0.0", - "objective-c-tmbundle": "1.0.0", - "pegjs-tmbundle": "1.0.0", - "perl-tmbundle": "1.0.0", - "php-tmbundle": "1.0.0", - "property-list-tmbundle": "1.0.0", - "puppet-textmate-tmbundle": "1.0.0", - "python-tmbundle": "1.0.0", - "ruby-on-rails-tmbundle": "1.0.0", - "ruby-tmbundle": "1.0.0", - "sass-tmbundle": "1.0.0", - "shellscript-tmbundle": "1.0.0", - "source-tmbundle": "1.0.0", - "sql-tmbundle": "1.0.0", - "text-tmbundle": "1.0.0", - "textmate-clojure": "1.0.0", - "todo-tmbundle": "1.0.0", - "xml-tmbundle": "1.0.0", - "yaml-tmbundle": "1.0.0" - }, - "devDependencies": { - "biscotto": "0.0.17", - "formidable": "~1.0.14", - "fstream": "0.1.24", - "grunt": "~0.4.1", - "grunt-cli": "~0.1.9", - "grunt-coffeelint": "0.0.6", - "grunt-lesslint": "0.13.0", - "grunt-cson": "0.5.0", - "grunt-contrib-csslint": "~0.1.2", - "grunt-contrib-coffee": "~0.7.0", - "grunt-contrib-less": "~0.6.4", - "walkdir": "0.0.7", - "ws": "0.4.27", - "js-yaml": "~2.1.0", - "grunt-markdown": "~0.4.0", - "json-front-matter": "~0.1.3", - "grunt-shell": "~0.3.1", - "jasmine-node": "git://github.com/kevinsawicki/jasmine-node.git#short-stacks", - "request": "~2.27.0" + "language-c": "0.1.0", + "language-clojure": "0.1.0", + "language-coffee-script": "0.1.0", + "language-css": "0.1.0", + "language-git": "0.1.0", + "language-go": "0.2.0", + "language-html": "0.1.0", + "language-hyperlink": "0.2.0", + "language-java": "0.1.0", + "language-javascript": "0.1.0", + "language-json": "0.1.0", + "language-less": "0.1.0", + "language-make": "0.1.0", + "language-mustache": "0.1.0", + "language-objective-c": "0.1.0", + "language-pegjs": "0.1.0", + "language-perl": "0.1.0", + "language-php": "0.1.0", + "language-property-list": "0.2.0", + "language-puppet": "0.1.0", + "language-python": "0.1.0", + "language-ruby-on-rails": "0.2.0", + "language-ruby": "0.2.0", + "language-sass": "0.2.0", + "language-shellscript": "0.1.0", + "language-source": "0.1.0", + "language-sql": "0.1.0", + "language-text": "0.1.0", + "language-todo": "0.2.0", + "language-xml": "0.1.0", + "language-yaml": "0.1.0" }, "private": true, "scripts": { diff --git a/script/cibuild b/script/cibuild index 9a749de51..4b2c78c99 100755 --- a/script/cibuild +++ b/script/cibuild @@ -27,15 +27,14 @@ function readEnvironmentVariables(callback) { }); } -cp.safeExec('node script/bootstrap', function() { - var async = require('async'); - async.series([ - readEnvironmentVariables, - require('rimraf').bind(global, path.join(homeDir, '.atom')), - cp.safeExec.bind(global, 'git clean -dff'), - cp.safeExec.bind(global, 'node node_modules/.bin/apm clean'), - cp.safeExec.bind(global, 'node node_modules/.bin/grunt ci --stack --no-color'), - ], function(error) { - process.exit(error ? 1 : 0); - }); +var async = require('async'); +async.series([ + readEnvironmentVariables, + cp.safeExec.bind(global, 'node script/bootstrap'), + require('rimraf').bind(global, path.join(homeDir, '.atom')), + cp.safeExec.bind(global, 'git clean -dff'), + cp.safeExec.bind(global, 'node node_modules/.bin/apm clean'), + cp.safeExec.bind(global, 'node node_modules/.bin/grunt ci --stack --no-color'), +], function(error) { + process.exit(error ? 1 : 0); }); diff --git a/spec/atom-spec.coffee b/spec/atom-spec.coffee index ed357c0fe..65eda00c0 100644 --- a/spec/atom-spec.coffee +++ b/spec/atom-spec.coffee @@ -239,12 +239,12 @@ describe "the `atom` global", -> describe "textmate packages", -> it "loads the package's grammars", -> expect(syntax.selectGrammar("file.rb").name).toBe "Null Grammar" - atom.activatePackage('ruby-tmbundle', sync: true) + atom.activatePackage('language-ruby', sync: true) expect(syntax.selectGrammar("file.rb").name).toBe "Ruby" it "translates the package's scoped properties to Atom terms", -> expect(syntax.getProperty(['.source.ruby'], 'editor.commentStart')).toBeUndefined() - atom.activatePackage('ruby-tmbundle', sync: true) + atom.activatePackage('language-ruby', sync: true) expect(syntax.getProperty(['.source.ruby'], 'editor.commentStart')).toBe '# ' describe "when the package has no grammars but does have preferences", -> @@ -327,12 +327,12 @@ describe "the `atom` global", -> describe "textmate packages", -> it "removes the package's grammars", -> expect(syntax.selectGrammar("file.rb").name).toBe "Null Grammar" - atom.activatePackage('ruby-tmbundle', sync: true) + atom.activatePackage('language-ruby', sync: true) expect(syntax.selectGrammar("file.rb").name).toBe "Ruby" - atom.deactivatePackage('ruby-tmbundle') + atom.deactivatePackage('language-ruby') expect(syntax.selectGrammar("file.rb").name).toBe "Null Grammar" it "removes the package's scoped properties", -> - atom.activatePackage('ruby-tmbundle', sync: true) - atom.deactivatePackage('ruby-tmbundle') + atom.activatePackage('language-ruby', sync: true) + atom.deactivatePackage('language-ruby') expect(syntax.getProperty(['.source.ruby'], 'editor.commentStart')).toBeUndefined() diff --git a/spec/display-buffer-spec.coffee b/spec/display-buffer-spec.coffee index 6b7c699df..d2d18e646 100644 --- a/spec/display-buffer-spec.coffee +++ b/spec/display-buffer-spec.coffee @@ -5,7 +5,7 @@ describe "DisplayBuffer", -> [displayBuffer, buffer, changeHandler, tabLength] = [] beforeEach -> tabLength = 2 - atom.activatePackage('javascript-tmbundle', sync: true) + atom.activatePackage('language-javascript', sync: true) buffer = project.bufferForPathSync('sample.js') displayBuffer = new DisplayBuffer({buffer, tabLength}) changeHandler = jasmine.createSpy 'changeHandler' diff --git a/spec/edit-session-spec.coffee b/spec/edit-session-spec.coffee index 4c6320e53..9ecb7fed9 100644 --- a/spec/edit-session-spec.coffee +++ b/spec/edit-session-spec.coffee @@ -16,7 +16,7 @@ describe "EditSession", -> describe "with default options", -> beforeEach -> - atom.activatePackage('javascript-tmbundle', sync: true) + atom.activatePackage('language-javascript', sync: true) editSession = project.openSync('sample.js', autoIndent: false) buffer = editSession.buffer lineLengths = buffer.getLines().map (line) -> line.length diff --git a/spec/editor-spec.coffee b/spec/editor-spec.coffee index 595e025dd..42d37f382 100644 --- a/spec/editor-spec.coffee +++ b/spec/editor-spec.coffee @@ -6,8 +6,8 @@ describe "Editor", -> [buffer, editor, editSession, cachedLineHeight, cachedCharWidth] = [] beforeEach -> - atom.activatePackage('text-tmbundle', sync: true) - atom.activatePackage('javascript-tmbundle', sync: true) + atom.activatePackage('language-text', sync: true) + atom.activatePackage('language-javascript', sync: true) editSession = project.openSync('sample.js') buffer = editSession.buffer editor = new Editor(editSession) diff --git a/spec/language-mode-spec.coffee b/spec/language-mode-spec.coffee index 6dd7d54f9..37b268840 100644 --- a/spec/language-mode-spec.coffee +++ b/spec/language-mode-spec.coffee @@ -6,7 +6,7 @@ describe "LanguageMode", -> describe "javascript", -> beforeEach -> - atom.activatePackage('javascript-tmbundle', sync: true) + atom.activatePackage('language-javascript', sync: true) editSession = project.openSync('sample.js', autoIndent: false) {buffer, languageMode} = editSession @@ -97,7 +97,7 @@ describe "LanguageMode", -> describe "coffeescript", -> beforeEach -> - atom.activatePackage('coffee-script-tmbundle', sync: true) + atom.activatePackage('language-coffee-script', sync: true) editSession = project.openSync('coffee.coffee', autoIndent: false) {buffer, languageMode} = editSession @@ -144,7 +144,7 @@ describe "LanguageMode", -> describe "css", -> beforeEach -> - atom.activatePackage('css-tmbundle', sync: true) + atom.activatePackage('language-css', sync: true) editSession = project.openSync('css.css', autoIndent: false) {buffer, languageMode} = editSession @@ -185,8 +185,8 @@ describe "LanguageMode", -> describe "less", -> beforeEach -> - atom.activatePackage('less-tmbundle', sync: true) - atom.activatePackage('css-tmbundle', sync: true) + atom.activatePackage('language-less', sync: true) + atom.activatePackage('language-css', sync: true) editSession = project.openSync('sample.less', autoIndent: false) {buffer, languageMode} = editSession @@ -197,7 +197,7 @@ describe "LanguageMode", -> describe "folding", -> beforeEach -> - atom.activatePackage('javascript-tmbundle', sync: true) + atom.activatePackage('language-javascript', sync: true) editSession = project.openSync('sample.js', autoIndent: false) {buffer, languageMode} = editSession @@ -287,7 +287,7 @@ describe "LanguageMode", -> describe "folding with comments", -> beforeEach -> - atom.activatePackage('javascript-tmbundle', sync: true) + atom.activatePackage('language-javascript', sync: true) editSession = project.openSync('sample-with-comments.js', autoIndent: false) {buffer, languageMode} = editSession @@ -340,8 +340,8 @@ describe "LanguageMode", -> describe "css", -> beforeEach -> - atom.activatePackage('source-tmbundle', sync: true) - atom.activatePackage('css-tmbundle', sync: true) + atom.activatePackage('language-source', sync: true) + atom.activatePackage('language-css', sync: true) editSession = project.openSync('css.css', autoIndent: true) describe "suggestedIndentForBufferRow", -> diff --git a/spec/syntax-spec.coffee b/spec/syntax-spec.coffee index b3e46ff38..3d95ad0df 100644 --- a/spec/syntax-spec.coffee +++ b/spec/syntax-spec.coffee @@ -5,10 +5,10 @@ TextMateGrammar = require '../src/text-mate-grammar' describe "the `syntax` global", -> beforeEach -> - atom.activatePackage('text-tmbundle', sync: true) - atom.activatePackage('javascript-tmbundle', sync: true) - atom.activatePackage('coffee-script-tmbundle', sync: true) - atom.activatePackage('ruby-tmbundle', sync: true) + atom.activatePackage('language-text', sync: true) + atom.activatePackage('language-javascript', sync: true) + atom.activatePackage('language-coffee-script', sync: true) + atom.activatePackage('language-ruby', sync: true) describe "serialization", -> it "remembers grammar overrides by path", -> @@ -21,7 +21,7 @@ describe "the `syntax` global", -> describe ".selectGrammar(filePath)", -> it "can use the filePath to load the correct grammar based on the grammar's filetype", -> - atom.activatePackage('git-tmbundle', sync: true) + atom.activatePackage('language-git', sync: true) expect(syntax.selectGrammar("file.js").name).toBe "JavaScript" # based on extension (.js) expect(syntax.selectGrammar(path.join(temp.dir, '.git', 'config')).name).toBe "Git Config" # based on end of the path (.git/config) @@ -34,7 +34,7 @@ describe "the `syntax` global", -> expect(syntax.selectGrammar(filePath).name).toBe "Ruby" it "uses the number of newlines in the first line regex to determine the number of lines to test against", -> - atom.activatePackage('property-list-tmbundle', sync: true) + atom.activatePackage('language-property-list', sync: true) fileContent = "first-line\n" expect(syntax.selectGrammar("dummy.coffee", fileContent).name).toBe "CoffeeScript" diff --git a/spec/text-mate-grammar-spec.coffee b/spec/text-mate-grammar-spec.coffee index 5b898bc52..2c76a9796 100644 --- a/spec/text-mate-grammar-spec.coffee +++ b/spec/text-mate-grammar-spec.coffee @@ -6,13 +6,13 @@ describe "TextMateGrammar", -> grammar = null beforeEach -> - atom.activatePackage('text-tmbundle', sync: true) - atom.activatePackage('javascript-tmbundle', sync: true) - atom.activatePackage('coffee-script-tmbundle', sync: true) - atom.activatePackage('ruby-tmbundle', sync: true) - atom.activatePackage('html-tmbundle', sync: true) - atom.activatePackage('php-tmbundle', sync: true) - atom.activatePackage('python-tmbundle', sync: true) + atom.activatePackage('language-text', sync: true) + atom.activatePackage('language-javascript', sync: true) + atom.activatePackage('language-coffee-script', sync: true) + atom.activatePackage('language-ruby', sync: true) + atom.activatePackage('language-html', sync: true) + atom.activatePackage('language-php', sync: true) + atom.activatePackage('language-python', sync: true) grammar = syntax.selectGrammar("hello.coffee") describe "@loadSync(path)", -> @@ -211,8 +211,8 @@ describe "TextMateGrammar", -> describe "when the pattern includes rules from another grammar", -> describe "when a grammar matching the desired scope is available", -> it "parses tokens inside the begin/end patterns based on the included grammar's rules", -> - atom.activatePackage('html-tmbundle', sync: true) - atom.activatePackage('ruby-on-rails-tmbundle', sync: true) + atom.activatePackage('language-html', sync: true) + atom.activatePackage('language-ruby-on-rails', sync: true) grammar = syntax.grammarForScopeName('text.html.ruby') {tokens} = grammar.tokenizeLine("