mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-09 02:58:50 +01:00
chore(angular): update angular to rc3
This commit is contained in:
parent
0236ea72e9
commit
9312084fa4
3 changed files with 33 additions and 19 deletions
20
package.json
20
package.json
|
|
@ -6,14 +6,14 @@
|
|||
"homepage": "http://akveo.github.io/ng2-admin/",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"@angular/common": "2.0.0-rc.2",
|
||||
"@angular/compiler": "2.0.0-rc.2",
|
||||
"@angular/core": "2.0.0-rc.2",
|
||||
"@angular/http": "2.0.0-rc.2",
|
||||
"@angular/platform-browser": "2.0.0-rc.2",
|
||||
"@angular/platform-browser-dynamic": "2.0.0-rc.2",
|
||||
"@angular/platform-server": "2.0.0-rc.2",
|
||||
"@angular/router": "2.0.0-rc.2",
|
||||
"@angular/common": "2.0.0-rc.3",
|
||||
"@angular/compiler": "2.0.0-rc.3",
|
||||
"@angular/core": "2.0.0-rc.3",
|
||||
"@angular/http": "2.0.0-rc.3",
|
||||
"@angular/platform-browser": "2.0.0-rc.3",
|
||||
"@angular/platform-browser-dynamic": "2.0.0-rc.3",
|
||||
"@angular/platform-server": "2.0.0-rc.3",
|
||||
"@angular/router": "3.0.0-alpha.8",
|
||||
"@angular/router-deprecated": "2.0.0-rc.2",
|
||||
"amcharts3": "github:amcharts/amcharts3",
|
||||
"ammap3": "github:amcharts/ammap3",
|
||||
|
|
@ -42,7 +42,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"angular2-hmr": "~0.7.0",
|
||||
"awesome-typescript-loader": "^1.0.0",
|
||||
"awesome-typescript-loader": "1.1.1",
|
||||
"codelyzer": "~0.0.19",
|
||||
"compression-webpack-plugin": "^0.3.1",
|
||||
"copy-webpack-plugin": "^3.0.1",
|
||||
|
|
@ -71,7 +71,7 @@
|
|||
"ts-node": "^0.9.0",
|
||||
"tslint": "^3.7.1",
|
||||
"tslint-loader": "^2.1.3",
|
||||
"typedoc": "^0.4.2",
|
||||
"typedoc": "^0.4.4",
|
||||
"typescript": "~1.8.9",
|
||||
"typings": "^1.0.5",
|
||||
"url-loader": "^0.5.7",
|
||||
|
|
|
|||
|
|
@ -1,25 +1,39 @@
|
|||
// Angular 2
|
||||
import {enableProdMode} from '@angular/core';
|
||||
|
||||
// rc2 workaround
|
||||
import { enableDebugTools, disableDebugTools } from '@angular/platform-browser';
|
||||
import { enableProdMode } from '@angular/core';
|
||||
// Environment Providers
|
||||
let PROVIDERS = [];
|
||||
let PROVIDERS = [
|
||||
// common env directives
|
||||
];
|
||||
|
||||
// Angular debug tools in the dev console
|
||||
// https://github.com/angular/angular/blob/86405345b781a9dc2438c0fbe3e9409245647019/TOOLS_JS.md
|
||||
let _decorateComponentRef = function identity(value) { return value; };
|
||||
|
||||
if ('production' === ENV) {
|
||||
// Production
|
||||
disableDebugTools();
|
||||
enableProdMode();
|
||||
|
||||
PROVIDERS = [
|
||||
...PROVIDERS
|
||||
...PROVIDERS,
|
||||
// custom providers in production
|
||||
];
|
||||
|
||||
} else {
|
||||
|
||||
_decorateComponentRef = (cmpRef) => enableDebugTools(cmpRef);
|
||||
|
||||
// Development
|
||||
PROVIDERS = [
|
||||
...PROVIDERS
|
||||
...PROVIDERS,
|
||||
// custom providers in development
|
||||
];
|
||||
|
||||
}
|
||||
|
||||
export const decorateComponentRef = _decorateComponentRef;
|
||||
|
||||
export const ENV_PROVIDERS = [
|
||||
...PROVIDERS
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
{
|
||||
"globalDependencies": {
|
||||
"angular-protractor": "registry:dt/angular-protractor#1.5.0+20160425143459",
|
||||
"core-js": "registry:dt/core-js#0.0.0+20160317120654",
|
||||
"core-js": "registry:dt/core-js#0.0.0+20160602141332",
|
||||
"hammerjs": "registry:dt/hammerjs#2.0.4+20160417130828",
|
||||
"jasmine": "registry:dt/jasmine#2.2.0+20160505161446",
|
||||
"node": "registry:dt/node#6.0.0+20160514165920",
|
||||
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
|
||||
"node": "registry:dt/node#6.0.0+20160621231320",
|
||||
"selenium-webdriver": "registry:dt/selenium-webdriver#2.44.0+20160317120654",
|
||||
"source-map": "registry:dt/source-map#0.0.0+20160317120654",
|
||||
"uglify-js": "registry:dt/uglify-js#2.6.1+20160316155526",
|
||||
"webpack": "registry:dt/webpack#1.12.9+20160321060707"
|
||||
"webpack": "registry:dt/webpack#1.12.9+20160523035535"
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash": "registry:npm/lodash#4.0.0+20160416211519"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue