UNPKG

433 BJavaScriptView Raw
1#!/usr/bin/env node
2
3/**
4 * Compile to browser source
5 */
6
7'use strict'
8
9process.chdir(`${__dirname}/..`)
10
11const { runTasks } = require('ape-tasking')
12const ababelES2015 = require('ababel-es2015')
13const filecopy = require('filecopy')
14
15runTasks('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)