Skip to content
This repository has been archived by the owner on Sep 9, 2019. It is now read-only.

Commit

Permalink
Merge f06008c into 54bb4bb
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Dec 17, 2018
2 parents 54bb4bb + f06008c commit 789c090
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
8 changes: 5 additions & 3 deletions __tests__/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ describe('generator-console-package:app:@easyops', () => {
`packages/${packageName}/package.json`,
{
scripts: {
start: "ng-packagr -w -p package.json"
start: "WATCH_MODE=true node ../../ng-packagr",
build: "node ../../ng-packagr && rimraf dist/package.json"
}
}
);
Expand Down Expand Up @@ -221,7 +222,7 @@ describe('generator-console-package:app:@brick', () => {
`@brick/${packageName}/package.json`,
{
scripts: {
start: "ng-packagr -w -p package.json"
start: "WATCH_MODE=true node ../../ng-packagr"
}
}
);
Expand Down Expand Up @@ -344,7 +345,8 @@ describe('generator-console-package:app:@plugin-common', () => {
`@plugin-common/${packageName}/package.json`,
{
scripts: {
start: "ng-packagr -w -p package.json"
start: "WATCH_MODE=true node ../../ng-packagr",
build: "node ../../ng-packagr && rimraf dist/package.json"
}
}
);
Expand Down
2 changes: 2 additions & 0 deletions generators/app/templates/library/ng-package.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* eslint-env node */
module.exports = require("../../ng-package");
20 changes: 4 additions & 16 deletions generators/app/templates/library/package.json.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,13 @@
"license": "UNLICENSED",
"files": ["dist/"],
"scripts": {
<% if (!removeScriptsStart) { %>
"start": "ng-packagr -w -p package.json",
<% } %>
"prebuild": "rimraf dist",
"build": "ng-packagr -p package.json && rimraf dist/package.json",
<% if (!removeScriptsStart) { %> "start": "WATCH_MODE=true node ../../ng-packagr",<% } %>
"build": "node ../../ng-packagr && rimraf dist/package.json",
"prepublishOnly": "npm run build"
},
"ngPackage": {
"lib": {
"entryFile": "public_api.ts",
"languageLevel": [
"dom",
"esnext"
]
}
},
"peerDependencies": {
"@angular/common": "^6.0.3",
"@angular/core": "^6.0.3",
"@angular/common": "^6.1.4",
"@angular/core": "^6.1.4",
"@easyops/console-plugin-core": "^4.1.0"
},
"devDependencies": {
Expand Down

0 comments on commit 789c090

Please sign in to comment.