Skip to content
This repository was archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Revert "[ACS-6231] Nx Workspace 17 and Node 20 (#1717)" (#1725)
Browse files Browse the repository at this point in the history
This reverts commit 5b0a8e9.
  • Loading branch information
DenysVuika authored Nov 10, 2023
1 parent 29833d7 commit 13bb69c
Show file tree
Hide file tree
Showing 44 changed files with 1,992 additions and 5,410 deletions.
95 changes: 34 additions & 61 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,75 +1,48 @@
{
"root": true,
"ignorePatterns": ["!**/*"],
"env": {
"node": true,
"browser": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@nx",
"@typescript-eslint",
"license-header",
"@cspell",
"eslint-plugin-import",
"prettier"
],
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"extends": [
"plugin:@nx/typescript",
"plugin:@cspell/recommended"
],
// TODO: consider removing these rules and improving the source code
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-namespace": "off",
"license-header/header": [
"error",
[
"/*!",
" * @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.",
" */"
]
]
}
},
{
"files": ["*.js", "*.jsx"],
"extends": [
"plugin:@nx/javascript",
"plugin:@cspell/recommended"
],
"rules": {}
},
{
"files": ["*.json"],
"parser": "jsonc-eslint-parser",
"rules": {
"@nx/dependency-checks": [
"error",
{
"ignoredFiles": [
"{projectRoot}/test/**/*"
]
}
]
}
}
]
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@cspell/recommended"
],
// TODO: consider removing these rules and improving the source code
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-namespace": "off",
"license-header/header": [
"error",
[
"/*!",
" * @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.",
" */"
]
]
}
}
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,3 @@ target
/bundles/
.env
.nyc_output
.nx
27 changes: 27 additions & 0 deletions .make-packages.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
"use strict";

const pkg = require('./package.json');
const fs = require('node:fs');

const OUTPUT_FOLDER = 'dist';

delete pkg.scripts;
delete pkg.devDependencies;
delete pkg.bundlesize;
delete pkg.nyc;

const rootPackageJson = {
...pkg,
name: '@alfresco/js-api',
main: './index.js',
typings: './typings/index.d.ts',
module: './esm5/index.js',
es2015: './esm2015/index.js'
};

fs.copyFileSync('./LICENSE.txt', `${OUTPUT_FOLDER}/LICENSE.txt`);
fs.copyFileSync('./README.md', `${OUTPUT_FOLDER}/README.md`);

fs.writeFileSync(`${OUTPUT_FOLDER}/package.json`, JSON.stringify(rootPackageJson, null, 2));


13 changes: 0 additions & 13 deletions .mocharc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
18
2 changes: 0 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# Add files here to ignore them from prettier formatting
/dist
/coverage

/.nx/cache
43 changes: 43 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -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';
35 changes: 0 additions & 35 deletions nx.json

This file was deleted.

Loading

0 comments on commit 13bb69c

Please sign in to comment.