taco-start-script

1.1.0 • Public • Published

taco-start-script

Run a start command depending on the environment. Compatible with other taco deployment tools.

npm install -g taco-start-script

Usage

In the package.json specify a start command for each environment.

{
	"name": "my-app",
	"scripts": {
		"start": "taco-start-script",
		"start-development": "node server.js",
		"start-staging": "taco-nginx node server.js"
	}
}

Now when running npm start the script will look at NODE_ENV environment variable to determine how to start the application. If not specified it defaults to development.

Package Sidebar

Install

npm i taco-start-script

Weekly Downloads

3

Version

1.1.0

License

MIT

Last publish

Collaborators

  • kapetan