AST tests (#5097)
* fix momentum scrolling on iOS (#5083)
* Revert "fix momentum scrolling on iOS (#5083)" (#5084)
This reverts commit 812571843c
.
* AST tests (WIP)
* added tests
* cleanup
new helpers for cleaner code
* more tests
tests are mostly complete now.
also included one for our helper function.
* string quotes
* Update dependencies; disable some babel-minify transforms to work around https://github.com/babel/minify/issues/893 (#5095)
* more tests + refactor
* Remove unused helper function; improve logging output
* Add tests for ImportNamespaceSpecifier, Expansion; cleanup
* CI: Test first before building, so that the tests run on the committed, built files in /lib; the build parts of CI are only a test that the build process succeeds, so we shouldn't be testing the output of the CI build steps
This commit is contained in:
parent
16b4448fe8
commit
db86dc4d8b
|
@ -10,11 +10,11 @@ cache:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- node ./bin/cake build:except-parser
|
|
||||||
- node ./bin/cake build:parser
|
|
||||||
- node ./bin/cake build:full
|
|
||||||
- node ./bin/cake build:browser
|
|
||||||
- node ./bin/cake test
|
- node ./bin/cake test
|
||||||
- node --harmony ./bin/cake test
|
- node --harmony ./bin/cake test
|
||||||
- node ./bin/cake test:browser
|
- node ./bin/cake test:browser
|
||||||
- node ./bin/cake test:integrations
|
- node ./bin/cake test:integrations
|
||||||
|
- node ./bin/cake build:except-parser
|
||||||
|
- node ./bin/cake build:parser
|
||||||
|
- node ./bin/cake build:full
|
||||||
|
- node ./bin/cake build:browser
|
||||||
|
|
2
Cakefile
2
Cakefile
|
@ -72,7 +72,7 @@ transpile = (code) ->
|
||||||
# Exclude the `modules` plugin in order to not break the `}(this));`
|
# Exclude the `modules` plugin in order to not break the `}(this));`
|
||||||
# at the end of the `build:browser` code block.
|
# at the end of the `build:browser` code block.
|
||||||
presets.push ['env', {modules: no}] unless process.env.TRANSFORM is 'false'
|
presets.push ['env', {modules: no}] unless process.env.TRANSFORM is 'false'
|
||||||
presets.push ['minify', {mangle: no}] unless process.env.MINIFY is 'false'
|
presets.push ['minify', {mangle: no, evaluate: no, removeUndefined: no}] unless process.env.MINIFY is 'false'
|
||||||
babelOptions =
|
babelOptions =
|
||||||
compact: process.env.MINIFY isnt 'false'
|
compact: process.env.MINIFY isnt 'false'
|
||||||
presets: presets
|
presets: presets
|
||||||
|
|
|
@ -15,14 +15,14 @@ cache:
|
||||||
- node_modules
|
- node_modules
|
||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- node ./bin/cake build:except-parser
|
|
||||||
- node ./bin/cake build:parser
|
|
||||||
- node ./bin/cake build:full
|
|
||||||
- node ./bin/cake build:browser
|
|
||||||
- node ./bin/cake test
|
- node ./bin/cake test
|
||||||
- node --harmony ./bin/cake test
|
- node --harmony ./bin/cake test
|
||||||
- node ./bin/cake test:browser
|
- node ./bin/cake test:browser
|
||||||
- node ./bin/cake test:integrations
|
- node ./bin/cake test:integrations
|
||||||
|
- node ./bin/cake build:except-parser
|
||||||
|
- node ./bin/cake build:parser
|
||||||
|
- node ./bin/cake build:full
|
||||||
|
- node ./bin/cake build:browser
|
||||||
|
|
||||||
build: off
|
build: off
|
||||||
|
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -1540,7 +1540,7 @@ inner = changeNumbers();
|
||||||
<span class="cm-keyword">return</span> <span class="cm-variable">outer</span> <span class="cm-operator">=</span> <span class="cm-number">10</span>;
|
<span class="cm-keyword">return</span> <span class="cm-variable">outer</span> <span class="cm-operator">=</span> <span class="cm-number">10</span>;
|
||||||
};
|
};
|
||||||
|
|
||||||
<span class="cm-variable">inner</span> <span class="cm-operator">=</span> <span class="cm-variable">changeNumbers</span>();
|
<span class="cm-variable-2">inner</span> <span class="cm-operator">=</span> <span class="cm-variable">changeNumbers</span>();
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
|
@ -39,16 +39,16 @@
|
||||||
"url": "git://github.com/jashkenas/coffeescript.git"
|
"url": "git://github.com/jashkenas/coffeescript.git"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-core": "6.26.3",
|
"babel-core": "^6.26.3",
|
||||||
"babel-preset-env": "1.6.1",
|
"babel-preset-env": "1.7.0",
|
||||||
"babel-preset-minify": "0.4.0",
|
"babel-preset-minify": "^0.4.3",
|
||||||
"codemirror": "^5.37.0",
|
"codemirror": "^5.39.2",
|
||||||
"docco": "~0.8.0",
|
"docco": "~0.8.0",
|
||||||
"highlight.js": "~9.12.0",
|
"highlight.js": "~9.12.0",
|
||||||
"jison": ">=0.4.18",
|
"jison": ">=0.4.18",
|
||||||
"markdown-it": "~8.4.1",
|
"markdown-it": "~8.4.2",
|
||||||
"underscore": "~1.9.0",
|
"underscore": "~1.9.1",
|
||||||
"webpack": "~4.6.0"
|
"webpack": "~4.16.5"
|
||||||
},
|
},
|
||||||
"dependencies": {}
|
"dependencies": {}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue