Removed 'open' dependancy and added 'nodemon' dependacy. Also added a 'hot' script to 'package.json' for hot-reloads

This commit is contained in:
Julian Webb 2021-04-25 10:19:01 -07:00
parent 74691e4007
commit ecae10e1ec
3 changed files with 8488 additions and 41 deletions

8519
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -6,7 +6,8 @@
"scripts": {
"build": "node ./build.js ./build",
"serve": "node ./server.js ./build 3000",
"test": "npm run build && npm run serve"
"test": "npm run build && npm run serve",
"hot": "./node_modules/.bin/nodemon --exec npm test"
},
"author": "Lospec",
"license": "ISC",
@ -19,7 +20,7 @@
"gulp-rename": "^2.0.0",
"gulp-sass": "^4.0.2",
"handlebars-helper-svg": "git+https://bitbucket.org/skeddles/npm-handlebars-helper-svg-lospec-open-source.git",
"open": "^6.0.0",
"nodemon": "^2.0.7",
"sass": "^1.17.3"
}
}

View File

@ -28,10 +28,5 @@ app.use(express.static(path.join(__dirname, BUILDDIR)));
var server = app.listen(PORT, () => {
console.log(`\nTemp server started at http://localhost:${PORT}!`);
//console.log('press ctrl+c to stop ');
var opn = require('open');
// opens the url in the default browser
opn(`http://localhost:${PORT}`);
});