mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-21 07:50:38 +08:00
chore: Nx 11.4
This commit is contained in:
@ -1,54 +1,57 @@
|
|||||||
{
|
{
|
||||||
"root": true,
|
"root": true,
|
||||||
"parser": "@typescript-eslint/parser",
|
|
||||||
"parserOptions": {
|
|
||||||
"ecmaVersion": 2018,
|
|
||||||
"sourceType": "module",
|
|
||||||
"project": ["packages/core/tsconfig.json", "packages/webpack/tsconfig.json"]
|
|
||||||
},
|
|
||||||
"ignorePatterns": ["**/*"],
|
"ignorePatterns": ["**/*"],
|
||||||
"plugins": ["prettier", "@typescript-eslint", "@nrwl/nx"],
|
"plugins": ["@nrwl/nx"],
|
||||||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier/@typescript-eslint", "plugin:prettier/recommended"],
|
"overrides": [
|
||||||
"rules": {
|
{
|
||||||
"prettier/prettier": "warn",
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
||||||
"@typescript-eslint/explicit-member-accessibility": "off",
|
"extends": ["plugin:prettier/recommended"],
|
||||||
"@typescript-eslint/explicit-function-return-type": "off",
|
"parserOptions": {
|
||||||
"@typescript-eslint/no-parameter-properties": "off",
|
"project": ["packages/core/tsconfig.json", "packages/webpack/tsconfig.json"]
|
||||||
"@typescript-eslint/no-empty-function": "off",
|
},
|
||||||
"@typescript-eslint/no-explicit-any": "off",
|
"plugins": ["prettier"],
|
||||||
"@typescript-eslint/no-unused-vars": "off",
|
"rules": {
|
||||||
"@typescript-eslint/no-namespace": "off",
|
"prettier/prettier": "warn",
|
||||||
"@typescript-eslint/ban-types": "off",
|
"@typescript-eslint/no-empty-function": "off",
|
||||||
"@typescript-eslint/ban-ts-comment": "off",
|
"@typescript-eslint/no-explicit-any": "off",
|
||||||
"@typescript-eslint/no-this-alias": "off",
|
"@typescript-eslint/no-unused-vars": "off",
|
||||||
"@typescript-eslint/no-empty-interface": "off",
|
"@typescript-eslint/no-namespace": "off",
|
||||||
"@typescript-eslint/triple-slash-reference": "off",
|
"@typescript-eslint/ban-types": "off",
|
||||||
"no-prototype-builtins": "off",
|
"@typescript-eslint/ban-ts-comment": "off",
|
||||||
"no-inner-declarations": "off",
|
"@typescript-eslint/no-this-alias": "off",
|
||||||
"no-constant-condition": "off",
|
"@typescript-eslint/no-empty-interface": "off",
|
||||||
"no-useless-escape": "off",
|
"@typescript-eslint/triple-slash-reference": "off",
|
||||||
"@nrwl/nx/enforce-module-boundaries": [
|
"no-prototype-builtins": "off",
|
||||||
"error",
|
"no-inner-declarations": "off",
|
||||||
{
|
"no-constant-condition": "off",
|
||||||
"enforceBuildableLibDependency": true,
|
"no-useless-escape": "off",
|
||||||
"allow": [],
|
"@nrwl/nx/enforce-module-boundaries": [
|
||||||
"depConstraints": [
|
"error",
|
||||||
{
|
{
|
||||||
"sourceTag": "*",
|
"enforceBuildableLibDependency": true,
|
||||||
"onlyDependOnLibsWithTags": ["*"]
|
"allow": [],
|
||||||
|
"depConstraints": [
|
||||||
|
{
|
||||||
|
"sourceTag": "*",
|
||||||
|
"onlyDependOnLibsWithTags": ["*"]
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
},
|
||||||
"@typescript-eslint/explicit-module-boundary-types": "off"
|
|
||||||
},
|
|
||||||
"overrides": [
|
|
||||||
{
|
{
|
||||||
"files": ["*.tsx"],
|
"files": ["*.ts", "*.tsx"],
|
||||||
"rules": {
|
"extends": ["plugin:@nrwl/nx/typescript"],
|
||||||
"@typescript-eslint/no-unused-vars": "off",
|
"parserOptions": {
|
||||||
"@typescript-eslint/no-any": "off"
|
"project": "./tsconfig.*?.json"
|
||||||
}
|
},
|
||||||
|
"rules": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": ["*.js", "*.jsx"],
|
||||||
|
"extends": ["plugin:@nrwl/nx/javascript"],
|
||||||
|
"rules": {}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
109
migrations.json
109
migrations.json
@ -1,109 +0,0 @@
|
|||||||
{
|
|
||||||
"migrations": [
|
|
||||||
{
|
|
||||||
"version": "10.1.0-beta.0",
|
|
||||||
"description": "Migrate .eslintrc files to use tsconfig with a wildcard",
|
|
||||||
"factory": "./src/migrations/update-10-1-0/migrate-eslintrc-tsconfig-wildcard",
|
|
||||||
"package": "@nrwl/workspace",
|
|
||||||
"name": "migrate-eslintrc-tsconfig-wildcard"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.0",
|
|
||||||
"description": "Add @nrwl/cli as dependency",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/add-cli-dependency",
|
|
||||||
"package": "@nrwl/workspace",
|
|
||||||
"name": "add-cli-dependency"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.0",
|
|
||||||
"description": "Update typescript to v4",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/update-typescript",
|
|
||||||
"package": "@nrwl/workspace",
|
|
||||||
"name": "update-10-3-0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.1",
|
|
||||||
"description": "Adds .vscode/extensions.json to a workspace",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/add-vscode-extensions",
|
|
||||||
"package": "@nrwl/workspace",
|
|
||||||
"name": "add-vscode-extensions"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.0",
|
|
||||||
"description": "Adds `buildableProjectDepsInPackageJsonType` for web and angular package builders",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/add-buildable-project-deps-in-package-json-type",
|
|
||||||
"package": "@nrwl/workspace",
|
|
||||||
"name": "add-buildable-project-deps-in-package-json-type"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.1.0-beta.4",
|
|
||||||
"description": "Update jest to v26",
|
|
||||||
"factory": "./src/migrations/update-10-1-0/update-10-1-0",
|
|
||||||
"package": "@nrwl/jest",
|
|
||||||
"name": "update-10.1.0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.2.0",
|
|
||||||
"description": "Remove deprecated jest builder options",
|
|
||||||
"factory": "./src/migrations/update-10-2-0/update-10-2-0",
|
|
||||||
"package": "@nrwl/jest",
|
|
||||||
"name": "update-10.2.0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.1",
|
|
||||||
"description": "Adds all jest projects into the root jest config",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/update-projects-property",
|
|
||||||
"package": "@nrwl/jest",
|
|
||||||
"name": "update-projects-property"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.1",
|
|
||||||
"description": "Update ts-jest to v26.4",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/update-ts-jest",
|
|
||||||
"package": "@nrwl/jest",
|
|
||||||
"name": "update-ts-jest"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.1",
|
|
||||||
"description": "Adds a jest extension to the recommended extensions for vscode",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/add-jest-extension",
|
|
||||||
"package": "@nrwl/jest",
|
|
||||||
"name": "add-jest-extension"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.1",
|
|
||||||
"description": "Update @typescript-eslint to v4.3",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/update-10-3-0",
|
|
||||||
"package": "@nrwl/linter",
|
|
||||||
"name": "update-10.3.0"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.0",
|
|
||||||
"description": "Migrate to the new ESLint builder and ESLint config style",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/update-eslint-builder-and-config",
|
|
||||||
"package": "@nrwl/linter",
|
|
||||||
"name": "update-eslint-builder-and-config"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.2",
|
|
||||||
"description": "Add explicit .json file extension to .eslintrc files, not using an extension is deprecated",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/add-json-ext-to-eslintrc",
|
|
||||||
"package": "@nrwl/linter",
|
|
||||||
"name": "add-json-ext-to-eslintrc"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.3.0-beta.3",
|
|
||||||
"description": "Update implicitDependencies within nx.json to include root .eslintrc.json",
|
|
||||||
"factory": "./src/migrations/update-10-3-0/add-root-eslintrc-json-to-workspace-implicit-deps",
|
|
||||||
"package": "@nrwl/linter",
|
|
||||||
"name": "add-root-eslintrc-json-to-workspace-implicit-deps"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"version": "10.1.0-beta.1",
|
|
||||||
"description": "Removes rootDir from node libs' tsconfig",
|
|
||||||
"factory": "./src/migrations/update-10-1-0/remove-root-dir",
|
|
||||||
"package": "@nrwl/node",
|
|
||||||
"name": "remove-root-dir"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
147
package.json
147
package.json
@ -1,75 +1,76 @@
|
|||||||
{
|
{
|
||||||
"name": "nativescript",
|
"name": "nativescript",
|
||||||
"version": "7.3.0",
|
"version": "7.3.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "git clean -f -X -d",
|
"clean": "git clean -f -X -d",
|
||||||
"setup": "npm run clean && npm install",
|
"setup": "npm run clean && npm install",
|
||||||
"setup:yarn": "yarn run clean && yarn",
|
"setup:yarn": "yarn run clean && yarn",
|
||||||
"setup:pnpm": "pnpm run clean && pnpm install",
|
"setup:pnpm": "pnpm run clean && pnpm install",
|
||||||
"postinstall": "ts-patch install && husky install && nx run core:setup",
|
"postinstall": "ts-patch install && husky install && nx run core:setup",
|
||||||
"start": "nps",
|
"start": "nps",
|
||||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/NativeScript/NativeScript.git"
|
"url": "https://github.com/NativeScript/NativeScript.git"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nativescript-theme-core": "^1.0.4"
|
"nativescript-theme-core": "^1.0.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@nativescript/hook": "^2.0.0",
|
"@nativescript/hook": "^2.0.0",
|
||||||
"@nrwl/cli": "~10.3.1",
|
"@nrwl/cli": "11.4.0",
|
||||||
"@nrwl/eslint-plugin-nx": "~10.3.0",
|
"@nrwl/eslint-plugin-nx": "11.4.0",
|
||||||
"@nrwl/jest": "~10.3.0",
|
"@nrwl/jest": "11.4.0",
|
||||||
"@nrwl/node": "~10.3.0",
|
"@nrwl/node": "11.4.0",
|
||||||
"@nrwl/workspace": "~10.3.0",
|
"@nrwl/tao": "11.4.0",
|
||||||
"@nstudio/focus": "~10.3.0",
|
"@nrwl/workspace": "11.4.0",
|
||||||
"@nstudio/nps-i": "~1.1.0",
|
"@nstudio/focus": "~11.1.0",
|
||||||
"@types/chai": "^4.2.11",
|
"@nstudio/nps-i": "~1.1.0",
|
||||||
"@types/jest": "~26.0.8",
|
"@types/chai": "^4.2.11",
|
||||||
"@types/mocha": "^7.0.2",
|
"@types/jest": "~26.0.8",
|
||||||
"@types/node": "~14.0.22",
|
"@types/mocha": "^7.0.2",
|
||||||
"@typescript-eslint/eslint-plugin": "~4.3.0",
|
"@types/node": "12.12.38",
|
||||||
"@typescript-eslint/parser": "~4.3.0",
|
"@typescript-eslint/eslint-plugin": "~4.16.0",
|
||||||
"chai": "^4.2.0",
|
"@typescript-eslint/parser": "~4.16.0",
|
||||||
"conventional-changelog-cli": "^2.0.34",
|
"chai": "^4.2.0",
|
||||||
"copyfiles": "^2.4.0",
|
"conventional-changelog-cli": "^2.1.1",
|
||||||
"css": "^3.0.0",
|
"copyfiles": "^2.4.0",
|
||||||
"css-tree": "^1.0.0-alpha.39",
|
"css": "^3.0.0",
|
||||||
"dotenv": "~8.2.0",
|
"css-tree": "^1.0.0-alpha.39",
|
||||||
"eslint": "~7.10.0",
|
"dotenv": "~8.2.0",
|
||||||
"eslint-config-prettier": "~6.11.0",
|
"eslint": "~7.21.0",
|
||||||
"eslint-plugin-prettier": "^3.3.1",
|
"eslint-config-prettier": "~8.1.0",
|
||||||
"gonzales": "^1.0.7",
|
"eslint-plugin-prettier": "^3.3.1",
|
||||||
"husky": "^5.1.3",
|
"gonzales": "^1.0.7",
|
||||||
"jest": "~26.2.2",
|
"husky": "^5.1.3",
|
||||||
"lint-staged": "^10.5.0",
|
"jest": "~26.2.2",
|
||||||
"mocha": "^8.0.1",
|
"lint-staged": "^10.5.0",
|
||||||
"mocha-typescript": "^1.1.17",
|
"mocha": "^8.0.1",
|
||||||
"module-alias": "^2.2.2",
|
"mocha-typescript": "^1.1.17",
|
||||||
"nativescript": "~7.2.0",
|
"module-alias": "^2.2.2",
|
||||||
"node-sass": "~4.14.1",
|
"nativescript": "~7.2.0",
|
||||||
"parse-css": "git+https://github.com/tabatkins/parse-css.git",
|
"parse-css": "git+https://github.com/tabatkins/parse-css.git",
|
||||||
"parserlib": "^1.1.1",
|
"parserlib": "^1.1.1",
|
||||||
"prettier": "~2.0.5",
|
"prettier": "~2.2.1",
|
||||||
"reduce-css-calc": "~2.1.7",
|
"reduce-css-calc": "~2.1.7",
|
||||||
"shady-css-parser": "^0.1.0",
|
"sass": "~1.32.8",
|
||||||
"terser-webpack-plugin": "~3.0.6",
|
"shady-css-parser": "^0.1.0",
|
||||||
"tree-kill": "^1.2.2",
|
"terser-webpack-plugin": "~3.0.6",
|
||||||
"ts-jest": "26.4.0",
|
"tree-kill": "^1.2.2",
|
||||||
"ts-node": "~8.10.2",
|
"ts-jest": "26.4.0",
|
||||||
"ts-patch": "^1.2.5",
|
"ts-node": "9.1.1",
|
||||||
"tslint": "~6.1.2",
|
"ts-patch": "^1.3.0",
|
||||||
"typescript": "~4.0.3",
|
"tslint": "6.1.3",
|
||||||
"webpack": "~4.44.1",
|
"typescript": "~4.0.3",
|
||||||
"webpack-cli": "~3.3.12"
|
"webpack": "~4.44.1",
|
||||||
},
|
"webpack-cli": "~3.3.12"
|
||||||
"lint-staged": {
|
},
|
||||||
"**/*": [
|
"lint-staged": {
|
||||||
"nx format:write --files"
|
"**/*": [
|
||||||
]
|
"nx format:write --files"
|
||||||
}
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1 +1,5 @@
|
|||||||
{ "extends": "../../.eslintrc", "rules": {}, "ignorePatterns": ["!**/*"] }
|
{
|
||||||
|
"extends": "../../.eslintrc",
|
||||||
|
"rules": {},
|
||||||
|
"ignorePatterns": ["!**/*"]
|
||||||
|
}
|
||||||
|
16
tools/generators/app/schema.json
Normal file
16
tools/generators/app/schema.json
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/schema",
|
||||||
|
"id": "app",
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Library name",
|
||||||
|
"$default": {
|
||||||
|
"$source": "argv",
|
||||||
|
"index": 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": ["name"]
|
||||||
|
}
|
@ -1,16 +0,0 @@
|
|||||||
{
|
|
||||||
"$schema": "http://json-schema.org/schema",
|
|
||||||
"id": "app",
|
|
||||||
"type": "object",
|
|
||||||
"properties": {
|
|
||||||
"name": {
|
|
||||||
"type": "string",
|
|
||||||
"description": "Library name",
|
|
||||||
"$default": {
|
|
||||||
"$source": "argv",
|
|
||||||
"index": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"required": ["name"]
|
|
||||||
}
|
|
@ -114,7 +114,8 @@
|
|||||||
"options": {
|
"options": {
|
||||||
"jestConfig": "packages/core/jest.config.js",
|
"jestConfig": "packages/core/jest.config.js",
|
||||||
"passWithNoTests": true
|
"passWithNoTests": true
|
||||||
}
|
},
|
||||||
|
"outputs": ["coverage/packages/core"]
|
||||||
},
|
},
|
||||||
"setup": {
|
"setup": {
|
||||||
"builder": "@nrwl/workspace:run-commands",
|
"builder": "@nrwl/workspace:run-commands",
|
||||||
|
Reference in New Issue
Block a user