Skip to content

Commit 6893630

Browse files
author
Leo Vo
committed
Update config.
1 parent 2523f13 commit 6893630

File tree

8 files changed

+51
-577
lines changed

8 files changed

+51
-577
lines changed

.angular-cli.json

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,6 @@
55
},
66
"apps": [
77
{
8-
"name": "lib",
9-
"root": "src",
10-
"outDir": "dist/demo",
11-
"assets": [
12-
"assets",
13-
"favicon.ico"
14-
],
15-
"index": "index.html",
16-
"main": "main.ts",
17-
"polyfills": "polyfills.ts",
18-
"test": "test.ts",
19-
"tsconfig": "tsconfig.lib.json",
20-
"testTsconfig": "tsconfig.spec.json",
21-
"prefix": "ngx",
22-
"styles": [
23-
"../node_modules/font-awesome/scss/font-awesome.scss",
24-
"../node_modules/bootstrap/scss/bootstrap.scss",
25-
"styles.scss"
26-
],
27-
"scripts": [],
28-
"environmentSource": "environments/environment.ts",
29-
"environments": {
30-
"dev": "environments/environment.ts",
31-
"prod": "environments/environment.prod.ts"
32-
}
33-
},
34-
{
35-
"name": "demo",
368
"root": "src",
379
"outDir": "dist/demo",
3810
"assets": [

package.json

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,21 @@
44
"license": "MIT",
55
"description": "An Angular treeview component with checkbox",
66
"scripts": {
7-
"start": "ng serve --app lib",
8-
"start:demo": "npm run build:demo && lite-server -c bs-config.json",
7+
"start": "ng serve",
98
"lint": "ng lint",
109
"test": "ng test",
1110
"test-coverage": "ng test --code-coverage",
1211
"test-ci": "ng test --watch=false --code-coverage --single-run=true",
1312
"e2e": "ng e2e",
14-
"build:lib": "gulp inline-templates && rimraf dist/lib && ngc -p tsconfig-lib.json && copyfiles package.json README.md LICENSE dist/lib",
15-
"build:demo": "npm run build:lib && rimraf dist/demo && ng build --app=demo --prod",
16-
"build": "npm run build:demo",
17-
"prebuild": "rimraf dist tmp",
18-
"postbuild": "rimraf tmp",
19-
"pub:demo": "npm run build:demo -- --base-href /ngx-treeview/ && gh-pages -d dist/demo",
13+
"ci": "npm run lint && npm run test-ci && npm run e2e",
14+
"prebuild:lib": "rimraf tmp dist/lib",
15+
"build:lib": "gulp inline-templates && ngc -p tsconfig-lib.json && copyfiles package.json README.md LICENSE dist/lib",
16+
"postbuild:lib": "rimraf tmp",
17+
"prebuild:demo": "rimraf dist/demo",
18+
"build:demo": "ng build --prod",
2019
"pub:lib": "npm run build:lib && npm publish dist/lib",
21-
"pub": "rimraf dist && npm run pub:lib && npm run pub:demo",
22-
"ci": "npm run lint && npm run test-ci && npm run e2e"
20+
"pub:demo": "npm run build:demo -- --base-href /ngx-treeview/ && gh-pages -d dist/demo",
21+
"pub": "npm run pub:lib && npm run pub:demo"
2322
},
2423
"keywords": [
2524
"ng",
@@ -84,7 +83,6 @@
8483
"karma-coverage-istanbul-reporter": "^1.3.0",
8584
"karma-jasmine": "^1.1.0",
8685
"karma-jasmine-html-reporter": "^0.2.2",
87-
"lite-server": "^2.3.0",
8886
"lodash": "^4.17.4",
8987
"node-sass": "^4.5.3",
9088
"protractor": "^5.1.2",

src/demo/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component } from '@angular/core';
2-
import { TreeviewI18n } from 'ngx-treeview';
2+
import { TreeviewI18n } from '../lib';
33
import { I18n } from './i18n';
44
import { DefaultTreeviewI18n } from './default-treeview-i18n';
55

src/tsconfig.app.json

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,14 @@
11
{
2-
"compileOnSave": false,
2+
"extends": "../tsconfig.json",
33
"compilerOptions": {
4-
"outDir": "../out-tsc/demo",
5-
"baseUrl": "..",
6-
"sourceMap": true,
7-
"declaration": false,
8-
"moduleResolution": "node",
9-
"emitDecoratorMetadata": true,
10-
"experimentalDecorators": true,
11-
"target": "es5",
12-
"lib": [
13-
"es2016",
14-
"dom"
15-
],
16-
"paths": {
17-
"ngx-treeview": [
18-
"dist/lib"
19-
]
20-
}
4+
"outDir": "../out-tsc/app",
5+
"baseUrl": "./",
6+
"module": "es2015",
7+
"types": []
218
},
229
"exclude": [
2310
"test.ts",
24-
"**/*.spec.ts"
11+
"**/*.spec.ts",
12+
"testing"
2513
]
2614
}

src/tsconfig.lib.json

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/tsconfig.spec.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
11
{
2+
"extends": "../tsconfig.json",
23
"compilerOptions": {
34
"outDir": "../out-tsc/spec",
4-
"baseUrl": ".",
5-
"sourceMap": true,
6-
"declaration": false,
7-
"moduleResolution": "node",
8-
"emitDecoratorMetadata": true,
9-
"experimentalDecorators": true,
10-
"target": "es5",
11-
"lib": [
12-
"es2016",
13-
"dom"
14-
],
5+
"baseUrl": "./",
156
"module": "commonjs",
7+
"target": "es5",
168
"types": [
179
"jasmine",
1810
"node"
@@ -22,6 +14,7 @@
2214
"test.ts"
2315
],
2416
"include": [
25-
"**/*.spec.ts"
17+
"**/*.spec.ts",
18+
"**/*.d.ts"
2619
]
2720
}

tsconfig.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@
1515
"lib": [
1616
"es2016",
1717
"dom"
18-
],
19-
"paths": {
20-
"ngx-treeview": [
21-
"lib"
22-
]
23-
}
18+
]
2419
},
2520
"exclude": [
2621
"node_modules"

0 commit comments

Comments
 (0)