📜  如何在节点 js 中包含构建脚本 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:15.856000             🧑  作者: Mango

代码示例1
{
      "name": "to-do-app",
      "version": "1.0.0",
      "description": "A basic to-do app created using JavaScript.",
      "main": "index.js",
      "scripts": {
        "test": "put test command here",  // example "test": "mocha test.js"
         "build" : "put build command here"
      },
      "author": "Sahil Silare",
      "license": "MIT",
      "dependencies": {
        "body-parser": "^1.19.0",
        "build": "^0.1.4",
        "ejs": "^2.7.1",
        "express": "^4.17.1",
        "npm-build": "0.0.1"
      },
      "devDependencies": {},
      "repository": {
        "type": "git",
        "url": "git+https://github.com/sahil9001/to-do-app.git"
      },
      "keywords": [
        "todo",
        "app"
      ],
      "bugs": {
        "url": "https://github.com/sahil9001/to-do-app/issues"
      },
      "homepage": "https://github.com/sahil9001/to-do-app#readme"
    }