UNPKG

355 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 ababel = require('ababel')
13
14runTasks('shim', [
15 () => ababel('**/*.js', {
16 cwd: 'lib',
17 out: 'shim/node'
18 }),
19 () => ababel('**/*.js', {
20 cwd: 'lib',
21 out: 'shim/browser'
22 })
23], true)