mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Fix/AAE 24522 js api build (#10010)
* Fixing js-api build * AAE-24522 js api build normally * [ci:force] * [ci:force] * [ci:force] - package-lock update * [ci:force] - fixing dependsOn for cli and testing * [ci:force] - These changes needs to be reviewed
This commit is contained in:
8
lib/cli/package-lock.json
generated
8
lib/cli/package-lock.json
generated
@@ -9,7 +9,7 @@
|
||||
"version": "6.9.0",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@alfresco/js-api": ">=7.7.0",
|
||||
"@alfresco/js-api": ">=7.8.0",
|
||||
"commander": "^6.2.1",
|
||||
"ejs": "^3.1.9",
|
||||
"license-checker": "^25.0.1",
|
||||
@@ -30,9 +30,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@alfresco/js-api": {
|
||||
"version": "7.7.0",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-7.7.0.tgz",
|
||||
"integrity": "sha512-qD88MfQ+7fBv3vFi0Ju1oEaDAE9L+VxISlmpXZq1HYkBCNcSrqbFwi8ZCBPb3gZPnKG88edebTTqC6MYsusFmQ==",
|
||||
"version": "7.8.0",
|
||||
"resolved": "https://registry.npmjs.org/@alfresco/js-api/-/js-api-7.8.0.tgz",
|
||||
"integrity": "sha512-3y5WwtvsEkwAB3WaFC9Ec+QMzvPmZccJ7Em06lVBDwxtFgZ1F2CisVNepWgZLoCSkCH8Lgm6e4Tr0L93S3AmoQ==",
|
||||
"dependencies": {
|
||||
"event-emitter": "^0.3.5",
|
||||
"superagent": "^9.0.1",
|
||||
|
@@ -40,12 +40,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependsOn": [
|
||||
{
|
||||
"projects": "self",
|
||||
"target": "build"
|
||||
}
|
||||
]
|
||||
"dependsOn": ["build"]
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nrwl/linter:eslint",
|
||||
|
@@ -51,7 +51,7 @@ export default function main(_args: string[], workingDir: string) {
|
||||
exit(0);
|
||||
}
|
||||
|
||||
const options = program.opts<AuditCommandArgs>();
|
||||
const options: AuditCommandArgs = program.opts();
|
||||
|
||||
let packagePath = path.resolve(workingDir, 'package.json');
|
||||
|
||||
|
@@ -50,7 +50,7 @@ export default async function main() {
|
||||
.option('-r, --retry [type]', 'retry ')
|
||||
.parse(argv);
|
||||
|
||||
const opts = program.opts<CheckCsEnvArgs>();
|
||||
const opts = program.opts();
|
||||
await checkEnv(opts);
|
||||
// TODO: https://alfresco.atlassian.net/browse/ACS-5873
|
||||
// await checkDiskSpaceFullEnv();
|
||||
|
@@ -50,7 +50,7 @@ export default async function main() {
|
||||
.option('--ui, --uiName [type]', 'uiName', 'Deployed app UI type on activiti-cloud')
|
||||
.parse(argv);
|
||||
|
||||
const options = program.opts<CheckPluginArgs>();
|
||||
const options = program.opts();
|
||||
|
||||
pluginEnv = new CheckEnv(options.host, options.username, options.password, options.clientId);
|
||||
await pluginEnv.checkEnv();
|
||||
|
@@ -755,7 +755,7 @@ export default async function main() {
|
||||
return;
|
||||
}
|
||||
|
||||
const options = initializeDefaultToken(program.opts());
|
||||
const options = initializeDefaultToken(program.opts() as ConfigArgs);
|
||||
|
||||
args = {
|
||||
host: options.host,
|
||||
|
@@ -49,7 +49,7 @@ export default async function main() {
|
||||
.option('-u, --username [type]', 'username ')
|
||||
.parse(argv);
|
||||
|
||||
const opts = program.opts<InitAcsEnvArgs>();
|
||||
const opts = program.opts();
|
||||
await checkEnv(opts);
|
||||
|
||||
logger.info(`***** Step initialize ACS *****`);
|
||||
|
@@ -65,7 +65,7 @@ export default async function main() {
|
||||
.option('--license [type]', 'APS license S3 path ')
|
||||
.parse(argv);
|
||||
|
||||
const opts = program.opts<InitApsEnvArgs>();
|
||||
const opts = program.opts();
|
||||
await checkEnv(opts);
|
||||
|
||||
logger.info(`***** Step 1 - Check License *****`);
|
||||
|
@@ -115,7 +115,7 @@ export default function main(_args: string[], workingDir: string) {
|
||||
exit(0);
|
||||
}
|
||||
|
||||
const options = program.opts<LicensesCommandArgs>();
|
||||
const options: LicensesCommandArgs = program.opts();
|
||||
let packagePath = path.resolve(workingDir, 'package.json');
|
||||
|
||||
if (options.package) {
|
||||
|
@@ -65,8 +65,7 @@
|
||||
"demo-shell/src/styles.scss",
|
||||
"demo-shell/src/custom-style-dev.scss",
|
||||
"node_modules/cropperjs/dist/cropper.min.css",
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css",
|
||||
|
||||
"node_modules/pdfjs-dist/web/pdf_viewer.css"
|
||||
],
|
||||
"stylePreprocessorOptions": {
|
||||
"includePaths": ["lib", "lib/core/src/lib"]
|
||||
|
@@ -8,36 +8,61 @@
|
||||
"build": {
|
||||
"executor": "@nrwl/js:tsc",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"dependsOn": ["build-esm5", "build-esm2015", "build-cjs"],
|
||||
"options": {
|
||||
"outputPath": "dist/libs/js-api",
|
||||
"outputPath": "dist/libs/js-api/typings",
|
||||
"main": "lib/js-api/src/index.ts",
|
||||
"tsConfig": "lib/js-api/tsconfig.lib.json",
|
||||
"assets": ["lib/js-api/*.md"],
|
||||
"externalBuildTargets": [
|
||||
"build"
|
||||
]
|
||||
"tsConfig": "lib/js-api/tsconfig/tsconfig.types.json",
|
||||
"externalBuildTargets": ["build"]
|
||||
},
|
||||
"configurations": {
|
||||
"test": {
|
||||
"outputPath": "dist/tmp/libs/js-api",
|
||||
"tsConfig": "lib/js-api/tsconfig.spec.json",
|
||||
"assets": [
|
||||
"lib/js-api/test/mockObjects/assets/**/*"
|
||||
]
|
||||
"assets": ["lib/js-api/test/mockObjects/assets/**/*"]
|
||||
}
|
||||
}
|
||||
},
|
||||
"build-all": {
|
||||
"executor": "nx:run-commands",
|
||||
"build-cjs": {
|
||||
"executor": "@nrwl/js:tsc",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"options": {
|
||||
"commands": [
|
||||
"npm run js_api_build"
|
||||
]
|
||||
"outputPath": "dist/libs/js-api",
|
||||
"main": "lib/js-api/src/index.ts",
|
||||
"tsConfig": "lib/js-api/tsconfig/tsconfig.cjs.json",
|
||||
"assets": ["lib/js-api/*.md", "lib/js-api/LICENSE.txt"]
|
||||
}
|
||||
},
|
||||
"build-esm5": {
|
||||
"executor": "@nrwl/js:tsc",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"options": {
|
||||
"outputPath": "dist/libs/js-api/esm5",
|
||||
"main": "lib/js-api/src/index.ts",
|
||||
"tsConfig": "lib/js-api/tsconfig/tsconfig.esm5.json"
|
||||
}
|
||||
},
|
||||
"build-esm2015": {
|
||||
"executor": "@nrwl/js:tsc",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"options": {
|
||||
"outputPath": "dist/libs/js-api/esm2015",
|
||||
"main": "lib/js-api/src/index.ts",
|
||||
"tsConfig": "lib/js-api/tsconfig/tsconfig.esm2015.json"
|
||||
}
|
||||
},
|
||||
"build-types": {
|
||||
"executor": "@nrwl/js:tsc",
|
||||
"outputs": ["{options.outputPath}"],
|
||||
"options": {
|
||||
"outputPath": "dist/libs/js-api/typings",
|
||||
"main": "lib/js-api/src/index.ts",
|
||||
"tsConfig": "lib/js-api/tsconfig/tsconfig.types.json"
|
||||
}
|
||||
},
|
||||
"npm-publish": {
|
||||
"executor": "nx:run-commands",
|
||||
"dependsOn": [ "build-all" ],
|
||||
"dependsOn": ["build"],
|
||||
"options": {
|
||||
"cwd": "dist/libs/js-api",
|
||||
"commands": [
|
||||
@@ -64,9 +89,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependsOn": [
|
||||
"copyToNodeModules"
|
||||
]
|
||||
"dependsOn": ["copyToNodeModules"]
|
||||
},
|
||||
"copyToNodeModules": {
|
||||
"executor": "nx:run-commands",
|
||||
@@ -77,22 +100,13 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependsOn": [
|
||||
{
|
||||
"projects": "self",
|
||||
"target": "build-all"
|
||||
}
|
||||
]
|
||||
"dependsOn": ["build"]
|
||||
},
|
||||
"test": {
|
||||
"executor": "nx:run-commands",
|
||||
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
||||
"options": {
|
||||
"commands": [
|
||||
"nx run js-api:build:test",
|
||||
"mocha --full-trace --config lib/js-api/.mocharc.json",
|
||||
"rm -fr dist/tmp/libs/js-api"
|
||||
],
|
||||
"commands": ["nx run js-api:build:test", "mocha --full-trace --config lib/js-api/.mocharc.json", "rm -fr dist/tmp/libs/js-api"],
|
||||
"parallel": false
|
||||
},
|
||||
"configurations": {
|
||||
|
@@ -56,12 +56,7 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"dependsOn": [
|
||||
{
|
||||
"projects": "self",
|
||||
"target": "build"
|
||||
}
|
||||
]
|
||||
"dependsOn": ["build"]
|
||||
},
|
||||
"npm-publish": {
|
||||
"executor": "nx:run-commands",
|
||||
|
Reference in New Issue
Block a user