mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-18 00:10:14 +01:00
chore(build): angular 2 webpack starter kit changes have been applied
This commit is contained in:
parent
3f2670f5c2
commit
260710b1ad
5 changed files with 15 additions and 18 deletions
|
|
@ -77,11 +77,8 @@ module.exports = function (options) {
|
||||||
*/
|
*/
|
||||||
extensions: ['', '.ts', '.js', '.css', '.scss', '.json'],
|
extensions: ['', '.ts', '.js', '.css', '.scss', '.json'],
|
||||||
|
|
||||||
// Make sure root is src
|
// An array of directory names to be resolved to the current directory
|
||||||
root: helpers.root('src'),
|
modules: [helpers.root('src'), 'node_modules'],
|
||||||
|
|
||||||
// remove other default values
|
|
||||||
modulesDirectories: ['node_modules'],
|
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
12
package.json
12
package.json
|
|
@ -61,13 +61,13 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"angular2-template-loader": "^0.5.0",
|
"angular2-template-loader": "^0.5.0",
|
||||||
"@types/core-js": "^0.9.28",
|
|
||||||
"@types/electron": "^1.3.20",
|
"@types/electron": "^1.3.20",
|
||||||
"@types/hammerjs": "^2.0.28",
|
"@types/hammerjs": "^2.0.33",
|
||||||
|
"@types/jasmine": "^2.2.34",
|
||||||
"@types/node": "^6.0.38",
|
"@types/node": "^6.0.38",
|
||||||
"@types/source-map": "^0.1.26",
|
"@types/source-map": "^0.1.27",
|
||||||
"@types/uglify-js": "^2.0.27",
|
"@types/uglify-js": "^2.0.27",
|
||||||
"@types/webpack": "^1.12.29",
|
"@types/webpack": "^1.12.34",
|
||||||
"@types/lodash": "0.0.28",
|
"@types/lodash": "0.0.28",
|
||||||
"gh-pages": "^0.11.0",
|
"gh-pages": "^0.11.0",
|
||||||
"parse5": "^1.3.2",
|
"parse5": "^1.3.2",
|
||||||
|
|
@ -77,14 +77,14 @@
|
||||||
"ts-helpers": "1.1.1",
|
"ts-helpers": "1.1.1",
|
||||||
"ts-node": "^1.3.0",
|
"ts-node": "^1.3.0",
|
||||||
"typedoc": "^0.4.5",
|
"typedoc": "^0.4.5",
|
||||||
"typescript": "2.0.0",
|
"typescript": "2.0.3",
|
||||||
"awesome-typescript-loader": "^2.2.1",
|
"awesome-typescript-loader": "^2.2.1",
|
||||||
"tslint-loader": "^2.1.3",
|
"tslint-loader": "^2.1.3",
|
||||||
"url-loader": "^0.5.7",
|
"url-loader": "^0.5.7",
|
||||||
"style-loader": "^0.13.1",
|
"style-loader": "^0.13.1",
|
||||||
"raw-loader": "0.5.1",
|
"raw-loader": "0.5.1",
|
||||||
"source-map-loader": "^0.1.5",
|
"source-map-loader": "^0.1.5",
|
||||||
"string-replace-loader": "github:gdi2290/string-replace-loader",
|
"string-replace-loader": "1.0.5",
|
||||||
"imports-loader": "^0.6.5",
|
"imports-loader": "^0.6.5",
|
||||||
"json-loader": "^0.5.4",
|
"json-loader": "^0.5.4",
|
||||||
"css-loader": "^0.25.0",
|
"css-loader": "^0.25.0",
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import { routing } from './app.routing';
|
||||||
|
|
||||||
// App is our top level component
|
// App is our top level component
|
||||||
import { App } from './app.component';
|
import { App } from './app.component';
|
||||||
import { AppState, InteralStateType } from './app.service';
|
import { AppState, InternalStateType } from './app.service';
|
||||||
import { GlobalState } from './global.state';
|
import { GlobalState } from './global.state';
|
||||||
import { NgaModule } from './theme/nga.module';
|
import { NgaModule } from './theme/nga.module';
|
||||||
import { PagesModule } from './pages/pages.module';
|
import { PagesModule } from './pages/pages.module';
|
||||||
|
|
@ -25,7 +25,7 @@ const APP_PROVIDERS = [
|
||||||
];
|
];
|
||||||
|
|
||||||
type StoreType = {
|
type StoreType = {
|
||||||
state: InteralStateType,
|
state: InternalStateType,
|
||||||
restoreInputValues: () => void,
|
restoreInputValues: () => void,
|
||||||
disposeOldHosts: () => void
|
disposeOldHosts: () => void
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,12 @@
|
||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
|
|
||||||
export type InteralStateType = {
|
export type InternalStateType = {
|
||||||
[key: string]: any
|
[key: string]: any
|
||||||
};
|
};
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class AppState {
|
export class AppState {
|
||||||
_state: InteralStateType = {};
|
_state: InternalStateType = {};
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
}
|
}
|
||||||
|
|
@ -34,7 +34,7 @@ export class AppState {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private _clone(object: InteralStateType) {
|
private _clone(object: InternalStateType) {
|
||||||
// simple object clone
|
// simple object clone
|
||||||
return JSON.parse(JSON.stringify(object));
|
return JSON.parse(JSON.stringify(object));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,8 +10,8 @@
|
||||||
"noEmitHelpers": true,
|
"noEmitHelpers": true,
|
||||||
"strictNullChecks": false,
|
"strictNullChecks": false,
|
||||||
"baseUrl": "./src",
|
"baseUrl": "./src",
|
||||||
"paths": [
|
"paths": {
|
||||||
],
|
},
|
||||||
"lib": [
|
"lib": [
|
||||||
"dom",
|
"dom",
|
||||||
"es6"
|
"es6"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue