mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-14 18:12:09 +08:00
chore: Nx 20 (#10636)
This commit is contained in:
@ -1,7 +1,4 @@
|
||||
#!/bin/sh
|
||||
. "$(dirname "$0")/_/husky.sh"
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
|
||||
npx lint-staged
|
||||
npx lint-staged --allow-empty
|
||||
|
@ -13,7 +13,7 @@
|
||||
"devDependencies": {
|
||||
"@nativescript/android": "~8.8.0",
|
||||
"@nativescript/ios": "~8.8.0",
|
||||
"@nativescript/visionos": "~8.7.0",
|
||||
"@nativescript/visionos": "~8.8.0",
|
||||
"@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz",
|
||||
"circular-dependency-plugin": "^5.2.2",
|
||||
"typescript": "~5.4.0"
|
||||
|
@ -17,44 +17,34 @@
|
||||
"uglify": true,
|
||||
"release": true,
|
||||
"forDevice": true
|
||||
}
|
||||
},
|
||||
"configurations": {}
|
||||
},
|
||||
"ios": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": [],
|
||||
"debug": {
|
||||
"executor": "@nativescript/nx:debug",
|
||||
"options": {
|
||||
"noHmr": true,
|
||||
"platform": "ios"
|
||||
}
|
||||
"uglify": false,
|
||||
"release": false,
|
||||
"forDevice": false,
|
||||
"prepare": false
|
||||
},
|
||||
"configurations": {}
|
||||
},
|
||||
"vision": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": [],
|
||||
"prepare": {
|
||||
"executor": "@nativescript/nx:prepare",
|
||||
"options": {
|
||||
"noHmr": true,
|
||||
"debug": false,
|
||||
"platform": "vision"
|
||||
}
|
||||
},
|
||||
"android": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": [],
|
||||
"options": {
|
||||
"noHmr": true,
|
||||
"platform": "android"
|
||||
}
|
||||
},
|
||||
"clean": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"options": {
|
||||
"clean": true
|
||||
}
|
||||
"production": true,
|
||||
"uglify": true,
|
||||
"release": true,
|
||||
"forDevice": true,
|
||||
"prepare": true
|
||||
},
|
||||
"configurations": {}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nrwl/linter:eslint",
|
||||
"executor": "@nx/eslint:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": ["apps/automated/**/*.ts", "apps/automated/src/**/*.html"]
|
||||
}
|
||||
|
@ -14,7 +14,7 @@
|
||||
"devDependencies": {
|
||||
"@nativescript/android": "~8.8.0",
|
||||
"@nativescript/ios": "~8.8.0",
|
||||
"@nativescript/visionos": "~8.7.0",
|
||||
"@nativescript/visionos": "~8.8.0",
|
||||
"@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz",
|
||||
"typescript": "~5.4.0"
|
||||
}
|
||||
|
@ -17,44 +17,34 @@
|
||||
"uglify": true,
|
||||
"release": true,
|
||||
"forDevice": true
|
||||
}
|
||||
},
|
||||
"configurations": {}
|
||||
},
|
||||
"ios": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": [],
|
||||
"options": {
|
||||
"platform": "ios",
|
||||
"noHmr": true
|
||||
}
|
||||
},
|
||||
"vision": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": [],
|
||||
"debug": {
|
||||
"executor": "@nativescript/nx:debug",
|
||||
"options": {
|
||||
"noHmr": true,
|
||||
"debug": false,
|
||||
"platform": "vision"
|
||||
}
|
||||
"uglify": false,
|
||||
"release": false,
|
||||
"forDevice": false,
|
||||
"prepare": false
|
||||
},
|
||||
"configurations": {}
|
||||
},
|
||||
"android": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": [],
|
||||
"prepare": {
|
||||
"executor": "@nativescript/nx:prepare",
|
||||
"options": {
|
||||
"platform": "android",
|
||||
"noHmr": true
|
||||
}
|
||||
},
|
||||
"clean": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"options": {
|
||||
"clean": true
|
||||
}
|
||||
"noHmr": true,
|
||||
"production": true,
|
||||
"uglify": true,
|
||||
"release": true,
|
||||
"forDevice": true,
|
||||
"prepare": true
|
||||
},
|
||||
"configurations": {}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nrwl/linter:eslint",
|
||||
"executor": "@nx/eslint:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": ["apps/toolbox/**/*.ts", "apps/toolbox/src/**/*.html"]
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
"devDependencies": {
|
||||
"@nativescript/android": "~8.8.0",
|
||||
"@nativescript/ios": "~8.8.0",
|
||||
"@nativescript/visionos": "~8.7.0",
|
||||
"@nativescript/visionos": "~8.8.0",
|
||||
"@nativescript/webpack": "file:../../dist/packages/nativescript-webpack.tgz",
|
||||
"typescript": "~5.4.0"
|
||||
},
|
||||
|
@ -17,44 +17,38 @@
|
||||
"uglify": true,
|
||||
"release": true,
|
||||
"forDevice": true
|
||||
}
|
||||
},
|
||||
"configurations": {}
|
||||
},
|
||||
"ios": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": [],
|
||||
"options": {
|
||||
"platform": "ios",
|
||||
"noHmr": true
|
||||
}
|
||||
},
|
||||
"vision": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": [],
|
||||
"debug": {
|
||||
"executor": "@nativescript/nx:debug",
|
||||
"options": {
|
||||
"noHmr": true,
|
||||
"debug": false,
|
||||
"platform": "vision"
|
||||
}
|
||||
"uglify": false,
|
||||
"release": false,
|
||||
"forDevice": false,
|
||||
"prepare": false
|
||||
},
|
||||
"configurations": {}
|
||||
},
|
||||
"android": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"inputs": ["default", "^production"],
|
||||
"outputs": [],
|
||||
"prepare": {
|
||||
"executor": "@nativescript/nx:prepare",
|
||||
"options": {
|
||||
"platform": "android",
|
||||
"noHmr": true
|
||||
}
|
||||
"noHmr": true,
|
||||
"production": true,
|
||||
"uglify": true,
|
||||
"release": true,
|
||||
"forDevice": true,
|
||||
"prepare": true
|
||||
},
|
||||
"configurations": {}
|
||||
},
|
||||
"clean": {
|
||||
"executor": "@nativescript/nx:build",
|
||||
"options": {
|
||||
"clean": true
|
||||
}
|
||||
"executor": "@nativescript/nx:clean",
|
||||
"options": {}
|
||||
},
|
||||
"lint": {
|
||||
"executor": "@nrwl/linter:eslint",
|
||||
"executor": "@nx/eslint:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": ["apps/ui/**/*.ts", "apps/ui/src/**/*.html"]
|
||||
}
|
||||
|
@ -1,3 +1,3 @@
|
||||
const { getJestProjects } = require('@nx/jest');
|
||||
const { getJestProjectsAsync } = require('@nx/jest');
|
||||
|
||||
export default { projects: getJestProjects() };
|
||||
export default async () => ({ projects: await getJestProjectsAsync() });
|
||||
|
7
migrations.json
Normal file
7
migrations.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"migrations": [
|
||||
{ "version": "20.0.0-beta.7", "description": "Migration for v20.0.0-beta.7", "implementation": "./src/migrations/update-20-0-0/move-use-daemon-process", "package": "nx", "name": "move-use-daemon-process" },
|
||||
{ "version": "20.0.1", "description": "Set `useLegacyCache` to true for migrating workspaces", "implementation": "./src/migrations/update-20-0-1/use-legacy-cache", "x-repair-skip": true, "package": "nx", "name": "use-legacy-cache" },
|
||||
{ "cli": "nx", "version": "20.0.0-beta.5", "description": "replace getJestProjects with getJestProjectsAsync", "implementation": "./src/migrations/update-20-0-0/replace-getJestProjects-with-getJestProjectsAsync", "package": "@nx/jest", "name": "replace-getJestProjects-with-getJestProjectsAsync" }
|
||||
]
|
||||
}
|
3
nx.json
3
nx.json
@ -112,5 +112,6 @@
|
||||
"nxCloudAccessToken": "NzRmNDM3NDgtZjlmNy00MTUwLWIxZDktYjJlZTRhMWM5ODY3fHJlYWQtd3JpdGU=",
|
||||
"parallel": 1,
|
||||
"useInferencePlugins": false,
|
||||
"defaultBase": "master"
|
||||
"defaultBase": "master",
|
||||
"useLegacyCache": true
|
||||
}
|
||||
|
1424
package-lock.json
generated
1424
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
154
package.json
154
package.json
@ -1,79 +1,79 @@
|
||||
{
|
||||
"name": "nativescript",
|
||||
"version": "8.8.1",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"clean": "git clean -f -X -d --exclude=!.idea/ --exclude=!.vscode/* --exclude=!.npmrc",
|
||||
"clean.all": "npm run setup && nx run-many --target=clean --all",
|
||||
"setup": "npm run clean && npm install --legacy-peer-deps",
|
||||
"setup:yarn": "yarn clean && yarn",
|
||||
"setup:pnpm": "pnpm run clean && pnpm install",
|
||||
"postinstall": "ts-patch install && husky install && nx run webpack5:build",
|
||||
"start": "nps",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
||||
},
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/NativeScript/NativeScript.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"nativescript-theme-core": "^1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nativescript/hook": "^2.0.0",
|
||||
"@nativescript/nx": "^19.0.0",
|
||||
"@nstudio/focus": "^19.0.0",
|
||||
"@nstudio/nps-i": "~2.0.0",
|
||||
"@nx/devkit": "19.4.2",
|
||||
"@nx/eslint-plugin": "19.4.2",
|
||||
"@nx/jest": "19.4.2",
|
||||
"@nx/js": "19.4.2",
|
||||
"@nx/node": "19.4.2",
|
||||
"@nx/plugin": "19.4.2",
|
||||
"@nx/workspace": "19.4.2",
|
||||
"@prettier/plugin-xml": "^3.4.1",
|
||||
"@types/jest": "~29.5.0",
|
||||
"@types/node": "^20.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
||||
"@typescript-eslint/parser": "^7.5.0",
|
||||
"acorn": "^8.7.0",
|
||||
"conventional-changelog-cli": "^4.1.0",
|
||||
"copyfiles": "^2.4.0",
|
||||
"css": "^3.0.0",
|
||||
"css-tree": "^1.1.2",
|
||||
"css-what": "^6.1.0",
|
||||
"dotenv": "~16.4.0",
|
||||
"emoji-regex": "^10.3.0",
|
||||
"eslint": "~8.57.0",
|
||||
"eslint-config-prettier": "~9.1.0",
|
||||
"gonzales": "^1.0.7",
|
||||
"husky": "^9.0.0",
|
||||
"jest": "~29.7.0",
|
||||
"jest-environment-jsdom": "~29.7.0",
|
||||
"lint-staged": "^15.2.0",
|
||||
"module-alias": "^2.2.2",
|
||||
"nativescript": "8.8.0-pre-next-07-03-2024-9781798152",
|
||||
"nativescript-typedoc-theme": "1.1.0",
|
||||
"nx": "19.4.2",
|
||||
"parse-css": "git+https://github.com/tabatkins/parse-css.git",
|
||||
"parserlib": "^1.1.1",
|
||||
"prettier": "^3.2.5",
|
||||
"reduce-css-calc": "~2.1.7",
|
||||
"sass": "^1.72.0",
|
||||
"shady-css-parser": "^0.1.0",
|
||||
"tree-kill": "^1.2.2",
|
||||
"ts-jest": "29.1.2",
|
||||
"ts-node": "10.9.2",
|
||||
"ts-patch": "^3.0.0",
|
||||
"tslib": "^2.6.0",
|
||||
"typedoc": "^0.25.12",
|
||||
"typescript": "~5.4.0",
|
||||
"zx": "^7.2.0"
|
||||
},
|
||||
"lint-staged": {
|
||||
"**/*.{js,ts,css,scss,json,html}": [
|
||||
"npx prettier --write"
|
||||
]
|
||||
}
|
||||
"name": "nativescript",
|
||||
"version": "8.8.1",
|
||||
"license": "MIT",
|
||||
"scripts": {
|
||||
"clean": "git clean -f -X -d --exclude=!.idea/ --exclude=!.vscode/* --exclude=!.npmrc",
|
||||
"clean.all": "npm run setup && nx run-many --target=clean --all",
|
||||
"setup": "npm run clean && npm install",
|
||||
"setup:yarn": "yarn clean && yarn",
|
||||
"setup:pnpm": "pnpm run clean && pnpm install",
|
||||
"postinstall": "ts-patch install && husky && nx run webpack5:build",
|
||||
"start": "nps",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
||||
},
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/NativeScript/NativeScript.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"nativescript-theme-core": "^1.0.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nativescript/hook": "^2.0.0",
|
||||
"@nativescript/nx": "^20.0.0",
|
||||
"@nstudio/focus": "^20.0.0",
|
||||
"@nstudio/nps-i": "~2.0.0",
|
||||
"@nx/devkit": "20.0.3",
|
||||
"@nx/eslint-plugin": "20.0.3",
|
||||
"@nx/jest": "20.0.3",
|
||||
"@nx/js": "20.0.3",
|
||||
"@nx/node": "20.0.3",
|
||||
"@nx/plugin": "20.0.3",
|
||||
"@nx/workspace": "20.0.3",
|
||||
"@prettier/plugin-xml": "^3.4.1",
|
||||
"@types/jest": "~29.5.0",
|
||||
"@types/node": "^20.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^7.5.0",
|
||||
"@typescript-eslint/parser": "^7.5.0",
|
||||
"acorn": "^8.7.0",
|
||||
"conventional-changelog-cli": "^4.1.0",
|
||||
"copyfiles": "^2.4.0",
|
||||
"css": "^3.0.0",
|
||||
"css-tree": "^1.1.2",
|
||||
"css-what": "^6.1.0",
|
||||
"dotenv": "~16.4.0",
|
||||
"emoji-regex": "^10.3.0",
|
||||
"eslint": "~8.57.0",
|
||||
"eslint-config-prettier": "~9.1.0",
|
||||
"gonzales": "^1.0.7",
|
||||
"husky": "^9.0.0",
|
||||
"jest": "~29.7.0",
|
||||
"jest-environment-jsdom": "~29.7.0",
|
||||
"lint-staged": "^15.2.0",
|
||||
"module-alias": "^2.2.2",
|
||||
"nativescript": "8.8.0-pre-next-07-03-2024-9781798152",
|
||||
"nativescript-typedoc-theme": "1.1.0",
|
||||
"nx": "20.0.3",
|
||||
"parse-css": "git+https://github.com/tabatkins/parse-css.git",
|
||||
"parserlib": "^1.1.1",
|
||||
"prettier": "^3.2.5",
|
||||
"reduce-css-calc": "~2.1.7",
|
||||
"sass": "^1.72.0",
|
||||
"shady-css-parser": "^0.1.0",
|
||||
"tree-kill": "^1.2.2",
|
||||
"ts-jest": "29.1.2",
|
||||
"ts-node": "10.9.2",
|
||||
"ts-patch": "^3.0.0",
|
||||
"tslib": "^2.6.0",
|
||||
"typedoc": "^0.25.12",
|
||||
"typescript": "~5.4.0",
|
||||
"zx": "^7.2.0"
|
||||
},
|
||||
"lint-staged": {
|
||||
"**/*.{js,ts,css,scss,json,html}": [
|
||||
"npx prettier --write"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
@ -10,7 +10,7 @@
|
||||
},
|
||||
"targets": {
|
||||
"lint": {
|
||||
"executor": "@nrwl/linter:eslint",
|
||||
"executor": "@nx/eslint:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": ["packages/core/**/*.ts", "packages/core/references.d.ts", "packages/core/**/*.spec.ts", "packages/core/**/*.spec.tsx", "packages/core/**/*.spec.js", "packages/core/**/*.spec.jsx", "packages/core/**/*.d.ts"]
|
||||
}
|
||||
|
578
packages/webpack5/package-lock.json
generated
578
packages/webpack5/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -6,7 +6,7 @@
|
||||
"generators": {},
|
||||
"targets": {
|
||||
"lint": {
|
||||
"executor": "@nrwl/linter:eslint",
|
||||
"executor": "@nx/eslint:lint",
|
||||
"options": {
|
||||
"lintFilePatterns": []
|
||||
}
|
||||
|
@ -5,7 +5,7 @@ module.exports = {
|
||||
default: 'nps-i',
|
||||
nx: {
|
||||
script: 'nx',
|
||||
description: 'Execute any command with the @nrwl/cli'
|
||||
description: 'Execute any command with the Nx cli'
|
||||
},
|
||||
format: {
|
||||
script: 'nx format:write',
|
||||
@ -24,19 +24,19 @@ module.exports = {
|
||||
// Automated test runner which executes e2e tests on the target platform
|
||||
automated: {
|
||||
clean: {
|
||||
script: 'nx run apps-automated:clean',
|
||||
script: 'nx clean apps-automated',
|
||||
description: '⚆ Clean 🧹'
|
||||
},
|
||||
ios: {
|
||||
script: 'nx run apps-automated:ios',
|
||||
script: 'nx debug apps-automated ios',
|
||||
description: '⚆ Run iOS '
|
||||
},
|
||||
visionos: {
|
||||
script: 'nx run apps-automated:vision',
|
||||
script: 'nx debug apps-automated vision',
|
||||
description: '⚆ Run visionOS 🥽'
|
||||
},
|
||||
android: {
|
||||
script: 'nx run apps-automated:android',
|
||||
script: 'nx debug apps-automated android',
|
||||
description: '⚆ Run Android 🤖'
|
||||
},
|
||||
},
|
||||
@ -47,19 +47,19 @@ module.exports = {
|
||||
// Toolbox useful for livesyncing changes and experimenting
|
||||
toolbox: {
|
||||
clean: {
|
||||
script: 'nx run apps-toolbox:clean',
|
||||
script: 'nx clean apps-toolbox',
|
||||
description: '⚆ Clean 🧹'
|
||||
},
|
||||
ios: {
|
||||
script: 'nx run apps-toolbox:ios',
|
||||
script: 'nx debug apps-toolbox ios',
|
||||
description: '⚆ Run iOS '
|
||||
},
|
||||
visionos: {
|
||||
script: 'nx run apps-toolbox:vision',
|
||||
script: 'nx debug apps-toolbox vision',
|
||||
description: '⚆ Run visionOS 🥽'
|
||||
},
|
||||
android: {
|
||||
script: 'nx run apps-toolbox:android',
|
||||
script: 'nx debug apps-toolbox android',
|
||||
description: '⚆ Run Android 🤖'
|
||||
},
|
||||
},
|
||||
@ -70,19 +70,19 @@ module.exports = {
|
||||
// Various UI level setups for @nativescript/core testing
|
||||
ui: {
|
||||
clean: {
|
||||
script: 'nx run apps-ui:clean',
|
||||
script: 'nx clean apps-ui',
|
||||
description: '⚆ Clean 🧹'
|
||||
},
|
||||
ios: {
|
||||
script: 'nx run apps-ui:ios',
|
||||
script: 'nx debug apps-ui ios',
|
||||
description: '⚆ Run iOS '
|
||||
},
|
||||
visionos: {
|
||||
script: 'nx run apps-ui:vision',
|
||||
script: 'nx debug apps-ui vision',
|
||||
description: '⚆ Run visionOS 🥽'
|
||||
},
|
||||
android: {
|
||||
script: 'nx run apps-ui:android',
|
||||
script: 'nx debug apps-ui android',
|
||||
description: '⚆ Run Android 🤖'
|
||||
},
|
||||
},
|
||||
@ -97,36 +97,36 @@ module.exports = {
|
||||
// @nativescript/core
|
||||
core: {
|
||||
build: {
|
||||
script: 'nx run core:build',
|
||||
script: 'nx build core',
|
||||
description: '@nativescript/core: Build'
|
||||
},
|
||||
test: {
|
||||
script: 'nx run core:test',
|
||||
script: 'nx test core',
|
||||
description: '@nativescript/core: Unit tests'
|
||||
},
|
||||
},
|
||||
// @nativescript/core API Reference Docs
|
||||
'core-api-docs': {
|
||||
build: {
|
||||
script: 'nx run core-api-docs:build',
|
||||
script: 'nx build core-api-docs',
|
||||
description: '@nativescript/core: API Reference Docs Build'
|
||||
}
|
||||
},
|
||||
// @nativescript/ui-mobile-base
|
||||
'ui-mobile-base': {
|
||||
build: {
|
||||
script: 'nx run ui-mobile-base:build',
|
||||
script: 'nx build ui-mobile-base',
|
||||
description: '@nativescript/ui-mobile-base: Build for npm'
|
||||
},
|
||||
},
|
||||
// @nativescript/webpack (5)
|
||||
webpack5: {
|
||||
build: {
|
||||
script: 'nx run webpack5:build',
|
||||
script: 'nx build webpack5',
|
||||
description: '@nativescript/webpack(5): Build for npm'
|
||||
},
|
||||
test: {
|
||||
script: 'nx run webpack5:test',
|
||||
script: 'nx test webpack5',
|
||||
description: '@nativescript/webpack(5): Unit tests'
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user