zoukankan      html  css  js  c++  java
  • package.json里面配置的啥

    {
      "name": "Hello World", // 包名.
      "version": "0.0.1", //包的版本号
      "author": "张三", //包的作者
      "description": "第一个node.js程序", //包的描述
      "keywords": [ //关键字。方便使用者在 npm search中搜索。格式为字符串。
        "node.js",
        "javascript"
      ],
      "repository": { //用于指示源代码存放的位置
        "type": "git",
        "url": "https://path/to/url"
      },
      "license": "MIT",
      "engines": { //指明了该项目所需要的node.js版本
        "node": "0.10.x"
      },
      "bugs": {
        "url": "http://path/to/bug",
        "email": "bug@example.com"
      },
      "contributors": [ //包的其他贡献者
        {
          "name": "李四",
          "email": "lisi@example.com"
        }
      ],
      "scripts": { //指定了运行脚本命令的npm命令行缩写,使用scripts字段定义脚本命令。
        "start": "node index.js"
      },
      "dependencies": { // 生产/开发环境依赖包列表
        "express": "latest",
        "mongoose": "~3.8.3",
        "handlebars-runtime": "~1.0.12",
        "express3-handlebars": "~0.5.0",
        "MD5": "~1.2.0"
      },
      "devDependencies": { //指定项目开发所需要的模块。
        "bower": "~1.2.8",
        "grunt": "~0.4.1",
        "grunt-contrib-concat": "~0.3.0",
        "grunt-contrib-jshint": "~0.7.2",
        "grunt-contrib-uglify": "~0.2.7",
        "grunt-contrib-clean": "~0.5.0",
        "browserify": "2.36.1",
        "grunt-browserify": "~1.3.0",
      }
    }
  • 相关阅读:
    python基础学习(2)
    python基础语法
    面试常见问题(2)——数据库
    面试常见问题(1)——TCP协议
    python基础回顾(一)
    安装Beautiful Soup
    MongoDB的安装、配置和可视化
    神奇的斐波那契---解决兔子繁衍问题
    正规式、正规文法与自动机
    词法分析程序的设计与实现
  • 原文地址:https://www.cnblogs.com/onesea/p/13282750.html
Copyright © 2011-2022 走看看