Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ee0b989

Browse files
Added several npm Scripts to the package.json file to automate some of our common tasks, created a startup message script using Chalk library
1 parent 3e1fd3b commit ee0b989

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

‎buildScripts/startMessage.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
var chalk = require('chalk');
2+
3+
console.log(chalk.green('Starting app in dev mode...'));

‎package.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
"name": "javascript-development-environment",
33
"version": "1.0.0",
44
"description": "JavaScript development environment Pluralsight course by Cory House",
5-
"scripts": {},
5+
"scripts": {
6+
"prestart": "node buildScripts/startMessage.js",
7+
"start":"npm-run-all --parallel security-check open:src",
8+
"open:src": "node buildScripts/srcServer.js",
9+
"security-check": "nsp check",
10+
"localtunnel": "lt --port 3000 --subdomain kevin",
11+
"share": "npm-run-all --parallel open:src localtunnel"
12+
},
613
"author": "Cory House",
714
"license": "MIT",
815
"dependencies": {

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /