//项目基本信息,使用的插件
{
"name": "angular2-standard",
"version": "1.0.0",
"description": "创建基于Angular2、Typescript的网站模板",
"main": "index.js", //指向模块的入口程序
"author": "DylanLee",
"homepage": "http://",//项目官网的url
"license": "MIT",//许可证
"dependencies": { //依赖是给一组包名指定版本范围的一个hash。这个版本范围是一个由一个或多个空格分隔的字符串。依赖还可以用tarball或者git URL。
//https://www.npmjs.com 查找包
"@angular/common": "2.2.4", //@angular/common - 常用的那些由Angular开发组提供的服务、管道和指令。
"@angular/compiler": "2.2.4", //@angular/compiler - Angular的模板编译器。 它会理解模板,并且把模板转化成代码,以供应用程序运行和渲染。 开发人员通常不会直接跟这个编译器打交道,而是通过platform-browser-dynamic或离线模板编译器间接使用它。
"@angular/core": "2.2.4", //@angular/core - 框架中关键的运行期部件,每一个应用都需要它。 包括所有的元数据装饰器:Component、Directive,依赖注入系统,以及组件生命周期钩子。
"@angular/forms": "2.2.4",
"@angular/http": "2.2.4", //@angular/http - Angular的HTTP客户端。
"@angular/platform-browser": "2.2.4", //@angular/platform-browser - 与DOM和浏览器相关的每样东西,特别是帮助往DOM中渲染的那部分。 这个包还包含bootstrapStatic方法,用来引导那些在产品构建时需要离线预编译模板的应用程序。
"@angular/platform-browser-dynamic": "2.2.4", //@angular/platform-browser-dynamic - 为应用程序提供一些提供商和bootstrap方法,以便在客户端编译模板。不要用于离线编译。 我们使用这个包在开发期间引导应用,以及引导plunker中的范例。
"@angular/platform-server": "2.2.4",
"@angular/router": "3.2.4", //@angular/router - 路由器。
"@angularclass/conventions-loader": "^1.0.13",
"@angularclass/hmr": "~1.2.2",
"@angularclass/hmr-loader": "~3.0.2",
"amcharts3": "github:amcharts/amcharts3", //图表控件,如要修改则必须购买
"ammap3": "github:amcharts/ammap3", //amcharts3使用的地图控件
"animate.css": "^3.5.2", //强大的预设css3动画库
"assets-webpack-plugin": "^3.5.0",
"bootstrap": "4.0.0-alpha.5",
"bootstrap-loader": "2.0.0-beta.16", //Successor to bootstrap-sass-loader. Load Bootstrap styles and scripts in your Webpack bundle. This loader uses SASS to process CSS styles. Bootstrap 3 & 4 are supported.
"chart.js": "^2.4.0", //图表控件
"chartist": "^0.10.1", //简单的响应式图表,可以作为前端图表生成器
"ckeditor": "4.6.0", //一款由javascript编写的富文本网页编辑器,它可以填写文字、插入图片、视频、Excel等富媒体信息,也可以在源码方式下填写内容
"core-js": "^2.4.1", //JavaScript的模块化标准库
"easy-pie-chart": "^2.1.7", //轻量级插件,用于渲染简单,动画和视网膜优化的饼图;主要是用来统计新的访问、跳出率、服务器负载、使用的RAM等,功能很强大,带有HTML5的动画效果,效果非常炫
"extract-text-webpack-plugin": "2.0.0-beta.4",
"font-awesome": "^4.7.0", //Font Awesome为您提供可缩放的矢量图标,您可以使用CSS所提供的所有特性对它们进行更改,包括:大小、颜色、阴影或者其它任何支持的效果
"font-awesome-sass-loader": "^1.0.2",//Font Awesome configuration and loading package for webpack, using font-awesome (Sass).
"fullcalendar": "^3.0.1", //日历插件;开发者可以根据FullCalendar提供的API快速完成一个日历日程的开发
"google-maps": "^3.2.1", //谷歌地图
"http-server": "^0.9.0", //http-server 是一个简单的零配置命令行HTTP服务器, 基于 nodeJs.如果你不想重复的写 nodeJs 的 web-server.js, 则可以使用这个.
"ie-shim": "^0.1.0", //ie-shim for Angular 2;shim是一个库,它将一个新的API引入到一个旧的环境中,而且仅靠旧环境中已有的手段实现;polyfill就是一个用在浏览器API上的shim;通常的做法是先检查当前浏览器是否支持某个API,如果不支持的话就加载对应的polyfill
"ionicons": "^3.0.0", //图标插件; 专为 Ionic Framework 设计 开源 · 免费 · 自由
"is-electron-renderer": "^2.0.1", //Check if code is running in Electron renderer process.
"jquery": "^3.1.1",
"jquery-slimscroll": "^1.3.8", //滚动条插件
"leaflet": "^1.0.2", //Leaflet 是一个为建设移动设备友好的互动地图,而开发的现代的、开源的 JavaScript 库
"leaflet-map": "^0.2.1", //simple way to make a leaflet map application
"lodash": "^4.17.2", //The Lodash library exported as Node.js modules.是一个具有一致接口、模块化、高性能等特性的 JavaScript 工具库
"ng2-bootstrap": "1.1.16", //Native Angular2 directives for Bootstrap, works with Bootstrap 3 and 4-alfa
"ng2-ckeditor": "1.1.5", //Use the CKEditor (4.x) wysiwyg in your Angular2 application
"ng2-smart-table": "^0.4.0-5", //Smart table is an Angularjs module to easily display data in a table with a set of built in features such filtering,sorting, etc in a declarative way.
"ng2-tree": "^0.0.2-7", //angular2 component for visualizing data that can be naturally represented as a tree
"ng2-uploader": "1.5.3", //Angular2 File Uploader
"normalize.css": "^5.0.0", //A modern alternative to CSS resets;是一个可以定制的CSS文件,它让不同的浏览器在渲染网页元素的时候形式更统一
"postcss-loader": "^1.1.1", //PostCSS loader for webpack to postprocesses your CSS with PostCSS plugins.
"rxjs": "5.0.0-rc.4", //Reactive Extensions for modern JavaScript;RxJS框架可以很方便地为鼠标和键盘事件提供响应
"tether": "^1.3.8", //A client-side library to make absolutely positioned elements attach to elements in the page efficiently.
"zone.js": "~0.7.2" //A Zone is an execution context that persists across async tasks. You can think of it as thread-local storage for JavaScript VMs.
},
"devDependencies": {//在执行npm link或者npm install的时候初始化,开发模式中(比如本地运行npm install)会运行这个脚本以便更好地测试
"angular2-router-loader": "^0.3.4", //A webpack loader for Angular that enables string-based module loading with the Angular Router
"angular2-template-loader": "^0.6.0",//Angular2 webpack loader that inlines your angular2 templates and stylesheets into angular components.
"@types/electron": "^1.4.29",
"@types/hammerjs": "^2.0.33",
"@types/jasmine": "^2.5.38",
"@types/node": "^6.0.38",
"@types/source-map": "^0.5.0",
"@types/uglify-js": "^2.6.28",
"@types/webpack": "2.0.0",
"@types/lodash": "4.14.41",
"gh-pages": "^0.12.0", //Publish to a gh-pages branch on GitHub (or any other branch on any other remote)
"parse5": "^2.2.3", //WHATWG HTML5 specification-compliant, fast and ready for production HTML parsing/serialization toolset for Node.js
"rimraf": "~2.5.4", //A deep deletion module for node (like rm -rf)
"script-ext-html-webpack-plugin": "^1.3.4", //Enhances html-webpack-plugin functionality with async and defer attributes for script elements
"codelyzer": "~2.0.0-beta.1", //Linting for Angular 2 applications, following angular.io/styleguide.
"tslint": "4.0.2", //An extensible static analysis linter for the TypeScript language
"ts-helpers": "1.1.2", //Typescript helpers for compiling typescript while specifying --noEmitHelpers within your tsconfig.json. Cross platform ( Node/Browser/WebWorker )
"ts-node": "^1.7.0", //TypeScript execution environment and REPL for node
"typedoc": "^0.5.1", //Create api documentations for typescript projects.
"typescript": "2.0.10 ", //TypeScript is a language for application scale JavaScript development
"awesome-typescript-loader": "^3.0.0-beta.9", //Awesome TS loader for webpack
"tslint-loader": "^3.2.1", //slint loader for webpack
"url-loader": "^0.5.7", //url loader module for webpack
"style-loader": "^0.13.1", //style loader module for webpack
"raw-loader": "0.5.1", //raw loader module for webpack
"source-map-loader": "^0.1.5", //extracts inlined source map and offers it to webpack
"string-replace-loader": "1.0.5", //Replace loader for Webpack;Perform replacements (plain and regular expression) in the contents loaded by the loader.
"imports-loader": "^0.6.5", //imports loader module for webpack;Can be used to inject variables into the scope of a module. This is especially useful if third-party modules are relying on global variables like $ or this being the window object.
"json-loader": "^0.5.4", //json loader module for webpack
"css-loader": "^0.26.0", //css loader module for webpack
"exports-loader": "^0.6.3", //exports loader module for webpack
"expose-loader": "^0.7.1", //expose loader module for webpack
"file-loader": "^0.9.0", //file loader module for webpack
"to-string-loader": "^1.1.5", //to-string loader for webpack
"sass-loader": "^4.0.2", //Sass loader for webpack
"resolve-url-loader": "^1.6.0", //Webpack loader that resolves relative paths in url() statements based on the original source file
"node-sass": "^3.13.0", //Wrapper around libsass
"html-webpack-plugin": "^2.24.1", //Simplifies creation of HTML files to serve your webpack bundles
"copy-webpack-plugin": "^4.0.1", //Copy files and directories in webpack;This is a webpack plugin that copies individual files or entire directories to the build directory.
"v8-lazy-parse-webpack-plugin": "^0.3.0", //This is a webpack plugin designed to exploit the V8 engines treatment of functions with parens wrapped around them. This lazy loads the parsing decreasing initial load time.
"webpack": "2.1.0-beta.27", //Packs CommonJs/AMD modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loaders to preprocess files, i.e. json, jade, coffee, css, less, ... and your custom stuff.
"webpack-dashboard": "^0.2.0", //a CLI dashboard for webpack dev server
"webpack-dev-middleware": "^1.8.4", //Offers a dev middleware for webpack, which arguments a live bundle to a directory
"webpack-dev-server": "2.1.0-beta.12", //Serves a webpack app. Updates the browser on changes.
"webpack-md5-hash": "^0.0.5", //Plugin to replace a standard webpack chunkhash with md5.
"webpack-merge": "^1.0.2", //Variant of merge that's useful for Webpack configuration
"compression-webpack-plugin": "^0.3.2", //Prepare compressed versions of assets to serve them with Content-Encoding
"es6-promise": "^4.0.5", //A lightweight library that provides tools for organizing asynchronous code
"es6-shim": "^0.35.1", //ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines
"es7-reflect-metadata": "^1.6.0", //ES7 Polyfill for Metadata Reflection API with Universal and Webpack support
"electron": "^1.4.10" //Install prebuilt electron binaries for the command-line using npm
},
"scripts": {//“scripts”是一个由脚本命令组成的hash对象,他们在包不同的生命周期中被执行。key是生命周期事件,value是要运行的命令。
"rimraf": "rimraf",
"tslint": "tslint",
"typedoc": "typedoc",
"webpack": "webpack --progress --profile --bail",
"webpack-dev-server": "webpack-dev-server",
"webdriver-manager": "webdriver-manager",
"clean": "npm cache clean && npm run rimraf -- node_modules doc coverage dist",
"clean:dist": "npm run rimraf -- dist",
"clean:electron": "npm run rimraf -- build",
"preclean:install": "npm run clean",
"clean:install": "npm set progress=false && npm install",
"preclean:start": "npm run clean",
"clean:start": "npm start",
"watch": "npm run watch:dev",
"watch:dev": "npm run build:dev -- --watch",
"watch:dev:hmr": "npm run watch:dev -- --hot",
"watch:prod": "npm run build:prod -- --watch",
"build": "npm run build:dev",
"prebuild:dev": "npm run clean:dist",
"build:dev": "npm run webpack -- --config config/webpack.dev.js",
"prebuild:prod": "npm run clean:dist",
"build:prod": "npm run webpack -- --config config/webpack.prod.js",
"server": "npm run server:dev",
"server:dev": "webpack-dev-server --config config/webpack.dev.js --progress --profile --watch --content-base src/",
"server:dev:hmr": "npm run server:dev -- --inline --hot",
"server:prod": "http-server dist --cors",
"webdriver:update": "npm run webdriver-manager update",
"webdriver:start": "npm run webdriver-manager start",
"lint": "npm run tslint \"src/**/*.ts\" --force",
"pree2e": "npm run webdriver:update -- --standalone",
"pretest": "npm run lint",
"docs": "npm run typedoc -- --options typedoc.json --exclude '**/*.spec.ts' ./src/",
"gh-pages": "wintersmith build -C docs && gh-pages -d docs/build",
"start": "npm run server:dev",
"start:hmr": "npm run server:dev:hmr",
"version": "npm run build",
"postversion": "git push && git push --tags",
"build:electron": "npm run build:electron.full",
"prebuild:electron.full": "npm run clean:electron",
"build:electron.full": "npm run build:electron.renderer && npm run build:electron.main",
"postbuild:electron.full": "npm run electron:start",
"build:electron.renderer": "npm run webpack -- --config config/electron/webpack.renderer.prod.js",
"build:electron.main": "npm run webpack -- --config config/electron/webpack.electron.prod.js",
"electron:start": "electron build"
},
"repository": { //代码存放
"type": "git",
"url": "https://"
},
"bugs": { //项目的提交问题的url和(或)邮件地址
"url": "https://",
"email":"",
},
"engines": {//指定工作环境的node、npm的版本
"node": ">= 4.2.1",
"npm": ">= 3"
}
}