Skip to content
Snippets Groups Projects
Commit 14c8bdf4 authored by Mateusz Tyszczak's avatar Mateusz Tyszczak :scroll: Committed by Bartek Wrona
Browse files

Use common configs and scripts from common-ci-configuration

parent 3ba37ea4
No related branches found
Tags 1.27.7rc11
1 merge request!28Use common CI configuration scripts and configs
...@@ -16,4 +16,4 @@ jobs: ...@@ -16,4 +16,4 @@ jobs:
./scripts/publish_by_tag.sh 452 "${{ github.ref_name }}" "dist/hiveio-workerbee-${{ github.ref_name }}.tgz" build dist ./scripts/publish_by_tag.sh 452 "${{ github.ref_name }}" "dist/hiveio-workerbee-${{ github.ref_name }}.tgz" build dist
cd dist cd dist
echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} >> .npmrc echo //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }} >> .npmrc
npm publish --access public --provenance pnpm publish --access public --provenance
...@@ -11,7 +11,7 @@ variables: ...@@ -11,7 +11,7 @@ variables:
include: include:
- project: 'hive/common-ci-configuration' - project: 'hive/common-ci-configuration'
ref: 40451cfbe8c2995c66b2d4150dbb3c4d11fd8590 ref: fae6329387a55aee40c3760a9af95a7705644bf0
file: file:
- '/templates/npm_projects.gitlab-ci.yml' - '/templates/npm_projects.gitlab-ci.yml'
...@@ -96,8 +96,12 @@ supplement_documentation_url: ...@@ -96,8 +96,12 @@ supplement_documentation_url:
script: script:
- | - |
scripts/generate_api_docs.sh "${CI_PROJECT_URL}" "${CI_COMMIT_SHA}" "${GEN_DOC_URL}" tmp_doc set -xe
npm pack --pack-destination "${DIST_DIR}" --json > "${DIST_DIR}/built_package_info.json" # repack to include updated README in final package cd "${SOURCE_DIR}"
echo "Attempting to replace generated documentation url placeholder: "${GEN_DOC_URL}""
sed -i "s<\${GEN_DOC_URL}<${GEN_DOC_URL}<g" README.md
if grep -q "\${GEN_DOC_URL}" README.md; then exit 1; fi # Ensure that the placeholder was replaced
pnpm pack --pack-destination "${DIST_DIR}" --json > ""${DIST_DIR}/built_package_info.json" # repack to include updated README in final package
BUILT_PACKAGE_NAME=$(jq -r .[].filename "${DIST_DIR}/built_package_info.json") BUILT_PACKAGE_NAME=$(jq -r .[].filename "${DIST_DIR}/built_package_info.json")
echo BUILT_PACKAGE_PATH="${DIST_DIR}/${BUILT_PACKAGE_NAME}" > built_package_info.env echo BUILT_PACKAGE_PATH="${DIST_DIR}/${BUILT_PACKAGE_NAME}" > built_package_info.env
......
[submodule "examples/hive"] [submodule "examples/hive"]
path = examples/hive path = examples/hive
url = ../../hive/hive.git url = ../../hive/hive.git
[submodule "npm-common-config"]
path = npm-common-config
url = ../common-ci-configuration.git
# https://gitlab.syncad.com/hive group specification, offering aggregated package view: https://gitlab.syncad.com/groups/hive/-/packages
@hiveio:registry=https://gitlab.syncad.com/api/v4/groups/136/-/packages/npm/
.npmrc 0 → 120000
./npm-common-config/pnpm-config/.npmrc
\ No newline at end of file
Subproject commit 5806284d3c6feb2ce52bdb6077c20a9a578bb643
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
"lint-ci": "eslint --max-warnings=0", "lint-ci": "eslint --max-warnings=0",
"prebuild": "ls-engines && husky", "prebuild": "ls-engines && husky",
"build": "tsc", "build": "tsc",
"postbuild": "rollup -c && size-limit", "postbuild": "rollup -c && tsx ./npm-common-config/ts-common/terser.ts && size-limit",
"pretest": "playwright install chromium", "pretest": "playwright install chromium",
"test": "unset CI && playwright test --workers 1 --max-failures 1 --project=workerbee_testsuite" "test": "unset CI && playwright test --workers 1 --max-failures 1 --project=workerbee_testsuite"
}, },
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
"path": [ "path": [
"./dist/bundle" "./dist/bundle"
], ],
"limit": "150 kB", "limit": "100 kB",
"brotli": false "brotli": false
} }
], ],
...@@ -48,10 +48,10 @@ ...@@ -48,10 +48,10 @@
"@eslint/compat": "^1.2.2", "@eslint/compat": "^1.2.2",
"@eslint/eslintrc": "^3.1.0", "@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.14.0", "@eslint/js": "^9.14.0",
"@playwright/test": "^1.49.1", "@playwright/test": "catalog:playwright-toolset",
"@rollup/plugin-commonjs": "^27.0.0", "@rollup/plugin-commonjs": "catalog:rollup-toolset",
"@rollup/plugin-node-resolve": "^15.3.0", "@rollup/plugin-node-resolve": "catalog:rollup-toolset",
"@size-limit/file": "^11.1.6", "@size-limit/file": "catalog:size-limit-toolset",
"@types/node": "^18.19.50", "@types/node": "^18.19.50",
"@typescript-eslint/eslint-plugin": "^8.13.0", "@typescript-eslint/eslint-plugin": "^8.13.0",
"@typescript-eslint/parser": "^8.13.0", "@typescript-eslint/parser": "^8.13.0",
...@@ -59,20 +59,22 @@ ...@@ -59,20 +59,22 @@
"eslint": "^9.14.0", "eslint": "^9.14.0",
"eslint-plugin-import": "^2.31.0", "eslint-plugin-import": "^2.31.0",
"globals": "^15.12.0", "globals": "^15.12.0",
"http-server": "^14.1.1", "http-server": "catalog:playwright-toolset",
"husky": "^9.1.5", "husky": "catalog:husky",
"lint-staged": "^15.2.2", "lint-staged": "^15.2.2",
"ls-engines": "^0.9.3", "ls-engines": "^0.9.3",
"playwright": "^1.49.1", "playwright": "catalog:playwright-toolset",
"process": "^0.11.10", "process": "^0.11.10",
"rollup": "^4.22.4", "rollup": "catalog:rollup-toolset",
"rollup-plugin-dts": "^6.1.1", "rollup-plugin-dts": "catalog:rollup-toolset",
"size-limit": "^11.1.6", "size-limit": "catalog:size-limit-toolset",
"tslib": "^2.8.1", "terser": "catalog:terser",
"typedoc": "0.27.3", "tslib": "catalog:typescript-toolset",
"typedoc-gitlab-wiki-theme": "^2.1.0", "tsx": "catalog:typescript-toolset",
"typedoc-plugin-markdown": "4.3.1", "typedoc": "catalog:typedoc-toolset",
"typescript": "5.7.3" "typedoc-gitlab-wiki-theme": "catalog:typedoc-toolset",
"typedoc-plugin-markdown": "catalog:typedoc-toolset",
"typescript": "catalog:typescript-toolset"
}, },
"dependencies": { "dependencies": {
"@hiveio/beekeeper": "1.27.8-stable.250131103618", "@hiveio/beekeeper": "1.27.8-stable.250131103618",
......
This diff is collapsed.
./npm-common-config/pnpm-config/pnpm-workspace.yaml
\ No newline at end of file
{ {
"extends": "./npm-common-config/ts-common/tsconfig.base.json",
"compilerOptions": { "compilerOptions": {
"emitDecoratorMetadata": true,
"resolveJsonModule": true,
"experimentalDecorators": true,
"declaration": true,
"noImplicitAny": false,
"noLib": false,
"allowUnreachableCode": false,
"allowSyntheticDefaultImports": true,
"allowUnusedLabels": false,
"strictNullChecks": true,
"strictPropertyInitialization": true,
"noFallthroughCasesInSwitch": false,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"rootDir": "./src", "rootDir": "./src",
"baseUrl": ".", "baseUrl": ".",
"paths": {},
"outDir": "./dist", "outDir": "./dist",
"tsBuildInfoFile": "./dist/.tsbuildinfo",
"removeComments": false,
"incremental": true, "incremental": true,
"checkJs": false, "tsBuildInfoFile": "./dist/.tsbuildinfo"
"strict": true,
"alwaysStrict": true,
"allowJs": true,
"sourceMap": true,
"target": "ES2020",
"lib": [
"ES2020",
"DOM"
],
"module": "ES2020",
"moduleResolution": "Bundler",
"esModuleInterop": true,
"noErrorTruncation": true
},
"buildOptions": {
"force": true,
"verbose": true
}, },
"include": ["src/**/*"], "include": ["src/**/*"],
"exclude": ["**/node_modules", "dist"] "exclude": ["**/node_modules", "dist"]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment