Skip to content
This repository has been archived by the owner on Aug 6, 2022. It is now read-only.

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 292e3ad commit cb16ea5
Show file tree
Hide file tree
Showing 39 changed files with 1,223 additions and 16,016 deletions.
15 changes: 3 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,22 @@ This documentation is for the latest 6.x.x version which requires Angular 5 or n

[Example application](https://zefoy.github.io/ngx-swiper-wrapper/)
|
[StackBlitz example](https://stackblitz.com/github/zefoy/ngx-swiper-wrapper/tree/master/example)
[StackBlitz example](https://stackblitz.com/github/zefoy/ngx-swiper-wrapper/tree/master)
|
[Swiper documentation](http://idangero.us/swiper/api/)

### 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-swiper-wrapper
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.

43 changes: 0 additions & 43 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 cb16ea5

Please sign in to comment.