Skip to content

Commit

Permalink
Use babel env preset, simplify testing pipeline
Browse files Browse the repository at this point in the history
With the new Node LTS as our baseline we don't really have to
do extra transpilation. ava still does its own but it does so
inconsistently ( avajs/ava#1319 ),
so we've switched back from import to require(). Indeed ava
might get an option to turn off transpilation altogether
( avajs/ava#1556 ), which we
may end up using if it doesn't come with bad tradeoffs.
  • Loading branch information
eloquence committed Nov 5, 2017
1 parent e58f140 commit 5257395
Show file tree
Hide file tree
Showing 11 changed files with 532 additions and 543 deletions.
523 changes: 269 additions & 254 deletions .eslintrc.json

Large diffs are not rendered by default.

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ config/development.json5
static/js
static/css/editor

# Generated
*-es5.js*

# Built via jsdoc
static/devdocs/frontend
static/devdocs/backend
Expand Down
16 changes: 1 addition & 15 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,24 +41,10 @@ module.exports = function(grunt) {
}
},
babel: {
tests: {
options: {
sourceMap: true,
plugins: ['transform-runtime'],
presets: ['es2015', 'stage-2']
},
files: {
'tests/helpers/model-helpers-es5.js': 'tests/helpers/model-helpers.js',
'tests/helpers/integration-helpers-es5.js': 'tests/helpers/integration-helpers.js',
'tests/helpers/content-helpers-es5.js': 'tests/helpers/content-helpers.js',
'tests/helpers/test-helpers-es5.js': 'tests/helpers/test-helpers.js',
'tests/fixtures/db-fixture-es5.js': 'tests/fixtures/db-fixture.js'
}
},
mainJS: {
options: {
sourceMap: true,
presets: ['es2015']
presets: ['env']
},
files: {
'static/js/libreviews.js': 'frontend/libreviews.js',
Expand Down
Loading

0 comments on commit 5257395

Please # to comment.