mirror of
https://github.com/expo/create-react-native-app.git
synced 2026-11-13 20:28:07 -10:00
24 lines
525 B
JavaScript
24 lines
525 B
JavaScript
const { join } = require('path');
|
|
|
|
const paths = {
|
|
build: 'build',
|
|
source: 'src/**/*.js',
|
|
sourceRoot: join(__dirname, 'src'),
|
|
};
|
|
|
|
export default async function (fly) {
|
|
await fly.watch(paths.source, 'babel');
|
|
}
|
|
|
|
export async function babel(fly, opts) {
|
|
await fly.source(opts.src || paths.source, {ignore: '**/__tests__/**'}).babel().target(paths.build);
|
|
}
|
|
|
|
export async function clean(fly) {
|
|
await fly.clear(paths.build);
|
|
}
|
|
|
|
export async function build(fly, opts) {
|
|
await fly.serial(['clean', 'babel'], opts);
|
|
}
|