mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
[PRODENG-211] improved ADF CLI compilation (#9105)
* reduce npm log noise to errors * remove unused ts config * improve CLI build config * use monorepo libs when building CLI * [ci:force] minor polishing
This commit is contained in:
parent
e97333aabd
commit
3309ea63f6
@ -1074,8 +1074,7 @@
|
|||||||
"build": {
|
"build": {
|
||||||
"builder": "nx:run-commands",
|
"builder": "nx:run-commands",
|
||||||
"options": {
|
"options": {
|
||||||
"command":
|
"command": "cd lib/cli && npm run dist",
|
||||||
"cd lib/cli && npm i && npm run dist",
|
|
||||||
"stylePreprocessorOptions": {
|
"stylePreprocessorOptions": {
|
||||||
"includePaths": [
|
"includePaths": [
|
||||||
"lib", "lib/core/src/lib"
|
"lib", "lib/core/src/lib"
|
||||||
|
@ -41,7 +41,7 @@ export default function main(_args: string[], workingDir: string) {
|
|||||||
|
|
||||||
if (argv.includes('-h') || argv.includes('--help')) {
|
if (argv.includes('-h') || argv.includes('--help')) {
|
||||||
program.outputHelp();
|
program.outputHelp();
|
||||||
return;
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
let packagePath = path.resolve(workingDir, 'package.json');
|
let packagePath = path.resolve(workingDir, 'package.json');
|
||||||
|
@ -155,7 +155,7 @@ export default function main(_args: string[], workingDir: string) {
|
|||||||
|
|
||||||
if (argv.includes('-h') || argv.includes('--help')) {
|
if (argv.includes('-h') || argv.includes('--help')) {
|
||||||
program.outputHelp();
|
program.outputHelp();
|
||||||
return;
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
const dir = path.resolve(program.dir || workingDir);
|
const dir = path.resolve(program.dir || workingDir);
|
||||||
|
@ -124,6 +124,7 @@ async function getApplications(): Promise<{ list: { entries: any[] } }> {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`Get application by status ${error.status} `);
|
logger.error(`Get application by status ${error.status} `);
|
||||||
isValid = false;
|
isValid = false;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -158,6 +159,7 @@ function getDescriptors() {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`Get Descriptors ${error.status} `);
|
logger.error(`Get Descriptors ${error.status} `);
|
||||||
isValid = false;
|
isValid = false;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -192,6 +194,7 @@ function getProjects() {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error('Get Projects' + error.status);
|
logger.error('Get Projects' + error.status);
|
||||||
isValid = false;
|
isValid = false;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -227,6 +230,7 @@ function getProjectRelease(projectId: string) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error('Get Projects Release' + error.status);
|
logger.error('Get Projects Release' + error.status);
|
||||||
isValid = false;
|
isValid = false;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -297,6 +301,7 @@ function deleteProject(projectId: string) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error('Delete project error' + error.status);
|
logger.error('Delete project error' + error.status);
|
||||||
isValid = false;
|
isValid = false;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -373,6 +378,7 @@ function deleteDescriptor(name: string) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error('Delete descriptor' + error.status);
|
logger.error('Delete descriptor' + error.status);
|
||||||
isValid = false;
|
isValid = false;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -408,6 +414,7 @@ function deploy(model: any) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error('Deploy post' + error.status);
|
logger.error('Deploy post' + error.status);
|
||||||
isValid = false;
|
isValid = false;
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -148,6 +148,7 @@ async function lockFile(nodeId: string): Promise<NodeEntry> {
|
|||||||
return result;
|
return result;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error('Failed to lock file with error: ', error.stack);
|
logger.error('Failed to lock file with error: ', error.stack);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -190,6 +190,7 @@ async function hasDefaultTenant(tenantId: number, tenantName: string): Promise<b
|
|||||||
} else {
|
} else {
|
||||||
logger.info(`Wrong configuration. Another tenant has been created with id ${tenant.id} and name ${tenant.name}`);
|
logger.info(`Wrong configuration. Another tenant has been created with id ${tenant.id} and name ${tenant.name}`);
|
||||||
throwError(`Wrong configuration. Another tenant has been created with id ${tenant.id} and name ${tenant.name}`);
|
throwError(`Wrong configuration. Another tenant has been created with id ${tenant.id} and name ${tenant.name}`);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -212,6 +213,7 @@ async function createDefaultTenant(tenantName: string) {
|
|||||||
return tenant.id;
|
return tenant.id;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.info(`APS: not able to create the default tenant: ${JSON.parse(error.message)}` );
|
logger.info(`APS: not able to create the default tenant: ${JSON.parse(error.message)}` );
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,6 +287,7 @@ async function isDefaultAppDeployed(appName: string): Promise<boolean> {
|
|||||||
return defaultApp && defaultApp.length > 0;
|
return defaultApp && defaultApp.length > 0;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`Aps app failed to import/Publish!`);
|
logger.error(`Aps app failed to import/Publish!`);
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -306,6 +309,7 @@ async function importPublishApp(appName: string): Promise<AppDefinitionUpdateRes
|
|||||||
return result;
|
return result;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`Aps app failed to import/Publish!`, error.message);
|
logger.error(`Aps app failed to import/Publish!`, error.message);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -353,6 +357,7 @@ async function hasLicense(): Promise<boolean> {
|
|||||||
return false;
|
return false;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`Aps not able to check the license` );
|
logger.error(`Aps not able to check the license` );
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -378,6 +383,7 @@ async function getDefaultApsUsersFromRealm() {
|
|||||||
return apsDefaultUsers;
|
return apsDefaultUsers;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`APS: not able to fetch user: ${error.message}` );
|
logger.error(`APS: not able to fetch user: ${error.message}` );
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -403,6 +409,7 @@ async function isContentRepoPresent(tenantId: number, contentName: string): Prom
|
|||||||
return !!contentRepos.data.find(repo => repo.name === contentName);
|
return !!contentRepos.data.find(repo => repo.name === contentName);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
logger.error(`APS: not able to create content: ${error.message}` );
|
logger.error(`APS: not able to create content: ${error.message}` );
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -107,7 +107,7 @@ export default function main(_args: string[], workingDir: string) {
|
|||||||
|
|
||||||
if (argv.includes('-h') || argv.includes('--help')) {
|
if (argv.includes('-h') || argv.includes('--help')) {
|
||||||
program.outputHelp();
|
program.outputHelp();
|
||||||
return;
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
let packagePath = path.resolve(workingDir, 'package.json');
|
let packagePath = path.resolve(workingDir, 'package.json');
|
||||||
|
@ -215,6 +215,7 @@ async function getPeopleCount(skipCount: number = 0): Promise<PeopleTally> {
|
|||||||
return result;
|
return result;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error);
|
handleError(error);
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -232,6 +233,7 @@ async function getHomeFoldersCount(): Promise<number> {
|
|||||||
return homesFolderApiResult.list.pagination.totalItems;
|
return homesFolderApiResult.list.pagination.totalItems;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error);
|
handleError(error);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -246,6 +248,7 @@ async function getGroupsCount(): Promise<number> {
|
|||||||
return groupsApiResult.list.pagination.totalItems;
|
return groupsApiResult.list.pagination.totalItems;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error);
|
handleError(error);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -260,6 +263,7 @@ async function getSitesCount(): Promise<number> {
|
|||||||
return sitesApiResult.list.pagination.totalItems;
|
return sitesApiResult.list.pagination.totalItems;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error);
|
handleError(error);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -282,6 +286,7 @@ async function getFilesCount(): Promise<number> {
|
|||||||
return searchApiResult.list.pagination.totalItems;
|
return searchApiResult.list.pagination.totalItems;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
handleError(error);
|
handleError(error);
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
{
|
{
|
||||||
|
"extends": "../../tsconfig.json",
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"declaration": true,
|
"declaration": true,
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
{
|
|
||||||
"extends": "./tsconfig.lib.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"declarationMap": false
|
|
||||||
},
|
|
||||||
"angularCompilerOptions": {
|
|
||||||
"compilationMode": "partial"
|
|
||||||
}
|
|
||||||
}
|
|
101
package-lock.json
generated
101
package-lock.json
generated
@ -77,6 +77,7 @@
|
|||||||
"@storybook/angular": "6.5.16",
|
"@storybook/angular": "6.5.16",
|
||||||
"@storybook/builder-webpack5": "6.5.10",
|
"@storybook/builder-webpack5": "6.5.10",
|
||||||
"@storybook/manager-webpack5": "6.5.10",
|
"@storybook/manager-webpack5": "6.5.10",
|
||||||
|
"@types/ejs": "^3.1.5",
|
||||||
"@types/event-emitter": "^0.3.3",
|
"@types/event-emitter": "^0.3.3",
|
||||||
"@types/jasmine": "4.0.3",
|
"@types/jasmine": "4.0.3",
|
||||||
"@types/jasminewd2": "~2.0.2",
|
"@types/jasminewd2": "~2.0.2",
|
||||||
@ -86,6 +87,7 @@
|
|||||||
"@types/node": "18.0.0",
|
"@types/node": "18.0.0",
|
||||||
"@types/pdfjs-dist": "^2.10.378",
|
"@types/pdfjs-dist": "^2.10.378",
|
||||||
"@types/selenium-webdriver": "^4.0.11",
|
"@types/selenium-webdriver": "^4.0.11",
|
||||||
|
"@types/shelljs": "^0.8.15",
|
||||||
"@typescript-eslint/eslint-plugin": "5.59.8",
|
"@typescript-eslint/eslint-plugin": "5.59.8",
|
||||||
"@typescript-eslint/parser": "5.62.0",
|
"@typescript-eslint/parser": "5.62.0",
|
||||||
"@typescript-eslint/typescript-estree": "6.7.0",
|
"@typescript-eslint/typescript-estree": "6.7.0",
|
||||||
@ -94,6 +96,7 @@
|
|||||||
"css-loader": "^6.8.1",
|
"css-loader": "^6.8.1",
|
||||||
"dotenv": "16.1.3",
|
"dotenv": "16.1.3",
|
||||||
"editorjs-text-color-plugin": "1.13.1",
|
"editorjs-text-color-plugin": "1.13.1",
|
||||||
|
"ejs": "^3.1.9",
|
||||||
"eslint": "^8.47.0",
|
"eslint": "^8.47.0",
|
||||||
"eslint-config-prettier": "^8.10.0",
|
"eslint-config-prettier": "^8.10.0",
|
||||||
"eslint-plugin-ban": "^1.6.0",
|
"eslint-plugin-ban": "^1.6.0",
|
||||||
@ -140,6 +143,8 @@
|
|||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"sass-loader": "13.3.2",
|
"sass-loader": "13.3.2",
|
||||||
"selenium-webdriver": "4.1.0",
|
"selenium-webdriver": "4.1.0",
|
||||||
|
"shelljs": "^0.8.5",
|
||||||
|
"spdx-license-list": "^6.8.0",
|
||||||
"stylelint": "^14.15.0",
|
"stylelint": "^14.15.0",
|
||||||
"stylelint-config-standard-scss": "^3.0.0",
|
"stylelint-config-standard-scss": "^3.0.0",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
@ -21008,6 +21013,12 @@
|
|||||||
"@types/node": "*"
|
"@types/node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@types/ejs": {
|
||||||
|
"version": "3.1.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/ejs/-/ejs-3.1.5.tgz",
|
||||||
|
"integrity": "sha512-nv+GSx77ZtXiJzwKdsASqi+YQ5Z7vwHsTP0JY2SiQgjGckkBRKZnk8nIM+7oUZ1VCtuTz0+By4qVR7fqzp/Dfg==",
|
||||||
|
"dev": true
|
||||||
|
},
|
||||||
"node_modules/@types/eslint": {
|
"node_modules/@types/eslint": {
|
||||||
"version": "8.37.0",
|
"version": "8.37.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -21348,6 +21359,26 @@
|
|||||||
"@types/node": "*"
|
"@types/node": "*"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/@types/shelljs": {
|
||||||
|
"version": "0.8.15",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/shelljs/-/shelljs-0.8.15.tgz",
|
||||||
|
"integrity": "sha512-vzmnCHl6hViPu9GNLQJ+DZFd6BQI2DBTUeOvYHqkWQLMfKAAQYMb/xAmZkTogZI/vqXHCWkqDRymDI5p0QTi5Q==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@types/glob": "~7.2.0",
|
||||||
|
"@types/node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/@types/shelljs/node_modules/@types/glob": {
|
||||||
|
"version": "7.2.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz",
|
||||||
|
"integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"@types/minimatch": "*",
|
||||||
|
"@types/node": "*"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/@types/sockjs": {
|
"node_modules/@types/sockjs": {
|
||||||
"version": "0.3.33",
|
"version": "0.3.33",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
@ -45462,6 +45493,64 @@
|
|||||||
"node": ">=8"
|
"node": ">=8"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"node_modules/shelljs": {
|
||||||
|
"version": "0.8.5",
|
||||||
|
"resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.8.5.tgz",
|
||||||
|
"integrity": "sha512-TiwcRcrkhHvbrZbnRcFYMLl30Dfov3HKqzp5tO5b4pt6G/SezKcYhmDg15zXVBswHmctSAQKznqNW2LO5tTDow==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"glob": "^7.0.0",
|
||||||
|
"interpret": "^1.0.0",
|
||||||
|
"rechoir": "^0.6.2"
|
||||||
|
},
|
||||||
|
"bin": {
|
||||||
|
"shjs": "bin/shjs"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=4"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/shelljs/node_modules/glob": {
|
||||||
|
"version": "7.2.3",
|
||||||
|
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
|
||||||
|
"integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"fs.realpath": "^1.0.0",
|
||||||
|
"inflight": "^1.0.4",
|
||||||
|
"inherits": "2",
|
||||||
|
"minimatch": "^3.1.1",
|
||||||
|
"once": "^1.3.0",
|
||||||
|
"path-is-absolute": "^1.0.0"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": "*"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/isaacs"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/shelljs/node_modules/interpret": {
|
||||||
|
"version": "1.4.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/interpret/-/interpret-1.4.0.tgz",
|
||||||
|
"integrity": "sha512-agE4QfB2Lkp9uICn7BAqoscw4SZP9kTE2hxiFI3jBPmXJfdqiahTbUuKGsMoN2GtqL9AxhYioAcVvgsb1HvRbA==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.10"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"node_modules/shelljs/node_modules/rechoir": {
|
||||||
|
"version": "0.6.2",
|
||||||
|
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz",
|
||||||
|
"integrity": "sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==",
|
||||||
|
"dev": true,
|
||||||
|
"dependencies": {
|
||||||
|
"resolve": "^1.1.6"
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">= 0.10"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/side-channel": {
|
"node_modules/side-channel": {
|
||||||
"version": "1.0.4",
|
"version": "1.0.4",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
@ -45978,6 +46067,18 @@
|
|||||||
"version": "3.0.13",
|
"version": "3.0.13",
|
||||||
"license": "CC0-1.0"
|
"license": "CC0-1.0"
|
||||||
},
|
},
|
||||||
|
"node_modules/spdx-license-list": {
|
||||||
|
"version": "6.8.0",
|
||||||
|
"resolved": "https://registry.npmjs.org/spdx-license-list/-/spdx-license-list-6.8.0.tgz",
|
||||||
|
"integrity": "sha512-5UdM7r9yJ1EvsPQZWfa41AZjLQngl9iMMysm9XBW7Lqhq7aF8cllfqjS+rFCHB8FFMGSM0yFWue2LUV9mR0QzQ==",
|
||||||
|
"dev": true,
|
||||||
|
"engines": {
|
||||||
|
"node": ">=8"
|
||||||
|
},
|
||||||
|
"funding": {
|
||||||
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
|
}
|
||||||
|
},
|
||||||
"node_modules/spdx-ranges": {
|
"node_modules/spdx-ranges": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
@ -121,6 +121,7 @@
|
|||||||
"@storybook/angular": "6.5.16",
|
"@storybook/angular": "6.5.16",
|
||||||
"@storybook/builder-webpack5": "6.5.10",
|
"@storybook/builder-webpack5": "6.5.10",
|
||||||
"@storybook/manager-webpack5": "6.5.10",
|
"@storybook/manager-webpack5": "6.5.10",
|
||||||
|
"@types/ejs": "^3.1.5",
|
||||||
"@types/event-emitter": "^0.3.3",
|
"@types/event-emitter": "^0.3.3",
|
||||||
"@types/jasmine": "4.0.3",
|
"@types/jasmine": "4.0.3",
|
||||||
"@types/jasminewd2": "~2.0.2",
|
"@types/jasminewd2": "~2.0.2",
|
||||||
@ -130,6 +131,7 @@
|
|||||||
"@types/node": "18.0.0",
|
"@types/node": "18.0.0",
|
||||||
"@types/pdfjs-dist": "^2.10.378",
|
"@types/pdfjs-dist": "^2.10.378",
|
||||||
"@types/selenium-webdriver": "^4.0.11",
|
"@types/selenium-webdriver": "^4.0.11",
|
||||||
|
"@types/shelljs": "^0.8.15",
|
||||||
"@typescript-eslint/eslint-plugin": "5.59.8",
|
"@typescript-eslint/eslint-plugin": "5.59.8",
|
||||||
"@typescript-eslint/parser": "5.62.0",
|
"@typescript-eslint/parser": "5.62.0",
|
||||||
"@typescript-eslint/typescript-estree": "6.7.0",
|
"@typescript-eslint/typescript-estree": "6.7.0",
|
||||||
@ -138,6 +140,7 @@
|
|||||||
"css-loader": "^6.8.1",
|
"css-loader": "^6.8.1",
|
||||||
"dotenv": "16.1.3",
|
"dotenv": "16.1.3",
|
||||||
"editorjs-text-color-plugin": "1.13.1",
|
"editorjs-text-color-plugin": "1.13.1",
|
||||||
|
"ejs": "^3.1.9",
|
||||||
"eslint": "^8.47.0",
|
"eslint": "^8.47.0",
|
||||||
"eslint-config-prettier": "^8.10.0",
|
"eslint-config-prettier": "^8.10.0",
|
||||||
"eslint-plugin-ban": "^1.6.0",
|
"eslint-plugin-ban": "^1.6.0",
|
||||||
@ -184,6 +187,8 @@
|
|||||||
"rimraf": "^5.0.5",
|
"rimraf": "^5.0.5",
|
||||||
"sass-loader": "13.3.2",
|
"sass-loader": "13.3.2",
|
||||||
"selenium-webdriver": "4.1.0",
|
"selenium-webdriver": "4.1.0",
|
||||||
|
"shelljs": "^0.8.5",
|
||||||
|
"spdx-license-list": "^6.8.0",
|
||||||
"stylelint": "^14.15.0",
|
"stylelint": "^14.15.0",
|
||||||
"stylelint-config-standard-scss": "^3.0.0",
|
"stylelint-config-standard-scss": "^3.0.0",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
|
@ -77,7 +77,7 @@ update_library_version() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
cd $DESTDIR
|
cd $DESTDIR
|
||||||
npm version --allow-same-version --no-git-tag-version --force $VERSION
|
npm version --allow-same-version --no-git-tag-version --force --loglevel=error $VERSION
|
||||||
}
|
}
|
||||||
|
|
||||||
update_dependency_version() {
|
update_dependency_version() {
|
||||||
@ -156,10 +156,9 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "====== UPDATE COMPONENT LIBRARIES ======"
|
||||||
cd "$DIR/../"
|
cd "$DIR/../"
|
||||||
|
|
||||||
echo "====== UPDATE COMPONENTS ======"
|
|
||||||
|
|
||||||
for PROJECT in ${projects[@]}
|
for PROJECT in ${projects[@]}
|
||||||
do
|
do
|
||||||
update_library_version $PROJECT
|
update_library_version $PROJECT
|
||||||
@ -185,10 +184,10 @@ if $JS_API == true; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# bump root package.json
|
# bump root package.json
|
||||||
npm version --allow-same-version --no-git-tag-version --force $VERSION
|
npm version --allow-same-version --no-git-tag-version --force --loglevel=error $VERSION
|
||||||
|
|
||||||
echo "====== UPDATE DEMO SHELL ======"
|
echo "====== UPDATE DEMO SHELL ======"
|
||||||
|
|
||||||
DESTDIR="$DIR/../demo-shell/"
|
DESTDIR="$DIR/../demo-shell/"
|
||||||
cd $DESTDIR
|
cd $DESTDIR
|
||||||
npm version --allow-same-version --no-git-tag-version --force $VERSION
|
npm version --allow-same-version --no-git-tag-version --force --loglevel=error $VERSION
|
||||||
|
Loading…
x
Reference in New Issue
Block a user