Browse Source

Merge pull request #5141 from abpframework/ci/volo-3078

Add @abp/ng.schematics publishing process to publish script
pull/5185/head
Mehmet Erim 6 years ago
committed by GitHub
parent
commit
36a21f346c
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      npm/ng-packs/packages/schematics/package.json
  2. 3961
      npm/ng-packs/packages/schematics/yarn.lock
  3. 5
      npm/ng-packs/scripts/build-schematics.ts
  4. 4
      npm/ng-packs/scripts/publish.ts

10
npm/ng-packs/packages/schematics/package.json

@ -12,13 +12,17 @@
"@angular-devkit/core": "~10.0.3",
"@angular-devkit/schematics": "~10.0.3",
"got": "^11.5.2",
"jsonc-parser": "^2.3.0",
"typescript": "~3.9.2"
},
"devDependencies": {
"@types/node": "^12.11.1",
"@schematics/angular": "~10.0.3",
"@types/jest": "^26.0.0",
"@types/node": "^12.11.1",
"jest": "^26.0.0",
"jest-preset-angular": "^8.2.0",
"@schematics/angular": "~10.0.3"
"jest-preset-angular": "^8.2.0"
},
"publishConfig": {
"access": "public"
}
}

3961
npm/ng-packs/packages/schematics/yarn.lock

File diff suppressed because it is too large

5
npm/ng-packs/scripts/build-schematics.ts

@ -48,6 +48,11 @@ async function* copyPackageFiles(packageName: string) {
(async () => {
await fse.remove(`../dist/${PACKAGE_TO_BUILD}`);
await execa('yarn', ['install', '--ignore-scripts'], {
stdout: 'inherit',
cwd: `../packages/${PACKAGE_TO_BUILD}`,
});
await execa(
'tsc',
['-p', `packages/${PACKAGE_TO_BUILD}/tsconfig.json`, '--outDir', `dist/${PACKAGE_TO_BUILD}`],

4
npm/ng-packs/scripts/publish.ts

@ -53,7 +53,9 @@ const publish = async () => {
if (program.preview) await replaceWithPreview(program.nextVersion);
await execa('yarn', ['build', '--noInstall'], { stdout: 'inherit' });
await execa('yarn', ['build', '--noInstall', '--skipNgcc'], { stdout: 'inherit' });
await execa('yarn', ['build:schematics'], { stdout: 'inherit' });
await fse.rename('../lerna.publish.json', '../lerna.json');

Loading…
Cancel
Save