},
// JS build configuration
- lineremover: {
- es6Import: {
- files: {
- '<%= concat.bootstrap.dest %>': '<%= concat.bootstrap.dest %>'
- },
- options: {
- exclusionPattern: /^(import|export)/g
- }
- }
- },
-
babel: {
dev: {
options: {
concat: {
options: {
+ // Custom function to remove all export and import statements
+ process: function (src) {
+ return src.replace(/^(export|import).*/gm, '');
+ },
stripBanners: false
},
bootstrap: {
grunt.registerTask('test-js', ['eslint', 'jscs:core', 'jscs:test', 'jscs:grunt', 'qunit']);
// JS distribution task.
- grunt.registerTask('dist-js', ['babel:dev', 'concat', 'lineremover', 'babel:dist', 'stamp', 'uglify:core', 'commonjs']);
+ grunt.registerTask('dist-js', ['babel:dev', 'concat', 'babel:dist', 'stamp', 'uglify:core', 'commonjs']);
grunt.registerTask('test-scss', ['scsslint:core']);
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.0.0.tgz"
},
"ansi-styles": {
- "version": "2.2.0",
- "from": "ansi-styles@>=2.1.0 <3.0.0",
- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.0.tgz"
+ "version": "2.2.1",
+ "from": "ansi-styles@>=2.2.1 <3.0.0",
+ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz"
},
"archiver": {
"version": "0.21.0",
"resolved": "https://registry.npmjs.org/async-foreach/-/async-foreach-0.1.3.tgz"
},
"autoprefixer": {
- "version": "6.3.4",
+ "version": "6.3.5",
"from": "autoprefixer@>=6.0.3 <7.0.0",
- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-6.3.4.tgz"
+ "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-6.3.5.tgz"
},
"aws-sign": {
"version": "0.3.0",
}
},
"caniuse-db": {
- "version": "1.0.30000436",
- "from": "caniuse-db@>=1.0.30000435 <2.0.0",
- "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000436.tgz"
+ "version": "1.0.30000444",
+ "from": "caniuse-db@>=1.0.30000436 <2.0.0",
+ "resolved": "https://registry.npmjs.org/caniuse-db/-/caniuse-db-1.0.30000444.tgz"
},
"caseless": {
"version": "0.11.0",
"resolved": "https://registry.npmjs.org/center-align/-/center-align-0.1.3.tgz"
},
"chalk": {
- "version": "1.1.1",
+ "version": "1.1.3",
"from": "chalk@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.1.tgz",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
"dependencies": {
"supports-color": {
"version": "2.0.0",
}
},
"clean-css": {
- "version": "3.4.10",
+ "version": "3.4.11",
"from": "clean-css@>=3.4.2 <3.5.0",
- "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-3.4.10.tgz",
+ "resolved": "https://registry.npmjs.org/clean-css/-/clean-css-3.4.11.tgz",
"dependencies": {
"commander": {
"version": "2.8.1",
"from": "coffee-script@>=1.3.3 <1.4.0",
"resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.3.3.tgz"
},
- "color-convert": {
- "version": "1.0.0",
- "from": "color-convert@>=1.0.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.0.0.tgz"
- },
"colors": {
"version": "0.6.2",
"from": "colors@>=0.6.2 <0.7.0",
}
},
"grunt-contrib-compress": {
- "version": "1.1.1",
+ "version": "1.2.0",
"from": "grunt-contrib-compress@>=1.1.0 <2.0.0",
- "resolved": "https://registry.npmjs.org/grunt-contrib-compress/-/grunt-contrib-compress-1.1.1.tgz"
+ "resolved": "https://registry.npmjs.org/grunt-contrib-compress/-/grunt-contrib-compress-1.2.0.tgz",
+ "dependencies": {
+ "lodash": {
+ "version": "4.7.0",
+ "from": "lodash@>=4.7.0 <5.0.0",
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.7.0.tgz"
+ }
+ }
},
"grunt-contrib-concat": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-contrib-uglify-1.0.1.tgz",
"dependencies": {
"lodash": {
- "version": "4.6.1",
+ "version": "4.7.0",
"from": "lodash@>=4.0.1 <5.0.0",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.6.1.tgz"
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.7.0.tgz"
}
}
},
"version": "1.5.2",
"from": "async@1.5.2",
"resolved": "https://registry.npmjs.org/async/-/async-1.5.2.tgz"
+ },
+ "chalk": {
+ "version": "1.1.1",
+ "from": "chalk@1.1.1",
+ "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.1.tgz"
+ },
+ "supports-color": {
+ "version": "2.0.0",
+ "from": "supports-color@>=2.0.0 <3.0.0",
+ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz"
}
}
},
"from": "grunt-lib-phantomjs@>=1.0.0 <2.0.0",
"resolved": "https://registry.npmjs.org/grunt-lib-phantomjs/-/grunt-lib-phantomjs-1.0.1.tgz"
},
- "grunt-line-remover": {
- "version": "0.0.2",
- "from": "grunt-line-remover@0.0.2",
- "resolved": "https://registry.npmjs.org/grunt-line-remover/-/grunt-line-remover-0.0.2.tgz"
- },
"grunt-postcss": {
"version": "0.8.0",
"from": "grunt-postcss@>=0.8.0 <0.9.0",
"resolved": "https://registry.npmjs.org/mute-stream/-/mute-stream-0.0.5.tgz"
},
"nan": {
- "version": "2.2.0",
+ "version": "2.2.1",
"from": "nan@>=2.0.8 <3.0.0",
- "resolved": "https://registry.npmjs.org/nan/-/nan-2.2.0.tgz"
+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.2.1.tgz"
},
"natural-compare": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz"
},
"phantomjs-prebuilt": {
- "version": "2.1.6",
+ "version": "2.1.7",
"from": "phantomjs-prebuilt@>=2.1.3 <3.0.0",
- "resolved": "https://registry.npmjs.org/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.6.tgz",
+ "resolved": "https://registry.npmjs.org/phantomjs-prebuilt/-/phantomjs-prebuilt-2.1.7.tgz",
"dependencies": {
"which": {
"version": "1.2.4",
"resolved": "https://registry.npmjs.org/glob/-/glob-6.0.4.tgz"
},
"lodash": {
- "version": "4.6.1",
+ "version": "4.7.0",
"from": "lodash@>=4.0.0 <5.0.0",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.6.1.tgz"
+ "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.7.0.tgz"
}
}
},
"resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.2.tgz"
},
"tweetnacl": {
- "version": "0.14.1",
+ "version": "0.14.3",
"from": "tweetnacl@>=0.13.0 <1.0.0",
- "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.1.tgz"
+ "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.3.tgz"
},
"type-check": {
"version": "0.3.2",