Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (2.79 MB, 334 trang )
can get rid of them by opening the package.json in any text editor and adding the following lines to the JSON object:
[...]
"description": "No description",
"repository": {
"private": true
},
[...]
Section 2.4: Running scripts
You may define scripts in your package.json, for example:
{
"name": "your-package",
"version": "1.0.0",
"description": "",
"main": "index.js",
"author": "",
"license": "ISC",
"dependencies": {},
"devDependencies": {},
"scripts": {
"echo": "echo hello!"
}
}
To run the echo script, run npm run echo from the command line. Arbitrary scripts, such as echo above, have to be
be run with npm run