callerc1 / shipit-npm

Npm tasks for shipit.
MIT License
21 stars 13 forks source link

npm:cmd --cmd="ng build" throwing error #18

Open knvpk opened 7 years ago

knvpk commented 7 years ago

Im working with angular2 , so i need to build the src files (ng-build) and then want to copy the dist folder to server. for that im using shipit-deploy and shipit-npm and my configuration is

   shipit.on('fetched', function () {
        console.log("Started bundling for production . . .");
        shipit.start('npm:cmd --cmd="ng build"');
        console.log("Bundling finished.");
    });

this config is throwing error as

Started bundling for production . . .
Task 'npm:cmd --cmd="ng build"' is not in your shipitfile

Im just now started using the shipit js. please help on this config