aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/build/Gruntfile.ls
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-27 17:36:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-27 17:36:13 +0200
commit5f466137ad6ac596600e3ff53c9b786815398445 (patch)
treef914c221874f0b16bf3def7ac01d59d1a99a3b0b /node_modules/core-js/build/Gruntfile.ls
parentc9f5ac8e763eda19aa0564179300cfff76785435 (diff)
node_modules, clean up package.json
Diffstat (limited to 'node_modules/core-js/build/Gruntfile.ls')
-rw-r--r--node_modules/core-js/build/Gruntfile.ls24
1 files changed, 12 insertions, 12 deletions
diff --git a/node_modules/core-js/build/Gruntfile.ls b/node_modules/core-js/build/Gruntfile.ls
index 615184241..f4b53809a 100644
--- a/node_modules/core-js/build/Gruntfile.ls
+++ b/node_modules/core-js/build/Gruntfile.ls
@@ -1,5 +1,4 @@
require! <[./build fs ./config]>
-library-tests = <[client/library.js tests/helpers.js tests/library.js]>map -> src: it
module.exports = (grunt)->
grunt.loadNpmTasks \grunt-contrib-clean
grunt.loadNpmTasks \grunt-contrib-copy
@@ -27,7 +26,7 @@ module.exports = (grunt)->
copy: lib: files:
* expand: on
cwd: './'
- src: <[es5/** es6/** es7/** js/** web/** core/** fn/** index.js shim.js]>
+ src: <[es5/** es6/** es7/** stage/** web/** core/** fn/** index.js shim.js]>
dest: './library/'
* expand: on
cwd: './'
@@ -50,21 +49,22 @@ module.exports = (grunt)->
configFile: './tests/karma.conf.js'
browsers: <[PhantomJS]>
singleRun: on
- 'continuous': {}
- 'continuous-library':
- files: library-tests
+ 'default': {}
+ 'library': files: <[client/library.js tests/helpers.js tests/library.js]>map -> src: it
grunt.registerTask \build (options)->
done = @async!
- err, it <- build {
- modules: (options || 'es5,es6,es7,js,web,core')split \,
+ build {
+ modules: (options || 'es5,es6,es7,js,web,core')split \,
blacklist: (grunt.option(\blacklist) || '')split \,
- library: !!grunt.option \library
+ library: grunt.option(\library) in <[yes on true]>
+ umd: grunt.option(\umd) not in <[no off false]>
}
- if err
- console.error err
+ .then !->
+ grunt.option(\path) || grunt.option(\path, './custom')
+ fs.writeFile grunt.option(\path) + '.js', it, done
+ .catch !->
+ console.error it
process.exit 1
- grunt.option(\path) || grunt.option(\path, './custom')
- fs.writeFile grunt.option(\path) + '.js', it, done
grunt.registerTask \client ->
grunt.option \library ''
grunt.option \path './client/core'