1. Trang chủ >
  2. Công Nghệ Thông Tin >
  3. Kỹ thuật lập trình >

Section 2.3: Setting up a package configuration

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

Tải bản đầy đủ (.pdf) (334 trang)

Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Tải bản đầy đủ ngay
×