1 |
|
2 |
|
3 | /**
|
4 | * Compile to browser source
|
5 | */
|
6 |
|
7 |
|
8 |
|
9 | process.chdir(`${__dirname}/..`)
|
10 |
|
11 | const apeTasking = require('ape-tasking')
|
12 | const apeCompiling = require('ape-compiling')
|
13 | const filedel = require('filedel')
|
14 |
|
15 | apeTasking.runTasks('browser', [
|
16 | () => filedel('browser/**/*.js'),
|
17 | () => apeCompiling.compileToEs5('**/*.js', {
|
18 | cwd: 'lib',
|
19 | out: 'browser'
|
20 | })
|
21 | ], true)
|