mirror of
https://github.com/strapi/strapi.git
synced 2025-07-17 22:14:25 +00:00
29 lines
1.1 KiB
JavaScript
Executable File
29 lines
1.1 KiB
JavaScript
Executable File
const shell = require('shelljs');
|
|
|
|
// Remove existing binary.
|
|
shell.rm('-f', '/usr/local/bin/strapi.js');
|
|
|
|
shell.echo('Linking Strapi CLI...');
|
|
shell.cd('packages/strapi-utils');
|
|
shell.exec('npm link');
|
|
shell.cd('../strapi-knex');
|
|
shell.exec('npm link');
|
|
shell.cd('../strapi-ejs');
|
|
shell.exec('npm link');
|
|
shell.cd('../strapi-generate');
|
|
shell.exec('npm install ../strapi-utils && npm link');
|
|
shell.cd('../strapi-admin');
|
|
shell.exec('npm install ../strapi-utils && npm link');
|
|
shell.cd('../strapi-generate-admin');
|
|
shell.exec('npm install ../strapi-admin && npm link');
|
|
shell.cd('../strapi-generate-new');
|
|
shell.exec('npm install ../strapi-utils && npm link');
|
|
shell.cd('../strapi-mongoose');
|
|
shell.exec('npm install ../strapi-utils && npm link');
|
|
shell.cd('../strapi-bookshelf');
|
|
shell.exec('npm install ../strapi-utils && npm link');
|
|
shell.cd('../strapi-redis');
|
|
shell.exec('npm install ../strapi-utils && npm link');
|
|
shell.cd('../strapi');
|
|
shell.exec('npm install ../strapi-generate ../strapi-generate-admin ../strapi-generate-api ../strapi-generate-new ../strapi-generate-policy ../strapi-generate-service ../strapi-mongoose ../strapi-utils && npm link');
|