Skip to content

Commit

Permalink
Switched to using Angular CLI packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
sconix committed Dec 24, 2019
1 parent 2bb6cc4 commit b4ef3ec
Show file tree
Hide file tree
Showing 52 changed files with 1,699 additions and 14,105 deletions.
16 changes: 3 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,30 +10,20 @@ This documentation is for the latest 5/6.x.x version which requires Angular 5 or

[Example application](https://zefoy.github.io/ngx-font-picker/)
|
[StackBlitz example](https://stackblitz.com/github/zefoy/ngx-font-picker/tree/master/example)
[StackBlitz example](https://stackblitz.com/github/zefoy/ngx-font-picker/tree/master)

### Building the library

```bash
npm install
npm start
npm run build
```

### Running the example

```bash
cd example
npm install
npm start
```

### Library development


```bash
npm link
cd example
npm link ngx-font-picker
npm run start
```

### Installing and usage
Expand Down
124 changes: 124 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,124 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"app": {
"projectType": "application",
"schematics": {},
"root": "",
"sourceRoot": "projects/app/src",
"prefix": "app",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/app",
"index": "projects/app/src/index.html",
"main": "projects/app/src/main.ts",
"polyfills": "projects/app/src/polyfills.ts",
"tsConfig": "projects/app/tsconfig.json",
"aot": true,
"assets": [
"projects/app/src/favicon.ico",
"projects/app/src/assets"
],
"styles": [
"projects/app/src/styles.css"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "projects/app/src/environments/environment.ts",
"with": "projects/app/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "none",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
"maximumWarning": "2mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "6kb",
"maximumError": "10kb"
}
]
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "app:build"
},
"configurations": {
"production": {
"browserTarget": "app:build:production"
}
}
},
"extract-i18n": {
"builder": "@angular-devkit/build-angular:extract-i18n",
"options": {
"browserTarget": "app:build"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/app/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"lib": {
"projectType": "library",
"root": "projects/lib",
"sourceRoot": "projects/lib/src",
"prefix": "lib",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/lib/tsconfig.json",
"project": "projects/lib/ng-package.json"
},
"configurations": {
"production": {
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/lib/tsconfig.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "lib"
}
15 changes: 0 additions & 15 deletions config/rollup-es5.config.js

This file was deleted.

45 changes: 0 additions & 45 deletions config/rollup-umd.config.js

This file was deleted.

21 changes: 0 additions & 21 deletions example/LICENSE.md

This file was deleted.

1 change: 0 additions & 1 deletion example/README.md

This file was deleted.

85 changes: 0 additions & 85 deletions example/angular.json

This file was deleted.

5 changes: 0 additions & 5 deletions example/browserslist

This file was deleted.

Loading

0 comments on commit b4ef3ec

Please sign in to comment.