loads / loads-web

Web dashboard for Loads
Apache License 2.0
5 stars 3 forks source link

Updating dependencies and adding npm tasks #51

Closed pdehaan closed 9 years ago

pdehaan commented 9 years ago

Just some general maintenance...

Fixes #49

Current output:

$ npm run outdated

> loads-web@1.0.0 outdated /Users/pdehaan/dev/github/loads-web
> npm outdated --depth 0

Package           Current  Wanted  Latest  Location
mockloadsresults    1.0.0     git     git  mockloadsresults

$ npm run shrinkwrap

> loads-web@1.0.0 shrinkwrap /Users/pdehaan/dev/github/loads-web
> npm shrinkwrap --dev

wrote npm-shrinkwrap.json

> loads-web@1.0.0 postshrinkwrap /Users/pdehaan/dev/github/loads-web
> nsp audit-shrinkwrap

No vulnerable modules found

I believe we have a separate tracking bug to remove the mock loads data since it was confusing. (UPDATE: see bug #43)

pdehaan commented 9 years ago

And here's the latest npm run * tasks:

$ npm run

Available scripts in the loads-web package:

npm run __ Code Description
clean rm -rf ./{node_modules,client/bower_components} && npm i > /dev/null Delete all Node modules and bower components and reinstalls them.
lint eslint . Run ESLint against the client and server code.
outdated npm outdated --depth 0 Find all outdated npm modules.
postinstall bower update Automatically install bower components after running npm install.
postshrinkwrap nsp audit-shrinkwrap Automatically check for potentially vulnerable Node modules using the nodesecurity.io database after you run npm run shrinkwrap.
prestart npm run stylus Automatically compile Stylus stylesheets before starting the Node server.
shrinkwrap npm shrinkwrap --dev Creates a npm-shrinkwrap.json file (including devDependencies) and triggers the postshrinkwrap task.
start PORT=5000 node server Start the Node server on port 5000.
stylus stylus --compress client/static/assets/stylus/app.styl --out client/static/assets/css/ Compile the Stylus stylesheets and save them in client/static/assets/css/*.
test npm run lint Run the npm run lint script.
pdehaan commented 9 years ago

r? @darkwing (but not until Monday, don't let me catch you looking at this on a weekend)