Socket
Socket
Sign inDemoInstall

afterbuild-starter

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

afterbuild-starter

Automatically starts your Web app after build is over


Version published
Maintainers
1
Created
Source

AfterBuild-Starter

Automatically starts your Web app after build is over

Version npmNPM DownloadsDependencies

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

With gulpfile.js:
var starter = require('node-starter');

gulp.task('default', ['minify-html'], function(){

    starter({path:"Path/To/Your/main.js",url:"URL/to/your/site"});
});
With Gruntfile.js:
var starter = require('node-starter');

grunt.registerTask('starter', function() {

   starter({path:"Path/To/Your/main.js",url:"URL/to/your/site"});
});

grunt.registerTask('default', ['yourTask1', 'yourTask2', 'starter']);
With Pint.js:
var starter = require('node-starter');

module.exports = {
  name: 'default',
  finalize: function () {
     starter({path:"Path/To/Your/main.js",url:"URL/to/your/site"});
  }
};

License

MIT

Analytics

Keywords

FAQs

Package last updated on 17 Sep 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc