5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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
5
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
5
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?