ngx-deploy-npm
Advanced tools
Comparing version 1.2.4 to 1.3.0
@@ -13,16 +13,21 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!context.target) { | ||
throw new Error('Cannot execute the build target'); | ||
if (options.noBuild) { | ||
context.logger.info(`📦 Skipping build`); | ||
} | ||
const configuration = options.configuration; | ||
context.logger.info(`📦 Building "${context.target.project}". ${configuration ? `Configuration "${configuration}"` : ''}`); | ||
const target = { | ||
target: 'build', | ||
project: context.target.project | ||
}; | ||
if (configuration) { | ||
target.configuration = configuration; | ||
else { | ||
if (!context.target) { | ||
throw new Error('Cannot execute the build target'); | ||
} | ||
const configuration = options.configuration; | ||
context.logger.info(`📦 Building "${context.target.project}". ${configuration ? `Configuration "${configuration}"` : ''}`); | ||
const target = { | ||
target: 'build', | ||
project: context.target.project | ||
}; | ||
if (configuration) { | ||
target.configuration = configuration; | ||
} | ||
const build = yield context.scheduleTarget(target); | ||
yield build.result; | ||
} | ||
const build = yield context.scheduleTarget(target); | ||
yield build.result; | ||
yield engine.run(projectRoot, options, context.logger); | ||
@@ -29,0 +34,0 @@ }); |
@@ -6,2 +6,12 @@ { | ||
"properties": { | ||
"configuration": { | ||
"type": "string", | ||
"description": "This is a proposal from RFC #1. --- A named build target, as specified in the `configurations` section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. Same as `ng build --configuration=XXX`.", | ||
"alias": "c" | ||
}, | ||
"noBuild": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "This is a proposal from RFC #1. --- Skip build process during deployment." | ||
}, | ||
"packageVersion": { | ||
@@ -28,8 +38,4 @@ "type": "string", | ||
"default": false | ||
}, | ||
"configuration": { | ||
"type": "string", | ||
"description": "This is a proposal from RFC #1. --- A named build target, as specified in the `configurations` section of angular.json. Each named target is accompanied by a configuration of option defaults for that target. Same as `ng build --configuration=XXX`." | ||
} | ||
} | ||
} |
{ | ||
"name": "ngx-deploy-npm", | ||
"version": "1.2.4", | ||
"version": "1.3.0", | ||
"description": "Publish your angular packages to npm by just run `npm deploy your-packages`", | ||
"main": "index.js", | ||
"scripts": { | ||
"build": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts && tsc && copyfiles README.md builders.json collection.json package.json ngx-deploy-npm deploy/schema.json dist && cp ./LICENSE ./dist/LICENSE", | ||
"build": "rimraf dist && json2ts deploy/schema.json > deploy/schema.d.ts && tsc && copyfiles README.md LICENSE builders.json collection.json package.json ngx-deploy-npm deploy/schema.json dist", | ||
"predeploy": "npm run build", | ||
@@ -47,8 +47,8 @@ "deploy": "cd dist && npm publish --access public && cd ..", | ||
"devDependencies": { | ||
"@angular-devkit/architect": "^0.803.0-next.0", | ||
"@angular-devkit/core": "^8.3.0-next.0", | ||
"@angular-devkit/schematics": "^8.3.0-next.0", | ||
"@angular-devkit/architect": "^0.803.0", | ||
"@angular-devkit/core": "^8.3.0", | ||
"@angular-devkit/schematics": "^8.3.0", | ||
"@types/jest": "^24.0.18", | ||
"@types/node": "^12.6.9", | ||
"copyfiles": "^2.1.1", | ||
"copyfiles": "^2.4.1", | ||
"jest": "^24.8.0", | ||
@@ -55,0 +55,0 @@ "json-schema-to-typescript": "^7.0.0", |
@@ -28,2 +28,3 @@ # ngx-deploy-npm 🚀 | ||
- [--configuration](#--configuration) | ||
- [--no-build](#--no-build) | ||
- [--package-version](#--package-version) | ||
@@ -119,3 +120,17 @@ - [--tag](#--tag) | ||
Same as `ng build --configuration=XXX`. | ||
This command has no effect if the option `--no-build` option is active. | ||
#### --no-build | ||
- **optional** | ||
- Default: `false` (string) | ||
- Example: | ||
- `ng deploy` – Angular project is build in production mode before the deployment | ||
- `ng deploy --no-build` – Angular project is NOT build | ||
Skip build process during deployment. | ||
This can be used when you are sure that you haven't changed anything and want to deploy with the latest artifact. | ||
This command causes the `--configuration` setting to have no effect. | ||
> **This is a proposal from [RFC #1](https://github.com/angular-schule/ngx-deploy-starter/issues/1).** | ||
#### --package-version | ||
@@ -122,0 +137,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
89274
762
277