mirror of
https://github.com/penpot/penpot-plugins.git
synced 2025-01-04 13:50:13 -05:00
chore(deps): update multiple libraries
This commit is contained in:
parent
b65492ae29
commit
e1b5e172ca
8 changed files with 9818 additions and 4369 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -39,6 +39,7 @@ testem.log
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
|
||||||
.nx/cache
|
.nx/cache
|
||||||
|
.nx/workspace-data
|
||||||
.env
|
.env
|
||||||
|
|
||||||
.angular
|
.angular
|
||||||
|
|
|
@ -3,3 +3,5 @@
|
||||||
/coverage
|
/coverage
|
||||||
/.nx/cache
|
/.nx/cache
|
||||||
.angular
|
.angular
|
||||||
|
|
||||||
|
/.nx/workspace-data
|
|
@ -3,6 +3,12 @@
|
||||||
"$schema": "../node_modules/nx/schemas/project-schema.json",
|
"$schema": "../node_modules/nx/schemas/project-schema.json",
|
||||||
"sourceRoot": "plugins-runtime/src",
|
"sourceRoot": "plugins-runtime/src",
|
||||||
"projectType": "library",
|
"projectType": "library",
|
||||||
"targets": {},
|
"targets": {
|
||||||
|
"preview": {
|
||||||
|
"command": "vite preview",
|
||||||
|
"options": { "cwd": "libs/plugins-runtime" },
|
||||||
|
"_": "Delete this targets:preview when https://github.com/nrwl/nx/issues/26800 is fixed"
|
||||||
|
}
|
||||||
|
},
|
||||||
"tags": ["type:feature"]
|
"tags": ["type:feature"]
|
||||||
}
|
}
|
||||||
|
|
|
@ -257,7 +257,7 @@ export function createApi(
|
||||||
return context.currentUser;
|
return context.currentUser;
|
||||||
},
|
},
|
||||||
|
|
||||||
get activeUsers(): PenpotActiveUser {
|
get activeUsers(): PenpotActiveUser[] {
|
||||||
checkPermission('user:read');
|
checkPermission('user:read');
|
||||||
return context.activeUsers;
|
return context.activeUsers;
|
||||||
},
|
},
|
||||||
|
|
6
nx.json
6
nx.json
|
@ -5,7 +5,11 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"release": {
|
"release": {
|
||||||
"projects": ["libs/plugins-styles", "libs/plugin-types", "libs/plugins-runtime"]
|
"projects": [
|
||||||
|
"libs/plugins-styles",
|
||||||
|
"libs/plugin-types",
|
||||||
|
"libs/plugins-runtime"
|
||||||
|
]
|
||||||
},
|
},
|
||||||
"extends": "nx/presets/npm.json",
|
"extends": "nx/presets/npm.json",
|
||||||
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
"$schema": "./node_modules/nx/schemas/nx-schema.json",
|
||||||
|
|
14017
package-lock.json
generated
14017
package-lock.json
generated
File diff suppressed because it is too large
Load diff
71
package.json
71
package.json
|
@ -29,35 +29,36 @@
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "18.0.2",
|
"@angular-devkit/build-angular": "18.1.3",
|
||||||
"@angular-devkit/core": "18.0.2",
|
"@angular-devkit/core": "18.1.3",
|
||||||
"@angular-devkit/schematics": "18.0.2",
|
"@angular-devkit/schematics": "18.1.3",
|
||||||
"@angular-eslint/eslint-plugin": "17.3.0",
|
"@angular-eslint/eslint-plugin": "18.2.0",
|
||||||
"@angular-eslint/eslint-plugin-template": "17.3.0",
|
"@angular-eslint/eslint-plugin-template": "18.2.0",
|
||||||
"@angular-eslint/template-parser": "17.3.0",
|
"@angular-eslint/template-parser": "18.2.0",
|
||||||
"@angular/cli": "~18.0.0",
|
"@angular/cli": "~18.1.0",
|
||||||
"@angular/compiler-cli": "18.0.1",
|
"@angular/compiler-cli": "18.1.3",
|
||||||
"@angular/language-service": "18.0.1",
|
"@angular/language-service": "18.1.3",
|
||||||
"@commitlint/cli": "^18.6.0",
|
"@commitlint/cli": "^18.6.0",
|
||||||
"@commitlint/config-conventional": "^18.6.0",
|
"@commitlint/config-conventional": "^18.6.0",
|
||||||
"@eslint/eslintrc": "^2.1.1",
|
"@eslint/eslintrc": "^2.1.1",
|
||||||
"@nx/angular": "19.1.1",
|
"@nx/angular": "19.5.6",
|
||||||
"@nx/esbuild": "19.1.1",
|
"@nx/esbuild": "19.5.6",
|
||||||
"@nx/eslint": "19.1.1",
|
"@nx/eslint": "19.5.6",
|
||||||
"@nx/eslint-plugin": "19.1.1",
|
"@nx/eslint-plugin": "19.5.6",
|
||||||
"@nx/js": "19.1.1",
|
"@nx/js": "19.5.6",
|
||||||
"@nx/node": "19.1.1",
|
"@nx/node": "19.5.6",
|
||||||
"@nx/vite": "19.1.1",
|
"@nx/vite": "19.5.6",
|
||||||
"@nx/web": "19.1.1",
|
"@nx/web": "19.5.6",
|
||||||
"@schematics/angular": "18.0.2",
|
"@schematics/angular": "18.1.3",
|
||||||
"@swc-node/register": "~1.9.1",
|
"@swc-node/register": "1.9.2",
|
||||||
"@swc/core": "~1.5.7",
|
"@swc/core": "1.5.7",
|
||||||
"@swc/helpers": "~0.5.11",
|
"@swc/helpers": "0.5.12",
|
||||||
"@types/feather-icons": "^4.29.4",
|
"@types/feather-icons": "^4.29.4",
|
||||||
"@types/node": "20.11.16",
|
"@types/node": "20.11.16",
|
||||||
"@types/uuid": "^9.0.8",
|
"@types/uuid": "^9.0.8",
|
||||||
"@typescript-eslint/eslint-plugin": "7.9.0",
|
"@typescript-eslint/eslint-plugin": "7.18.0",
|
||||||
"@typescript-eslint/parser": "7.9.0",
|
"@typescript-eslint/parser": "7.18.0",
|
||||||
|
"@typescript-eslint/utils": "^7.16.0",
|
||||||
"@vitest/coverage-v8": "1.6.0",
|
"@vitest/coverage-v8": "1.6.0",
|
||||||
"@vitest/ui": "1.6.0",
|
"@vitest/ui": "1.6.0",
|
||||||
"concurrently": "^8.2.2",
|
"concurrently": "^8.2.2",
|
||||||
|
@ -71,12 +72,12 @@
|
||||||
"husky": "^9.0.10",
|
"husky": "^9.0.10",
|
||||||
"jsdom": "~22.1.0",
|
"jsdom": "~22.1.0",
|
||||||
"jsonc-eslint-parser": "^2.1.0",
|
"jsonc-eslint-parser": "^2.1.0",
|
||||||
"nx": "19.1.1",
|
"nx": "19.5.6",
|
||||||
"prettier": "^2.6.2",
|
"prettier": "^2.6.2",
|
||||||
"swc-loader": "0.1.15",
|
"swc-loader": "0.1.15",
|
||||||
"tsx": "^4.16.2",
|
"tsx": "^4.16.2",
|
||||||
"typedoc": "^0.25.13",
|
"typedoc": "^0.26.5",
|
||||||
"typescript": "~5.4.5",
|
"typescript": "5.5.4",
|
||||||
"vite": "^5.0.0",
|
"vite": "^5.0.0",
|
||||||
"vite-plugin-checker": "^0.6.4",
|
"vite-plugin-checker": "^0.6.4",
|
||||||
"vite-plugin-dts": "~2.3.0",
|
"vite-plugin-dts": "~2.3.0",
|
||||||
|
@ -86,19 +87,19 @@
|
||||||
"packages/*"
|
"packages/*"
|
||||||
],
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "18.0.1",
|
"@angular/animations": "18.1.3",
|
||||||
"@angular/common": "18.0.1",
|
"@angular/common": "18.1.3",
|
||||||
"@angular/compiler": "18.0.1",
|
"@angular/compiler": "18.1.3",
|
||||||
"@angular/core": "18.0.1",
|
"@angular/core": "18.1.3",
|
||||||
"@angular/forms": "18.0.1",
|
"@angular/forms": "18.1.3",
|
||||||
"@angular/platform-browser": "18.0.1",
|
"@angular/platform-browser": "18.1.3",
|
||||||
"@angular/platform-browser-dynamic": "18.0.1",
|
"@angular/platform-browser-dynamic": "18.1.3",
|
||||||
"@angular/router": "18.0.1",
|
"@angular/router": "18.1.3",
|
||||||
"axios": "^1.6.0",
|
"axios": "^1.6.0",
|
||||||
"feather-icons": "^4.29.2",
|
"feather-icons": "^4.29.2",
|
||||||
"puppeteer": "^22.11.0",
|
"puppeteer": "^22.11.0",
|
||||||
"rxjs": "~7.8.0",
|
"rxjs": "~7.8.0",
|
||||||
"ses": "^1.5.0",
|
"ses": "^1.7.0",
|
||||||
"tslib": "^2.3.0",
|
"tslib": "^2.3.0",
|
||||||
"uuid": "^9.0.1",
|
"uuid": "^9.0.1",
|
||||||
"zod": "^3.22.4",
|
"zod": "^3.22.4",
|
||||||
|
|
|
@ -1,48 +1,56 @@
|
||||||
import { CreateNodes, readJsonFile, logger } from '@nx/devkit';
|
import { CreateNodesV2, readJsonFile, logger } from '@nx/devkit';
|
||||||
|
import { createNodesFromFiles } from '@nx/devkit';
|
||||||
import { dirname } from 'path';
|
import { dirname } from 'path';
|
||||||
|
|
||||||
export const createNodes: CreateNodes = [
|
export const createNodesV2: CreateNodesV2 = [
|
||||||
'**/project.json',
|
'**/project.json',
|
||||||
async (configFilePath) => {
|
async (configFiles, options, context) => {
|
||||||
const projectConfiguration = readJsonFile(configFilePath);
|
return await createNodesFromFiles(
|
||||||
|
(configFile) => {
|
||||||
|
const projectConfiguration = readJsonFile(configFile);
|
||||||
|
|
||||||
if (
|
if (
|
||||||
!projectConfiguration.tags ||
|
!projectConfiguration.tags ||
|
||||||
!projectConfiguration?.tags.includes('type:plugin') ||
|
!projectConfiguration?.tags.includes('type:plugin') ||
|
||||||
!projectConfiguration?.targets.build
|
!projectConfiguration?.targets.build
|
||||||
) {
|
) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
|
|
||||||
const projectRoot = dirname(configFilePath);
|
const projectRoot = dirname(configFile);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
projects: {
|
projects: {
|
||||||
[projectRoot]: {
|
[projectRoot]: {
|
||||||
root: projectRoot,
|
root: projectRoot,
|
||||||
targets: {
|
targets: {
|
||||||
init: {
|
init: {
|
||||||
executor: 'nx:run-commands',
|
executor: 'nx:run-commands',
|
||||||
options: {
|
options: {
|
||||||
command: `nx run-many --parallel --targets=buildPlugin,serve --projects=${projectConfiguration.name} --watch`,
|
command: `nx run-many --parallel --targets=buildPlugin,serve --projects=${projectConfiguration.name} --watch`,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
buildPlugin: {
|
buildPlugin: {
|
||||||
executor: '@nx/esbuild:esbuild',
|
executor: '@nx/esbuild:esbuild',
|
||||||
outputs: ['{options.outputPath}'],
|
outputs: ['{options.outputPath}'],
|
||||||
options: {
|
options: {
|
||||||
minify: true,
|
minify: true,
|
||||||
outputPath: `${projectConfiguration.sourceRoot}/assets/`,
|
outputPath: `${projectConfiguration.sourceRoot}/assets/`,
|
||||||
main: `${projectConfiguration.sourceRoot}/plugin.ts`,
|
main: `${projectConfiguration.sourceRoot}/plugin.ts`,
|
||||||
tsConfig: `${projectRoot}/tsconfig.plugin.json`,
|
tsConfig: `${projectRoot}/tsconfig.plugin.json`,
|
||||||
generatePackageJson: false,
|
generatePackageJson: false,
|
||||||
format: ['esm'],
|
format: ['esm'],
|
||||||
deleteOutputPath: false,
|
deleteOutputPath: false,
|
||||||
|
},
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
};
|
||||||
},
|
},
|
||||||
};
|
configFiles,
|
||||||
|
options,
|
||||||
|
context
|
||||||
|
);
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue