-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Aae 23572 recreate js api lib into a proper nx workspace lib bis (#9917)
* back to mocha, working in future node versions * update package-lock * change bundle to build * update node to 18.20.3 [ci:force] * fix e2es [ci:force] * bring bundle back to fix e2e [ci:force] * patch in legacy builds * Updated package-lock * Updated executor to new @nx * Revert "Updated executor to new @nx" This reverts commit a520ba3. * Improved ts config reverted changes on @nrwl --------- Co-authored-by: Wojciech Duda <[email protected]>
- Loading branch information
1 parent
764633e
commit 9d72d68
Showing
10 changed files
with
4,536 additions
and
10,497 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18.18.2 | ||
18.20.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
{ | ||
"extensions": ["ts"], | ||
"spec": ["lib/js-api/test/**/*.spec.ts"], | ||
"node-option": [ | ||
"loader=ts-node/register" | ||
] | ||
"spec": ["dist/tmp/libs/js-api/test/**/*.spec.js"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"name": "js-api", | ||
"$schema": "../../node_modules/nx/schemas/project-schema.json", | ||
"sourceRoot": "lib/js-api", | ||
"projectType": "library", | ||
"prefix": "adf", | ||
"targets": { | ||
"build": { | ||
"executor": "@nrwl/js:tsc", | ||
"outputs": ["{options.outputPath}"], | ||
"options": { | ||
"outputPath": "dist/libs/js-api", | ||
"main": "lib/js-api/src/index.ts", | ||
"tsConfig": "lib/js-api/tsconfig.lib.json", | ||
"assets": ["lib/js-api/*.md"], | ||
"externalBuildTargets": [ | ||
"build" | ||
] | ||
}, | ||
"configurations": { | ||
"test": { | ||
"outputPath": "dist/tmp/libs/js-api", | ||
"tsConfig": "lib/js-api/tsconfig.spec.json", | ||
"assets": [ | ||
"lib/js-api/test/mockObjects/assets/**/*" | ||
] | ||
} | ||
} | ||
}, | ||
"build-all": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"commands": [ | ||
"npm run js_api_build" | ||
] | ||
} | ||
}, | ||
"publish": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"command": "node tools/scripts/publish.mjs lib-js-api {args.ver} {args.tag}" | ||
}, | ||
"dependsOn": [ | ||
{ | ||
"projects": "self", | ||
"target": "build-all" | ||
} | ||
] | ||
}, | ||
"lint": { | ||
"executor": "@nrwl/linter:eslint", | ||
"outputs": ["{options.outputFile}"], | ||
"options": { | ||
"lintFilePatterns": ["lib/js-api/**/*.ts"] | ||
} | ||
}, | ||
"bundle": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"commands": [ | ||
{ | ||
"command": "echo cli bundle created" | ||
} | ||
] | ||
}, | ||
"dependsOn": [ | ||
"copyToNodeModules" | ||
] | ||
}, | ||
"copyToNodeModules": { | ||
"executor": "nx:run-commands", | ||
"options": { | ||
"commands": [ | ||
{ | ||
"command": "rm -rf ./node_modules/@alfresco/js-api/ && mkdir -p ./node_modules/@alfresco/js-api/ && cp -R ./dist/libs/js-api/* ./node_modules/@alfresco/js-api/" | ||
} | ||
] | ||
}, | ||
"dependsOn": [ | ||
{ | ||
"projects": "self", | ||
"target": "build-all" | ||
} | ||
] | ||
}, | ||
"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" | ||
], | ||
"parallel": false | ||
}, | ||
"configurations": { | ||
"ci": { | ||
"ci": true, | ||
"codeCoverage": true | ||
} | ||
} | ||
} | ||
}, | ||
"tags": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"extends": "../../tsconfig.json", | ||
"compilerOptions": { | ||
"module": "CommonJS", | ||
"moduleResolution": "node", | ||
"target": "ES2015", | ||
"esModuleInterop": true, | ||
"isolatedModules": true, | ||
"allowSyntheticDefaultImports": true, | ||
"lib": ["ESNext", "dom"], | ||
"types": ["mocha"] | ||
}, | ||
"exclude": [], | ||
"include": ["**/*"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
18.18.2 | ||
18.20.3 |
Oops, something went wrong.