LoginSignup
4
2

More than 5 years have passed since last update.

npm task の一覧を見るコマンド

Posted at

npm run と打てば良い。 (正直あんまり見やすくはないが ... )

実行例
$ npm run
Lifecycle scripts included in my-ts-sandbox:
  start
    npm run server:dev
  test
    karma start

available via `npm run-script`:
  server
    npm run server:dev
  server:dev
    webpack-dashboard -- webpack-dev-server --config ./webpack.config.js --hot --inline --progress --watch --open
  server:prod
    cross-env NODE_ENV=production webpack-dashboard -- webpack-dev-server --config ./webpack.config.js --port 3000 --host 0.0.0.0 --hot --inline --progress --profile --watch --open --content-base dist/
  build
    npm run build:prod
  build:dev
    webpack --config ./webpack.config.js --progress --profile --color --display-error-details --display-cached
  build:prod
    cross-env NODE_ENV=production webpack --config ./webpack.config.js  --progress --profile --color --display-error-details --display-cached --bail
  clean
    npm cache clear && rimraf -- dist
4
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
2