Skip to content

Commit

Permalink
refactor: update ng-packagr to stable version (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
sibiraj-s authored Feb 7, 2018
1 parent b08a2ac commit 62f4522
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 27 deletions.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ before_script:
script:
- npm run test:single-run

jobs:
include:
- stage: lint
script: npm run lint
- stage: test
script: npm run test:single-run

5 changes: 3 additions & 2 deletions ng-package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"$schema": "./node_modules/ng-packagr/ng-package.schema.json",
"dest": "build/",
"workingDirectory": "./.ng_pkg_build",
"dest": "./build/",
"lib": {
"entryFile": "public_api.ts",
"entryFile": "./src/public_api.ts",
"umdModuleIds": {
"codemirror": "./node_modules/codemirror/lib/codemirror"
}
Expand Down
84 changes: 69 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ngx-editor",
"version": "3.3.0-rc.3",
"version": "3.3.0-rc.4",
"description": "WYSIWYG Editor for Angular Applications",
"license": "MIT",
"scripts": {
Expand All @@ -13,12 +13,12 @@
"ng": "ng",
"postbuild": "npm run build:package",
"prebuild": "npm run lint",
"precommit": "npm run test:single-run",
"precommit": "npm run lint && npm run test:single-run",
"prerelease": "npm run build",
"release": "sh ./scripts/release.sh",
"start": "ng serve --aot -o --port 5000 --host 0.0.0.0",
"test": "ng test",
"test:single-run": "npm run lint && ng test --watch false"
"test:single-run": "ng test --watch false"
},
"keywords": [
"angular-editor",
Expand All @@ -37,11 +37,11 @@
},
"homepage": "https://github.com/Sibiraj-S/ngx-editor",
"peerDependencies": {
"@angular/common": "^5.0.0",
"@angular/core": "^5.0.0",
"@angular/forms": "^5.0.0",
"@angular/common": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"font-awesome": "^4.7.0",
"rxjs": "^5.5.2",
"rxjs": "^5.5.6",
"codemirror": "^5.34.0"
},
"devDependencies": {
Expand Down Expand Up @@ -77,10 +77,11 @@
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"ng-packagr": "^2.0.0-rc.13",
"ng-packagr": "^2.0.0",
"protractor": "~5.1.2",
"rxjs": "^5.5.6",
"ts-node": "~4.1.0",
"tsickle": "^0.26.0",
"tslint": "~5.9.1",
"typescript": "~2.5.3",
"zone.js": "^0.8.19"
Expand Down
1 change: 0 additions & 1 deletion public_api.ts

This file was deleted.

1 change: 1 addition & 0 deletions src/public_api.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './app/ngx-editor/ngx-editor.module';
6 changes: 5 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@
"es2017",
"dom"
]
}
},
"exclude": [
".ng_build",
".ng_pkg_build",
]
}

0 comments on commit 62f4522

Please sign in to comment.