maestro-native
Version:
Avoka Native Component Build Tools
11 lines (9 loc) • 462 B
JavaScript
var fs = require('fs-extra');
fs.copy('./gulpfile.js', '../../gulpfile.js');
fs.copy('./g.cmd', '../../g.cmd');
fs.copy('./library.properties', '../../library.properties');
fs.copy('./new-component.properties', '../../new-component.properties');
fs.copy('./package.json.org', '../../package.json');
fs.copy('./template', '../../template');
fs.writeFile('../../g.sh', '#!/bin/sh\nnode node_modules/gulp/bin/gulp.js $*\n')
fs.chmod('../../g.sh', 0755);