strapi/scripts/setup.js
Aurélien Georget efa4983608 Update setup
2017-03-14 13:56:32 +01:00

12 lines
385 B
JavaScript
Executable File

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');