feat(lerna): manage repo with lerna 7 and update dependencies

This commit is contained in:
Clement Creusat 2023-06-26 14:43:38 +02:00
parent 32b57e3f3f
commit ddd241e338
8 changed files with 2197 additions and 2757 deletions

View File

@ -1,9 +1,7 @@
{
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "independent",
"packages": [
"packages/*"
],
"version": "1.0.0",
"npmClient": "yarn",
"useWorkspaces": true,
"useNx": false
]
}

View File

@ -1,100 +1,100 @@
{
"name": "wisemapping-front-end",
"scripts": {
"bootstrap": "lerna run bootstrap",
"build": "lerna run build",
"clean": "lerna clean && rm -rf node_modules",
"lint": "lerna run lint --stream",
"playground": "lerna run playground --stream",
"test": "lerna run test --stream",
"test:unit": "lerna run test:unit --stream",
"test:integration": "lerna run test:integration --stream",
"prepare": "husky install"
},
"private": true,
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.16.5",
"@babel/register": "^7.16.0",
"@formatjs/cli": "^6.0.4",
"@types/jest": "^29.0.5",
"@typescript-eslint/eslint-plugin": "^5.48.0 ",
"@typescript-eslint/parser": "^5.48.0",
"babel-loader": "^9.1.2",
"copy-webpack-plugin": "^10.2.4",
"css-loader": "^6.7.3",
"eslint": "^8.4.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-nibble": "^8.0.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"html-webpack-plugin": "^5.3.2",
"husky": "^8.0.0",
"jest": "^29.3.1",
"jest-diff": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-webpack": "^0.5.1",
"lerna": "^3.16.4",
"lint-staged": "^10.5.4",
"prettier": "^2.7.1",
"start-server-and-test": "^1.14.0",
"style-loader": "^3.3.1",
"ts-jest": "^29.0.5",
"ts-loader": "^9.4.2",
"ts-node": "^10.9.1",
"typescript": "^4.8.4",
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1"
},
"workspaces": [
"packages/*"
],
"author": {
"name": "Paulo Veiga",
"login.email": "pveiga@wisemapping.com"
},
"contributors": [
"Ezequiel Bergamaschi"
],
"engines": {
"node": "16.*"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"homepage": "http://localhost:8080/react",
"license": "https://wisemapping.atlassian.net/wiki/spaces/WS/pages/524357/WiseMapping+Public+License+Version+1.0+WPL",
"version": "0.4.0",
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "yarn lint && yarn test"
}
},
"lint-staged": {
"**/*.{ts,tsx}": [
"prettier --write"
]
},
"eslintConfig": {
"rules": {
"implicit-arrow-linebreak": "off"
}
"name": "wisemapping-front-end",
"version": "0.4.0",
"private": true,
"homepage": "http://localhost:8080/react",
"license": "https://wisemapping.atlassian.net/wiki/spaces/WS/pages/524357/WiseMapping+Public+License+Version+1.0+WPL",
"author": {
"name": "Paulo Veiga",
"login.email": "pveiga@wisemapping.com"
},
"contributors": [
"Ezequiel Bergamaschi"
],
"workspaces": [
"packages/*"
],
"scripts": {
"bootstrap": "lerna run bootstrap",
"build": "lerna run build",
"clean": "lerna clean && rm -rf node_modules",
"lint": "lerna run lint --stream",
"playground": "lerna run playground --stream",
"prepare": "husky install",
"test": "lerna run test --stream",
"test:integration": "lerna run test:integration --stream",
"test:unit": "lerna run test:unit --stream"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged",
"pre-push": "yarn lint && yarn test"
}
},
"lint-staged": {
"**/*.{ts,tsx}": [
"prettier --write"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"eslintConfig": {
"rules": {
"implicit-arrow-linebreak": "off"
}
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.14.7",
"@babel/preset-typescript": "^7.16.5",
"@babel/register": "^7.16.0",
"@formatjs/cli": "^6.0.4",
"@types/jest": "^29.0.5",
"@typescript-eslint/eslint-plugin": "^5.48.0",
"@typescript-eslint/parser": "^5.48.0",
"babel-loader": "^9.1.2",
"copy-webpack-plugin": "^10.2.4",
"css-loader": "^6.7.3",
"eslint": "^8.4.1",
"eslint-config-airbnb-base": "^14.2.1",
"eslint-config-prettier": "^8.5.0",
"eslint-config-standard": "^17.0.0",
"eslint-nibble": "^8.0.0",
"eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"html-webpack-plugin": "^5.3.2",
"husky": "^8.0.0",
"jest": "^29.3.1",
"jest-diff": "^29.3.1",
"jest-environment-jsdom": "^29.3.1",
"jest-webpack": "^0.5.1",
"lerna": "^7.1.0",
"lint-staged": "^10.5.4",
"prettier": "^2.7.1",
"start-server-and-test": "^1.14.0",
"style-loader": "^3.3.1",
"ts-jest": "^29.0.5",
"ts-loader": "^9.4.2",
"ts-node": "^10.9.1",
"typescript": "^4.8.4",
"webpack": "^5.75.0",
"webpack-bundle-analyzer": "^4.5.0",
"webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1"
},
"engines": {
"node": ">=16.0.0"
}
}

View File

@ -3,21 +3,20 @@
"version": "0.5.20",
"description": "WiseMapping - Core Common Libraries",
"homepage": "http://www.wisemapping.org/",
"repository": {
"type": "git",
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
},
"license": "MIT",
"main": "src/index.ts",
"files": [
"src"
],
"publishConfig": {
"registry": "https://registry.npmjs.com"
},
"repository": {
"type": "git",
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
},
"scripts": {
"build": "webpack --config webpack.prod.js",
"dev": "webpack --mode development --config webpack.dev.js",
"bootstrap": "yalc publish"
"dev": "webpack --mode development --config webpack.dev.js"
},
"publishConfig": {
"registry": "https://registry.npmjs.com"
}
}

