[ACS-6370] switch js-api builds to original node.js (#9114)

* switch js-api builds to original node.js

* [ci:force] cleanup ts configs

* [ci:force] remove temp hotfix for js-api

* remove dead code
This commit is contained in:
Denys Vuika
2023-11-27 09:54:24 +00:00
committed by GitHub
parent dbe3a7c7db
commit 3677bfb78e
19 changed files with 395 additions and 82 deletions

43
lib/js-api/index.ts Normal file
View File

@@ -0,0 +1,43 @@
/*!
* @license
* Copyright © 2005-2023 Hyland Software, Inc. and its affiliates. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
export * from './src/api/content-rest-api/index';
export * from './src/api/content-custom-api/index';
export * from './src/api/discovery-rest-api/index';
export * from './src/api/gs-classification-rest-api/index';
export * from './src/api/gs-core-rest-api/index';
export * from './src/api/auth-rest-api/index';
export * from './src/api/activiti-rest-api/index';
export * from './src/api/search-rest-api/index';
export * from './src/api/model-rest-api/index';
export * from './src/api/content-custom-api/api/content.api';
export * from './src/authentication/contentAuth';
export * from './src/authentication/processAuth';
export * from './src/authentication/oauth2Auth';
export * from './src/contentClient';
export * from './src/processClient';
export * from './src/storage';
export * from './src/alfrescoApi';
export * from './src/alfrescoApiClient';
export * from './src/alfrescoApiConfig';
export * from './src/to-deprecate/alfresco-api-type';
export * from './src/api-clients/api-client';
export * from './src/api-clients/http-client.interface';
export * from './src/utils';

View File

@@ -16,5 +16,9 @@
"event-emitter": "^0.3.5",
"superagent": "^8.0.9",
"tslib": "^2.6.1"
}
},
"main": "./index.js",
"typings": "./typings/index.d.ts",
"module": "./esm5/index.js",
"es2015": "./esm2015/index.js"
}

View File

@@ -1,9 +0,0 @@
{
"$schema": "../../../node_modules/ng-packagr/ng-package.schema.json",
"dest": "../../../dist/libs/js-api",
"lib": {
"entryFile": "index.ts"
},
"allowedNonPeerDependencies": ["event-emitter", "superagent"],
"assets": ["LICENSE.txt", "README.md"]
}

View File

@@ -1,23 +0,0 @@
{
"extends": "../../../tsconfig.json",
"files": [],
"include": [],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "./tsconfig.lib.prod.json"
}
],
"compilerOptions": {
"baseUrl": "src",
"target": "es2020"
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true,
"strictTemplates": true
}
}

View File

@@ -1,10 +0,0 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "../../../dist/out-tsc",
"declaration": true,
"declarationMap": true
},
"exclude": ["./test.ts", "**/*.spec.ts", "**/*.test.ts"],
"include": ["**/*.ts"]
}

View File

@@ -1,9 +0,0 @@
{
"extends": "./tsconfig.lib.json",
"compilerOptions": {
"declarationMap": false
},
"angularCompilerOptions": {
"compilationMode": "partial"
}
}

24
lib/js-api/tsconfig.json Normal file
View File

@@ -0,0 +1,24 @@
{
"compilerOptions": {
"importHelpers": true,
"removeComments": true,
"preserveConstEnums": true,
"sourceMap": true,
"strictFunctionTypes": true,
"noImplicitAny": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"moduleResolution": "node",
"stripInternal": false,
"target": "es2015",
"outDir": "./.out",
"lib": ["es2018", "dom"],
"typeRoots": ["node_modules/@types"],
"types": []
},
"exclude": [".history", "*/node_modules", "config", "performance", "coverage", "node_modules", "package", "dist", "test"]
}

View File

@@ -0,0 +1,15 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"noEmit": false,
"mapRoot": ".",
"paths": {
"@alfresco/js-api": ["./"],
"@alfresco/js-api/*": ["./*"]
},
"inlineSources": true
},
"files": [
"../index.ts"
]
}

View File

@@ -0,0 +1,8 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "commonjs",
"target": "es2015",
"outDir": "../../../dist/libs/js-api"
}
}

View File

@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "es2015",
"importHelpers": true,
"moduleResolution": "node",
"target": "es2015",
"outDir": "../../../dist/libs/js-api/esm2015"
}
}

View File

@@ -0,0 +1,10 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "es2015",
"importHelpers": true,
"moduleResolution": "node",
"target": "ES2015",
"outDir": "../../../dist/libs/js-api/esm5"
}
}

View File

@@ -0,0 +1,11 @@
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"module": "es2015",
"target": "esnext",
"removeComments": false,
"declaration": true,
"declarationDir": "../../../dist/libs/js-api/typings",
"emitDeclarationOnly": true
}
}