Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
],
"license": "Unlicense",
"main": "dist/index.js",
"module": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "tsc --outDir dist/",
"postinstall": "npm run build"
"build": "ngc",
"prepublish": "npm run build"
},
"peerDependencies": {
"@angular/core": "^{{ngVersion}}",
Expand All @@ -28,6 +29,7 @@
"@angular/http": "^{{ngVersion}}",
"@angular/common": "^{{ngVersion}}",
"@angular/compiler": "^{{ngVersion}}",
"@angular/compiler-cli": "^{{ngVersion}}",
"@angular/platform-browser": "^{{ngVersion}}",
"reflect-metadata": "^0.1.3",
"rxjs": "^5.4.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"target": "es5",
"module": "es6",
"module": "es2015",
"moduleResolution": "node",
"removeComments": true,
"sourceMap": true,
"outDir": "./dist",
"noLib": false,
"declaration": true,
"lib": [ "es6", "dom" ]
"lib": [ "es2015", "dom" ]
},
"exclude": [
"node_modules",
Expand All @@ -21,5 +21,9 @@
"filesGlob": [
"./model/*.ts",
"./api/*.ts"
]
],
"angularCompilerOptions": {
"genDir": "dist",
"skipTemplateCodegen": true
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,5 @@ export interface ApiResponse {
message?: string;

}


Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ export interface Category {
name?: string;

}


Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ export interface Order {

}
export namespace Order {
export enum StatusEnum {
Placed = <any> 'placed',
Approved = <any> 'approved',
Delivered = <any> 'delivered'
}
export type StatusEnum = 'placed' | 'approved' | 'delivered';
}


Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,7 @@ export interface Pet {

}
export namespace Pet {
export enum StatusEnum {
Available = <any> 'available',
Pending = <any> 'pending',
Sold = <any> 'sold'
}
export type StatusEnum = 'available' | 'pending' | 'sold';
}


Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,5 @@ export interface Tag {
name?: string;

}


Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ export interface User {
userStatus?: number;

}


Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@
],
"license": "Unlicense",
"main": "dist/index.js",
"module": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "tsc --outDir dist/",
"postinstall": "npm run build"
"build": "ngc",
"prepublish": "npm run build"
},
"peerDependencies": {
"@angular/core": "^4.3.0",
Expand All @@ -28,13 +29,14 @@
"@angular/http": "^4.3.0",
"@angular/common": "^4.3.0",
"@angular/compiler": "^4.3.0",
"@angular/compiler-cli": "^4.3.0",
"@angular/platform-browser": "^4.3.0",
"reflect-metadata": "^0.1.3",
"rxjs": "^5.4.0",
"zone.js": "^0.7.6",
"typescript": "^2.1.5"
},
"publishConfig": {
"registry":"https://skimdb.npmjs.com/registry"
"registry": "https://skimdb.npmjs.com/registry"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
"noImplicitAny": false,
"suppressImplicitAnyIndexErrors": true,
"target": "es5",
"module": "es6",
"module": "es2015",
"moduleResolution": "node",
"removeComments": true,
"sourceMap": true,
"outDir": "./dist",
"noLib": false,
"declaration": true,
"lib": [ "es6", "dom" ]
"lib": [ "es2015", "dom" ]
},
"exclude": [
"node_modules",
Expand All @@ -21,5 +21,9 @@
"filesGlob": [
"./model/*.ts",
"./api/*.ts"
]
],
"angularCompilerOptions": {
"genDir": "dist",
"skipTemplateCodegen": true
}
}