Skip to content

Commit c2ff5bd

Browse files
committed
Switched to using Angular CLI packaging
1 parent 3c291aa commit c2ff5bd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1686
-14052
lines changed

README.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,32 +10,22 @@ This documentation is for the latest 5/6.x.x version which requires Angular 5 or
1010

1111
[Example application](https://zefoy.github.io/ngx-perfect-scrollbar/)
1212
|
13-
[StackBlitz example](https://stackblitz.com/github/zefoy/ngx-perfect-scrollbar/tree/master/example)
13+
[StackBlitz example](https://stackblitz.com/github/zefoy/ngx-perfect-scrollbar/tree/master)
1414
|
1515
[Perfect Scrollbar documentation](https://github.com/utatti/perfect-scrollbar/)
1616

1717
### Building the library
1818

1919
```bash
2020
npm install
21-
npm start
21+
npm run build
2222
```
2323

2424
### Running the example
2525

2626
```bash
27-
cd example
2827
npm install
29-
npm start
30-
```
31-
32-
### Library development
33-
34-
35-
```bash
36-
npm link
37-
cd example
38-
npm link ngx-perfect-scrollbar
28+
npm run start
3929
```
4030

4131
### Installing and usage

angular.json

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,124 @@
1+
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
3+
"version": 1,
4+
"newProjectRoot": "projects",
5+
"projects": {
6+
"app": {
7+
"projectType": "application",
8+
"schematics": {},
9+
"root": "",
10+
"sourceRoot": "projects/app/src",
11+
"prefix": "app",
12+
"architect": {
13+
"build": {
14+
"builder": "@angular-devkit/build-angular:browser",
15+
"options": {
16+
"outputPath": "dist/app",
17+
"index": "projects/app/src/index.html",
18+
"main": "projects/app/src/main.ts",
19+
"polyfills": "projects/app/src/polyfills.ts",
20+
"tsConfig": "projects/app/tsconfig.json",
21+
"aot": true,
22+
"assets": [
23+
"projects/app/src/favicon.ico",
24+
"projects/app/src/assets"
25+
],
26+
"styles": [
27+
"projects/app/src/styles.css"
28+
],
29+
"scripts": []
30+
},
31+
"configurations": {
32+
"production": {
33+
"fileReplacements": [
34+
{
35+
"replace": "projects/app/src/environments/environment.ts",
36+
"with": "projects/app/src/environments/environment.prod.ts"
37+
}
38+
],
39+
"optimization": true,
40+
"outputHashing": "all",
41+
"sourceMap": false,
42+
"extractCss": true,
43+
"namedChunks": false,
44+
"extractLicenses": true,
45+
"vendorChunk": false,
46+
"buildOptimizer": true,
47+
"budgets": [
48+
{
49+
"type": "initial",
50+
"maximumWarning": "2mb",
51+
"maximumError": "5mb"
52+
},
53+
{
54+
"type": "anyComponentStyle",
55+
"maximumWarning": "6kb",
56+
"maximumError": "10kb"
57+
}
58+
]
59+
}
60+
}
61+
},
62+
"serve": {
63+
"builder": "@angular-devkit/build-angular:dev-server",
64+
"options": {
65+
"browserTarget": "app:build"
66+
},
67+
"configurations": {
68+
"production": {
69+
"browserTarget": "app:build:production"
70+
}
71+
}
72+
},
73+
"extract-i18n": {
74+
"builder": "@angular-devkit/build-angular:extract-i18n",
75+
"options": {
76+
"browserTarget": "app:build"
77+
}
78+
},
79+
"lint": {
80+
"builder": "@angular-devkit/build-angular:tslint",
81+
"options": {
82+
"tsConfig": [
83+
"projects/app/tsconfig.json"
84+
],
85+
"exclude": [
86+
"**/node_modules/**"
87+
]
88+
}
89+
}
90+
}
91+
},
92+
"lib": {
93+
"projectType": "library",
94+
"root": "projects/lib",
95+
"sourceRoot": "projects/lib/src",
96+
"prefix": "lib",
97+
"architect": {
98+
"build": {
99+
"builder": "@angular-devkit/build-ng-packagr:build",
100+
"options": {
101+
"tsConfig": "projects/lib/tsconfig.json",
102+
"project": "projects/lib/ng-package.json"
103+
},
104+
"configurations": {
105+
"production": {
106+
}
107+
}
108+
},
109+
"lint": {
110+
"builder": "@angular-devkit/build-angular:tslint",
111+
"options": {
112+
"tsConfig": [
113+
"projects/lib/tsconfig.json"
114+
],
115+
"exclude": [
116+
"**/node_modules/**"
117+
]
118+
}
119+
}
120+
}
121+
}
122+
},
123+
"defaultProject": "lib"
124+
}

config/rollup-es5.config.js

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

config/rollup-umd.config.js

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

example/LICENSE.md

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

example/README.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/angular.json

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

example/browserslist

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

0 commit comments

Comments
 (0)