AfterBuild-Starter
Automatically starts your Web app after build is over
Installation
$ npm install afterbuild-starter
What's afterbuild-starter?
When the build process is over, afterbuild-starter will automatically:
- stop the node process that runs your Web app (if exists)
- start a new node process with your Web app
- open the browser with the url of your site
Setting up
you can use starter({path:"",url:""})
at any final callback of any build system.
starter({path:"",url:""}) takes 2 args:
- path - The path to the .js file containing the main node app (String)
- url - The url to your website (String) (Default:"http://localhost")
Examples
gulpfile.js
:
With var starter = ; gulp;
Gruntfile.js
:
With var starter = ; grunt; grunt;
Pint.js
:
With var starter = ; moduleexports = name: 'default' { ; };