mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Removed 'open' dependancy and added 'nodemon' dependacy. Also added a 'hot' script to 'package.json' for hot-reloads
This commit is contained in:
parent
74691e4007
commit
ecae10e1ec
8519
package-lock.json
generated
8519
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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}`);
|
||||
});
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user