strapi/scripts/setup.js

12 lines
385 B
JavaScript
Raw Normal View History

2017-03-14 12:25:39 +01:00
const shell = require('shelljs');
// Remove existing binary.
shell.rm('-f', '/usr/local/bin/strapi.js');
shell.echo('Bootstraping packages and building dashboard...');
shell.echo('This can take few minutes (2-3)');
shell.exec('node node_modules/lerna/bin/lerna bootstrap --nohoist --stream');
shell.echo('Linking Strapi CLI...');
shell.cd('packages/strapi');
shell.exec('npm link');