mirror of
https://github.com/qlik-oss/nebula.js.git
synced 2025-12-19 17:58:43 -05:00
chore: upgrade to yarn modern (#1796)
* chore: upgrade to yarn modern * chore: disable hardened mode * chore: update gitignore * chore: update versions * chore: use touch instead of echo Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1,8 +1,7 @@
|
|||||||
{
|
{
|
||||||
"buildCommand": "build:codesandbox",
|
"buildCommand": "build:codesandbox",
|
||||||
"installCommand": "install:codesandbox",
|
|
||||||
"packages": ["apis/stardust"],
|
"packages": ["apis/stardust"],
|
||||||
"sandboxes": ["/.codesandbox/mekko"],
|
"sandboxes": ["/.codesandbox/mekko"],
|
||||||
"silent": true,
|
"silent": true,
|
||||||
"node": "16"
|
"node": "18"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
{
|
{
|
||||||
"hardReloadOnChange": true,
|
"hardReloadOnChange": true,
|
||||||
"node": "16"
|
"node": "18"
|
||||||
}
|
}
|
||||||
|
|||||||
16
.github/scripts/nebula_create.sh
vendored
Normal file → Executable file
16
.github/scripts/nebula_create.sh
vendored
Normal file → Executable file
@@ -15,19 +15,15 @@ else
|
|||||||
echo "Create project based on Picasso template"
|
echo "Create project based on Picasso template"
|
||||||
./commands/cli/lib/index.js create "$PROJECT_NAME" --picasso "$PICASSO_TEMPLATE" --install "$INSTALL" --pkgm yarn
|
./commands/cli/lib/index.js create "$PROJECT_NAME" --picasso "$PICASSO_TEMPLATE" --install "$INSTALL" --pkgm yarn
|
||||||
fi
|
fi
|
||||||
|
touch "$PROJECT_NAME"/yarn.lock
|
||||||
echo "Yarn"
|
echo "Yarn"
|
||||||
yarn
|
YARN_ENABLE_HARDENED_MODE=0 yarn
|
||||||
echo "Linking packages"
|
echo "Linking packages"
|
||||||
(cd apis/stardust && yarn link)
|
|
||||||
(cd commands/cli && yarn link)
|
|
||||||
(cd commands/build && yarn link)
|
|
||||||
(cd commands/serve && yarn link)
|
|
||||||
cd "$PROJECT_NAME"
|
cd "$PROJECT_NAME"
|
||||||
yarn link "@nebula.js/stardust"
|
yarn link ../../apis/stardust
|
||||||
yarn link "@nebula.js/cli"
|
yarn link ../../commands/cli
|
||||||
yarn link "@nebula.js/cli-build"
|
yarn link ../../commands/build
|
||||||
yarn link "@nebula.js/cli-serve"
|
yarn link ../../commands/serve
|
||||||
echo "Log node_modules/@nebula.js"
|
echo "Log node_modules/@nebula.js"
|
||||||
ls -la node_modules/@nebula.js
|
ls -la node_modules/@nebula.js
|
||||||
if [ "$BUILD" = "true" ]; then
|
if [ "$BUILD" = "true" ]; then
|
||||||
|
|||||||
27
.github/workflows/ci.yml
vendored
27
.github/workflows/ci.yml
vendored
@@ -14,12 +14,14 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
- name: Enable Corepack
|
||||||
|
run: corepack enable
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 24.7.0
|
node-version: 24.7.0
|
||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --immutable
|
||||||
- name: Build
|
- name: Build
|
||||||
run: yarn run build
|
run: yarn run build
|
||||||
- name: Upload workspace
|
- name: Upload workspace
|
||||||
@@ -34,13 +36,15 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
- name: Enable Corepack
|
||||||
|
run: corepack enable
|
||||||
- name: Download workspace
|
- name: Download workspace
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: workspace
|
name: workspace
|
||||||
path: .
|
path: .
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --immutable
|
||||||
- name: Locale verify
|
- name: Locale verify
|
||||||
run: yarn run locale:verify
|
run: yarn run locale:verify
|
||||||
- name: Lint
|
- name: Lint
|
||||||
@@ -64,13 +68,15 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
- name: Enable Corepack
|
||||||
|
run: corepack enable
|
||||||
- name: Download workspace
|
- name: Download workspace
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: workspace
|
name: workspace
|
||||||
path: .
|
path: .
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --immutable
|
||||||
- name: Install Playwright Browsers
|
- name: Install Playwright Browsers
|
||||||
run: npx playwright install --with-deps
|
run: npx playwright install --with-deps
|
||||||
- name: Test component
|
- name: Test component
|
||||||
@@ -99,13 +105,15 @@ jobs:
|
|||||||
needs: build
|
needs: build
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
- name: Enable Corepack
|
||||||
|
run: corepack enable
|
||||||
- name: Download workspace
|
- name: Download workspace
|
||||||
uses: actions/download-artifact@v5
|
uses: actions/download-artifact@v5
|
||||||
with:
|
with:
|
||||||
name: workspace
|
name: workspace
|
||||||
path: .
|
path: .
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --immutable
|
||||||
- name: Install Playwright Chromium
|
- name: Install Playwright Chromium
|
||||||
run: npx playwright install --with-deps chromium
|
run: npx playwright install --with-deps chromium
|
||||||
- run: chmod +x .github/scripts/nebula_create.sh
|
- run: chmod +x .github/scripts/nebula_create.sh
|
||||||
@@ -114,7 +122,7 @@ jobs:
|
|||||||
- name: Create Nebula visualization project (Barchart)
|
- name: Create Nebula visualization project (Barchart)
|
||||||
run: .github/scripts/nebula_create.sh generated/barchart barchart false false true true
|
run: .github/scripts/nebula_create.sh generated/barchart barchart false false true true
|
||||||
- name: Create Nebula mashup project
|
- name: Create Nebula mashup project
|
||||||
run: .github/scripts/nebula_create.sh hello-mashup none true true true false
|
run: .github/scripts/nebula_create.sh generated/hello-mashup none true true true false
|
||||||
- name: Store barchart screenshots
|
- name: Store barchart screenshots
|
||||||
if: always()
|
if: always()
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
@@ -136,7 +144,10 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: Enable Corepack
|
||||||
|
run: corepack enable
|
||||||
- name: Set up Node.js
|
- name: Set up Node.js
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
@@ -144,7 +155,7 @@ jobs:
|
|||||||
cache: 'yarn'
|
cache: 'yarn'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: yarn install --immutable
|
||||||
|
|
||||||
- name: Create version.txt
|
- name: Create version.txt
|
||||||
id: version
|
id: version
|
||||||
@@ -153,7 +164,7 @@ jobs:
|
|||||||
if [ "${GITHUB_REF_TYPE}" = "tag" ]; then
|
if [ "${GITHUB_REF_TYPE}" = "tag" ]; then
|
||||||
version=${GITHUB_REF_NAME#v}
|
version=${GITHUB_REF_NAME#v}
|
||||||
else
|
else
|
||||||
yarn workspace "@nebula.js/stardust" version --prepatch --no-git-tag-version
|
yarn workspace "@nebula.js/stardust" version prepatch
|
||||||
version=$(node -p "require('./apis/stardust/api-spec/spec.json').info.version")
|
version=$(node -p "require('./apis/stardust/api-spec/spec.json').info.version")
|
||||||
fi
|
fi
|
||||||
echo "$version" > ./version.txt
|
echo "$version" > ./version.txt
|
||||||
|
|||||||
9
.gitignore
vendored
9
.gitignore
vendored
@@ -10,6 +10,14 @@
|
|||||||
.npmrc
|
.npmrc
|
||||||
*.pem
|
*.pem
|
||||||
|
|
||||||
|
.pnp.*
|
||||||
|
.yarn/*
|
||||||
|
!.yarn/patches
|
||||||
|
!.yarn/plugins
|
||||||
|
!.yarn/releases
|
||||||
|
!.yarn/sdks
|
||||||
|
!.yarn/versions
|
||||||
|
|
||||||
node_modules/
|
node_modules/
|
||||||
coverage/
|
coverage/
|
||||||
dist/
|
dist/
|
||||||
@@ -20,6 +28,7 @@ test/**/__artifacts__/temp
|
|||||||
apis/*/core/**/*.js
|
apis/*/core/**/*.js
|
||||||
apis/*/core/**/*.js.map
|
apis/*/core/**/*.js.map
|
||||||
apis/locale/all.json
|
apis/locale/all.json
|
||||||
|
generated/
|
||||||
|
|
||||||
Search/
|
Search/
|
||||||
|
|
||||||
|
|||||||
2
.yarnrc.yml
Normal file
2
.yarnrc.yml
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
nodeLinker: node-modules
|
||||||
|
enableHardenedMode: false
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
"@nebula.js/cli-serve": "<%= nebulaVersion %>",
|
"@nebula.js/cli-serve": "<%= nebulaVersion %>",
|
||||||
"@nebula.js/cli-sense": "<%= nebulaVersion %>",
|
"@nebula.js/cli-sense": "<%= nebulaVersion %>",
|
||||||
"@playwright/test": "^1.28.1",
|
"@playwright/test": "^1.28.1",
|
||||||
"@qlik/sdk": "^0.12.0",
|
"@qlik/sdk": "^0.28.0",
|
||||||
"eslint": "7.27.0",
|
"eslint": "7.27.0",
|
||||||
"eslint-config-airbnb-base": "14.2.1",
|
"eslint-config-airbnb-base": "14.2.1",
|
||||||
"eslint-plugin-import": "2.23.4",
|
"eslint-plugin-import": "2.23.4",
|
||||||
|
|||||||
@@ -32,7 +32,7 @@
|
|||||||
"eslint-config-airbnb-base": "14.2.1",
|
"eslint-config-airbnb-base": "14.2.1",
|
||||||
"eslint-plugin-import": "2.23.4",
|
"eslint-plugin-import": "2.23.4",
|
||||||
"eslint-plugin-mocha": "9.0.0",
|
"eslint-plugin-mocha": "9.0.0",
|
||||||
"@qlik/sdk": "^0.12.0",
|
"@qlik/sdk": "^0.28.0",
|
||||||
"picasso.js": "2.1.1",
|
"picasso.js": "2.1.1",
|
||||||
"picasso-plugin-q": "2.1.1"
|
"picasso-plugin-q": "2.1.1"
|
||||||
},
|
},
|
||||||
|
|||||||
12
package.json
12
package.json
@@ -6,7 +6,6 @@
|
|||||||
"build": "yarn run locale:generate && cross-env NODE_ENV=production FORCE_COLOR=1 lerna run build --stream",
|
"build": "yarn run locale:generate && cross-env NODE_ENV=production FORCE_COLOR=1 lerna run build --stream",
|
||||||
"build:dev": "yarn run locale:generate && cross-env NODE_ENV=development FORCE_COLOR=1 lerna run build --stream",
|
"build:dev": "yarn run locale:generate && cross-env NODE_ENV=development FORCE_COLOR=1 lerna run build --stream",
|
||||||
"build:codesandbox": "yarn run locale:generate && cross-env NODE_ENV=production CODESANDBOX=1 FORCE_COLOR=1 lerna run build --stream --scope \"@nebula.js/{stardust,theme,locale,conversion,enigma-mocker}\"",
|
"build:codesandbox": "yarn run locale:generate && cross-env NODE_ENV=production CODESANDBOX=1 FORCE_COLOR=1 lerna run build --stream --scope \"@nebula.js/{stardust,theme,locale,conversion,enigma-mocker}\"",
|
||||||
"install:codesandbox": "yarn --ignore-engines",
|
|
||||||
"build:watch": "FORCE_COLOR=1 lerna run build:watch --stream --concurrency 99 --no-sort",
|
"build:watch": "FORCE_COLOR=1 lerna run build:watch --stream --concurrency 99 --no-sort",
|
||||||
"format": "prettier --write '**/**/*' --ignore-unknown",
|
"format": "prettier --write '**/**/*' --ignore-unknown",
|
||||||
"locale:verify": "node tools/verify-translations.cjs",
|
"locale:verify": "node tools/verify-translations.cjs",
|
||||||
@@ -93,18 +92,17 @@
|
|||||||
"yargs": "17.7.2"
|
"yargs": "17.7.2"
|
||||||
},
|
},
|
||||||
"resolutions": {
|
"resolutions": {
|
||||||
"**/caniuse-lite": "1.0.30001739",
|
"caniuse-lite": "1.0.30001739",
|
||||||
"**/react": "18.3.1",
|
"react": "18.3.1",
|
||||||
"**/react-dom": "18.3.1",
|
"react-dom": "18.3.1",
|
||||||
"**/react-is": "18.3.1",
|
"react-is": "18.3.1",
|
||||||
"@playwright/test": "1.55.0"
|
"@playwright/test": "1.55.0"
|
||||||
},
|
},
|
||||||
"workspaces": [
|
"workspaces": [
|
||||||
"generated/*",
|
|
||||||
"packages/*",
|
"packages/*",
|
||||||
"commands/*",
|
"commands/*",
|
||||||
"apis/*",
|
"apis/*",
|
||||||
"test/component/*"
|
"test/component/*"
|
||||||
],
|
],
|
||||||
"packageManager": "yarn@1.22.22"
|
"packageManager": "yarn@4.9.4"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,6 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"author": "QlikTech International AB",
|
"author": "QlikTech International AB",
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"scripts": {},
|
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@emotion/react": "^11.14.0",
|
"@emotion/react": "^11.14.0",
|
||||||
"@emotion/styled": "^11.14.1",
|
"@emotion/styled": "^11.14.1",
|
||||||
|
|||||||
Reference in New Issue
Block a user