angular2開發配置package.json
阿新 • • 發佈:2019-01-05
//專案基本資訊,使用的外掛
{
"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"
}
}
{
"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"
}
}