1 |
|
2 |
|
3 | /**
|
4 | * Compile to browser source
|
5 | */
|
6 |
|
7 |
|
8 |
|
9 | process.chdir(`${__dirname}/..`)
|
10 |
|
11 | const { runTasks } = require('ape-tasking')
|
12 | const ababelES2015 = require('ababel-es2015')
|
13 | const filecopy = require('filecopy')
|
14 |
|
15 | runTasks('browser', [
|
16 | () => ababelES2015('**/*.js', {
|
17 | cwd: 'lib',
|
18 | out: 'shim/browser'
|
19 | }),
|
20 | () => filecopy('lib/buildin/*.json', 'shim/browser/buildin', {
|
21 | mkdirp: true
|
22 | })
|
23 | ], true)
|