View File

@ -1,23 +1,29 @@
{
"name": "@wisemapping/editor",
"version": "0.5.20",
"repository": "http://www.wisemapping.com",
"license": "MIT",
"author": "Paulo Veiga <pveiga@gmail.com>, Ezequiel Bergamaschi <ezequielbergamaschi@gmail.com>",
"main": "dist/editor.bundle.js",
"scripts": {
"bootstrap": "yalc publish;yalc add @wisemapping/mindplot",
"build": "webpack --config webpack.prod.js",
"playground": "webpack serve --config webpack.playground.js",
"cy:run": "cypress run",
"cy:open": "cypress open",
"lint": "eslint src --ext js,ts,tsx",
"test:integration": "start-server-and-test 'yarn playground' http-get://localhost:8081 'yarn cy:run'",
"test": "yarn test:unit && yarn test:integration",
"test:unit": "jest ./test/unit/* --detectOpenHandles",
"cy:run": "cypress run",
"i18n:compile": "bash -c 'for lang in {'es','en','fr','de','zh','ru'};do formatjs compile lang/${lang}.json --ast --out-file src/compiled-lang/${lang}.json;done'",
"i18n:extract": "formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/en.json",
"i18n:compile": "bash -c 'for lang in {'es','en','fr','de','zh','ru'};do formatjs compile lang/${lang}.json --ast --out-file src/compiled-lang/${lang}.json;done'"
"lint": "eslint src --ext js,ts,tsx",
"playground": "webpack serve --config webpack.playground.js",
"test": "yarn test:unit && yarn test:integration",
"test:integration": "start-server-and-test 'yarn playground' http-get://localhost:8081 'yarn cy:run'",
"test:unit": "jest ./test/unit/* --detectOpenHandles"
},
"dependencies": {
"@wisemapping/mindplot": "*",
"emoji-picker-react": "^4.4.7",
"react-color": "^2.19.3",
"react-loader-spinner": "^5.3.4"
},
"repository": "http://www.wisemapping.com",
"author": "Paulo Veiga <pveiga@gmail.com>, Ezequiel Bergamaschi <ezequielbergamaschi@gmail.com>",
"license": "MIT",
"devDependencies": {
"@formatjs/cli": "^6.0.4",
"@testing-library/react": "^13.4.0",
@ -29,12 +35,6 @@
"react": "^18.2.0",
"start-server-and-test": "^2.0.0"
},
"dependencies": {
"@wisemapping/mindplot": "^5.0.20",
"emoji-picker-react": "^4.4.7",
"react-color": "^2.19.3",
"react-loader-spinner": "^5.3.4"
},
"peerDependencies": {
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",

View File

@ -3,40 +3,36 @@
"version": "5.0.22",
"description": "WiseMapping - Mindplot Canvas Library",
"homepage": "http://www.wisemapping.org/",
"repository": {
"type": "git",
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
},
"main": "src/index.ts",
"directories": {
"lib": "src",
"test": "__tests__"
},
"main": "src/index.ts",
"files": [
"src",
"assets",
"dist"
],
"publishConfig": {
"registry": "https://registry.npmjs.com"
},
"repository": {
"type": "git",
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
},
"scripts": {
"bootstrap": "yalc publish;yalc add @wisemapping/core-js;yalc add @wisemapping/web2d",
"build": "webpack --config webpack.prod.js",
"build-storybook": "build-storybook",
"cy:open": "cypress open",
"cy:run": "cypress run",
"dev": "webpack serve --config webpack.dev.js",
"lint": "eslint src --ext js,ts",
"cy:run": "cypress run",
"cy:open": "cypress open",
"test:unit": "jest ./test/unit/export/*.ts ./test/unit/import/*.ts --verbose --silent --detectOpenHandles",
"test:integration": "start-server-and-test storybook http-get://localhost:6006 cy:run",
"test": "yarn test:unit && yarn test:integration",
"storybook": "start-storybook -p 6006 --no-open",
"build-storybook": "build-storybook"
"test": "yarn test:unit && yarn test:integration",
"test:integration": "start-server-and-test storybook http-get://localhost:6006 cy:run",
"test:unit": "jest ./test/unit/export/*.ts ./test/unit/import/*.ts --verbose --silent --detectOpenHandles"
},
"dependencies": {
"@types/jquery": "^3.5.11",
"@wisemapping/core-js": "^0.5.20",
"@wisemapping/web2d": "^0.5.20",
"@wisemapping/core-js": "*",
"@wisemapping/web2d": "*",
"emoji-picker-react": "^4.4.3",
"jquery": "3.6.0",
"lodash": "^4.17.21",
@ -61,5 +57,8 @@
"jest": "^29.4.1",
"mocha": "^9.1.3",
"start-server-and-test": "^1.15.3"
},
"publishConfig": {
"registry": "https://registry.npmjs.com"
}
}

View File

@ -3,29 +3,29 @@
"version": "0.5.20",
"description": "WiseMapping - Web2D Render Library",
"homepage": "http://www.wisemapping.org/",
"repository": {
"type": "git",
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
},
"license": "MIT",
"main": "src/index.ts",
"files": [
"src"
],
"publishConfig": {
"registry": "https://registry.npmjs.com"
},
"repository": {
"type": "git",
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
},
"scripts": {
"bootstrap": "yalc publish;yalc add @wisemapping/core-js",
"dev": "webpack --config webpack.dev.js",
"build": "webpack --config webpack.prod.js",
"lint": "eslint src",
"cy:run": "cypress run",
"build-storybook": "build-storybook",
"cy:open": "cypress open",
"test:integration": "start-server-and-test storybook http-get://localhost:6006 cy:run",
"test": "yarn test:integration",
"cy:run": "cypress run",
"dev": "webpack --config webpack.dev.js",
"lint": "eslint src",
"storybook": "start-storybook -p 6006 --no-open",
"build-storybook": "build-storybook"
"test": "yarn test:integration",
"test:integration": "start-server-and-test storybook http-get://localhost:6006 cy:run"
},
"dependencies": {
"@wisemapping/core-js": "*",
"jquery": "^3.6.0"
},
"devDependencies": {
"@mdx-js/react": "^1.6.22",
@ -42,12 +42,11 @@
"cypress-image-snapshot": "^4.0.1",
"start-server-and-test": "^1.15.2"
},
"dependencies": {
"@wisemapping/core-js": "^0.5.20",
"peerDependencies": {
"@wisemapping/core-js": "*",
"jquery": "^3.6.0"
},
"peerDependencies": {
"@wisemapping/core-js": "^0.4.0",
"jquery": "^3.6.0"
"publishConfig": {
"registry": "https://registry.npmjs.com"
}
}

View File

@ -1,37 +1,25 @@
{
"name": "@wisemapping/webapp",
"version": "5.0.21",
"repository": "http://www.wisemapping.com",
"license": "MIT",
"author": "Paulo Veiga <pveiga@gmail.com>, Ezequiel Bergamaschi <ezequielbergamaschi@gmail.com>",
"main": "app.jsx",
"scripts": {
"bootstrap": "yalc publish;yalc add @wisemapping/editor",
"start": "webpack serve --config webpack.dev.js ",
"build": "webpack --config webpack.prod.js",
"dev": "webpack --config webpack.dev.js",
"lint": "eslint src --ext js,ts,tsx",
"cy:run": "cypress run",
"cy:open": "cypress open",
"test:integration": "start-server-and-test start http-get://localhost:3000 cy:run",
"i18n:extract": "formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/en.json",
"i18n:compile": "bash -c 'for lang in {'es','en','fr','de','zh','ru'};do formatjs compile lang/${lang}.json --ast --out-file src/compiled-lang/${lang}.json;done'",
"test": "yarn test:integration"
},
"files": [
"src",
"dist"
],
"publishConfig": {
"registry": "https://registry.npmjs.com"
},
"repository": "http://www.wisemapping.com",
"author": "Paulo Veiga <pveiga@gmail.com>, Ezequiel Bergamaschi <ezequielbergamaschi@gmail.com>",
"license": "MIT",
"devDependencies": {
"@formatjs/cli": "^6.0.4",
"@testing-library/cypress": "^8.0.3",
"@types/testing-library__cypress": "^5.0.8",
"@welldone-software/why-did-you-render": "^7.0.1",
"cypress": "^12.3.0",
"cypress-image-snapshot": "^4.0.1"
"scripts": {
"build": "webpack --config webpack.prod.js",
"cy:open": "cypress open",
"cy:run": "cypress run",
"dev": "webpack --config webpack.dev.js",
"i18n:compile": "bash -c 'for lang in {'es','en','fr','de','zh','ru'};do formatjs compile lang/${lang}.json --ast --out-file src/compiled-lang/${lang}.json;done'",
"i18n:extract": "formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/en.json",
"lint": "eslint src --ext js,ts,tsx",
"start": "webpack serve --config webpack.dev.js ",
"test": "yarn test:integration",
"test:integration": "start-server-and-test start http-get://localhost:3000 cy:run"
},
"dependencies": {
"@emotion/react": "^11.10.4",
@ -40,7 +28,7 @@
"@mui/lab": "^5.0.0-alpha.129",
"@mui/material": "^5.12.3",
"@reduxjs/toolkit": "^1.5.0",
"@wisemapping/editor": "^0.5.20",
"@wisemapping/editor": "*",
"axios": "^0.27.2",
"dayjs": "^1.10.7",
"react": "^18.2.0",
@ -52,5 +40,16 @@
"react-redux": "^7.2.2",
"react-router-dom": "^6.4.3",
"styled-components": "^5.3.6"
},
"devDependencies": {
"@formatjs/cli": "^6.0.4",
"@testing-library/cypress": "^8.0.3",
"@types/testing-library__cypress": "^5.0.8",
"@welldone-software/why-did-you-render": "^7.0.1",
"cypress": "^12.3.0",
"cypress-image-snapshot": "^4.0.1"
},
"publishConfig": {
"registry": "https://registry.npmjs.com"
}
}

4580
yarn.lock

File diff suppressed because it is too large Load Diff