0
Fork 0
mirror of https://github.com/penpot/penpot-plugins.git synced 2025-01-06 14:50:21 -05:00

chore: upgrade nx 18

This commit is contained in:
Juanfran 2024-02-06 09:07:17 +01:00
parent 56851aa17e
commit dbf43eae82
4 changed files with 499 additions and 1628 deletions

56
nx.json
View file

@ -1,36 +1,34 @@
{
"extends": "nx/presets/npm.json",
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"@nx/vite:build": {
"cache": true,
"dependsOn": ["^build"],
"inputs": ["default", "^default"]
}
},
"plugins": [
{
"plugin": "@nx/vite/plugin",
"options": {
"buildTargetName": "build",
"previewTargetName": "preview",
"testTargetName": "test",
"serveTargetName": "serve",
"serveStaticTargetName": "serve-static"
}
},
{
"plugin": "@nx/eslint/plugin",
"options": {
"targetName": "lint"
}
}
],
"pluginsConfig": {
"@nx/js": {
"analyzeSourceFiles": true
}
},
"extends": "nx/presets/npm.json",
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"targetDefaults": {
"build": {
"cache": true,
"dependsOn": ["^build"]
},
"lint": {
"cache": true,
"inputs": [
"default",
"{workspaceRoot}/.eslintrc.json",
"{workspaceRoot}/.eslintignore",
"{workspaceRoot}/eslint.config.js"
]
},
"@nx/vite:test": {
"cache": true,
"inputs": ["default", "^default"]
}
},
"generators": {
"@nx/web:application": {
"style": "css",
"linter": "eslint",
"unitTestRunner": "vitest",
"e2eTestRunner": "none"
}
}
}

2018
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -3,7 +3,7 @@
"version": "0.0.0",
"license": "MIT",
"scripts": {
"start": "npx nx run plugins-runtime:serve",
"start": "npx nx run plugins-runtime:serve-static",
"build": "npx nx build plugins-runtime --emptyOutDir=true",
"lint": "nx run-many --all --target=lint --parallel",
"lint:affected": "npx nx affected --target=lint",
@ -13,30 +13,30 @@
"devDependencies": {
"@commitlint/cli": "^18.6.0",
"@commitlint/config-conventional": "^18.6.0",
"@nx/eslint": "17.2.8",
"@nx/eslint-plugin": "17.2.8",
"@nx/js": "17.3.0",
"@nx/vite": "17.2.8",
"@nx/web": "^17.3.0",
"@nx/eslint": "18.0.2",
"@nx/eslint-plugin": "18.0.2",
"@nx/js": "18.0.2",
"@nx/vite": "18.0.2",
"@nx/web": "18.0.2",
"@swc-node/register": "~1.6.7",
"@swc/core": "~1.3.85",
"@swc/helpers": "~0.5.2",
"@types/node": "20.11.16",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
"@vitest/coverage-v8": "~0.34.6",
"@vitest/ui": "~0.34.6",
"@typescript-eslint/eslint-plugin": "6.21.0",
"@typescript-eslint/parser": "6.21.0",
"@vitest/coverage-v8": "1.2.2",
"@vitest/ui": "1.2.2",
"eslint": "~8.48.0",
"eslint-config-prettier": "^9.0.0",
"husky": "^9.0.10",
"jsdom": "~22.1.0",
"nx": "17.2.8",
"nx": "18.0.2",
"prettier": "^2.6.2",
"swc-loader": "0.1.15",
"typescript": "~5.2.2",
"vite": "^5.0.0",
"vite-plugin-dts": "~2.3.0",
"vitest": "~0.34.6"
"vitest": "1.2.2"
},
"workspaces": [
"packages/*"
@ -45,3 +45,4 @@
"tslib": "^2.3.0"
}
}

View file

@ -3,32 +3,6 @@
"$schema": "../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "plugins-runtime/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nx/vite:build",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/plugins-runtime"
}
},
"test": {
"executor": "@nx/vite:test",
"outputs": ["{options.reportsDirectory}"],
"options": {
"reportsDirectory": "../coverage/plugins-runtime"
}
},
"lint": {
"executor": "@nx/eslint:lint",
"outputs": ["{options.outputFile}"]
},
"serve": {
"executor": "@nx/web:file-server",
"options": {
"buildTarget": "build",
"staticFilePath": "dist/plugins-runtime"
}
}
},
"targets": {},
"tags": []
}