Skip to content

Commit

Permalink
replace es6. modules prefix to es., remove core-js/es5/* entry …
Browse files Browse the repository at this point in the history
…points
  • Loading branch information
zloirock committed Aug 9, 2017
1 parent 89d7e67 commit c0fd8c4
Show file tree
Hide file tree
Showing 1,618 changed files with 15,985 additions and 16,156 deletions.
340 changes: 144 additions & 196 deletions README.md

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions build/Gruntfile.ls
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = (grunt)->
copy: lib: files:
* expand: on
cwd: './'
src: <[es5/** es6/** stage/** web/** core/** fn/** index.js shim.js]>
src: <[es/** stage/** web/** core/** fn/** index.js shim.js]>
dest: './library/'
* expand: on
cwd: './'
Expand Down Expand Up @@ -56,7 +56,7 @@ module.exports = (grunt)->
grunt.registerTask \build (options)->
done = @async!
build {
modules: (options || 'es6,esnext,web,core')split \,
modules: (options || 'es,esnext,web,core')split \,
blacklist: (grunt.option(\blacklist) || '')split \,
library: grunt.option(\library) in <[yes on true]>
umd: grunt.option(\umd) not in <[no off false]>
Expand All @@ -70,17 +70,17 @@ module.exports = (grunt)->
grunt.registerTask \client ->
grunt.option \library ''
grunt.option \path './client/core'
grunt.task.run <[build:es6,esnext,web,core uglify]>
grunt.task.run <[build:es,esnext,web,core uglify]>
grunt.registerTask \library ->
grunt.option \library 'true'
grunt.option \path './client/library'
grunt.task.run <[build:es6,esnext,web,core uglify]>
grunt.task.run <[build:es,esnext,web,core uglify]>
grunt.registerTask \shim ->
grunt.option \library ''
grunt.option \path './client/shim'
grunt.task.run <[build:es6,esnext,web uglify]>
grunt.task.run <[build:es,esnext,web uglify]>
grunt.registerTask \e ->
grunt.option \library ''>
grunt.option \path './client/core'
grunt.task.run <[build:es6,esnext,web,core,exp uglify]>
grunt.registerTask \default <[clean copy client library shim]>
grunt.task.run <[build:es,esnext,web,core,exp uglify]>
grunt.registerTask \default <[clean copy client library shim]>
3 changes: 1 addition & 2 deletions build/build.ls
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
require! {
'../library/fn/promise': Promise
'./config': {list, experimental, libraryBlacklist, es5SpecialCase, banner}
'./config': {list, experimental, libraryBlacklist, banner}
fs: {readFile, writeFile, unlink}
path: {basename, dirname, join}
webpack, temp
Expand All @@ -10,7 +10,6 @@ module.exports = ({modules = [], blacklist = [], library = no, umd = on})->
resolve, reject <~! new Promise _
let @ = modules.reduce ((memo, it)-> memo[it] = on; memo), {}
if @exp => for experimental => @[..] = on
if @es5 => for es5SpecialCase => @[..] = on
for ns of @
if @[ns]
for name in list
Expand Down
Loading

0 comments on commit c0fd8c4

Please sign in to comment.