ビルド システムとして NPM (Gulp や Grunt なし) のみを使用してプロジェクトをセットアップしようとしているので、少し初心者ですが、これまでのところ、この小さな障害を除いてかなりうまく機能しています。私のpackage.jsonのスクリプトセクションは次のようになります:
"scripts": {
"clean:task": "rimraf dist/*",
"clean:notify": "notify --t 'Cleaning done.' --m 'dist/ has been cleaned successfully.",
"clean": "npm run clean:task -s && npm run clean:notify -s",
"serve": "browser-sync start --p 'xxx.dev/app' --host 'xxx.dev' --port '3000' --open 'external' --f 'app'",
"styles:task": "node-sass --output-style nested -o app/assets/css app/assets/css",
"styles:notify": "notify --t 'Styles compilation' --m 'Styles have been compiled successfully'",
"styles:build": "npm run styles:task && npm run autoprefixer",
"imagemin": "imagemin app/assets/img dist/img -p",
"scripts:lint": "jshint --reporter=node_modules/jshint-stylish app/assets/js/scripts.js"
}
成功したタスクを通知する通知がありますが、理想的には、端末に直接色付きのメッセージが表示されるようにしたいと考えています。これは、色付きのログを介して Gulp で実行できることを知っていますが、それを実行できる CLI を持つ NPM パッケージを見つけることができません。何か案は ?それは可能ですか?
ご協力いただきありがとうございます。