zoukankan      html  css  js  c++  java
  • package.json

    纯JSON

    • 项目名:name, string, *
    "name": "nicefish"
    
    • 版本号:version, string, *
    "version": "5.12.3"
    
    • 描述:description, string
    "description": "The Metaverse virtual reality. The final outcome of all virtual worlds, augmented reality, and the Internet."
    
    • 关键字:keywords, Array
    "keywords": [
         "metaverse",
         "virtual reality",
         "augmented reality",
         "snow crash"
    ]
    
    • 问题追踪系统的URL或邮箱地址: bugs, obj
    "bugs": {
        "url": "https://github.com/angular/angular/issues"
    }
    
    • 依赖模块(生产环境中需要的依赖):dependencies, Array

      该模块(项目)运行所依赖的模块

    "dependencies": {
         "async": "^0.2.10",
         "npm2es": "~0.4.2",
         "optimist": "~0.6.0",
         "request": "~2.30.0",
         "skateboard": "^1.5.1",
         "split": "^0.3.0",
         "weld": "^0.2.2"
    }
    
    • 开发时需要的模块(不会被部署到生产环境):devDependencies, Array
    "devDependencies": {
         "karma": "1.4.0",
         "karma-chrome-launcher": "2.0.0",
         "karma-cli": "1.0.1"
    }
    
    • 用来供插件指定其所需要的主工具的版本:peerDependencies, obj
    {
      "name": "chai-as-promised",
      "peerDependencies": {
        "chai": "1.x"
      }
    }
    
    • 指定运行脚本命令的 npm 命令行缩写:scripts, obj
    "scripts": {
        "ng": "ng",
        "start": "ng serve",
        "build": "ng build",
        "test": "ng test",
        "lint": "ng lint",
        "e2e": "ng e2e"
    },
    
    • 指定各个内部命令对应的可执行文件的位置:bin, obj
    "bin": {
      "someTool": "./bin/someTool.js"
    }
    
    • 指明该模块运行的平台:engines, obj
    "engines" : {
        "node" : ">=0.10.3 <0.12"
    }
    
    "engines" : {
        "npm" : "~1.0.20"
    }
    
  • 相关阅读:
    Python eval 函数妙用
    502与504故障分析与解决方法
    [转]谈谈select, iocp, epoll,kqueue及各种网络I/O复用机制
    计算阶乘n!末尾0的个数
    C++中的Overload、Override和Overwrite
    C++中的空类与空结构体大小
    多线程编程之优先级翻转问题
    数据库原理之事务(二)
    数据库原理之事务(一)
    NoSQL之基础篇
  • 原文地址:https://www.cnblogs.com/Hao-Killer/p/7262145.html
Copyright © 2011-2022 走看看