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": [
"packages/*" "packages/*"
], ]
"version": "1.0.0",
"npmClient": "yarn",
"useWorkspaces": true,
"useNx": false
} }

View File

@ -1,17 +1,58 @@
{ {
"name": "wisemapping-front-end", "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": { "scripts": {
"bootstrap": "lerna run bootstrap", "bootstrap": "lerna run bootstrap",
"build": "lerna run build", "build": "lerna run build",
"clean": "lerna clean && rm -rf node_modules", "clean": "lerna clean && rm -rf node_modules",
"lint": "lerna run lint --stream", "lint": "lerna run lint --stream",
"playground": "lerna run playground --stream", "playground": "lerna run playground --stream",
"prepare": "husky install",
"test": "lerna run test --stream", "test": "lerna run test --stream",
"test:unit": "lerna run test:unit --stream",
"test:integration": "lerna run test:integration --stream", "test:integration": "lerna run test:integration --stream",
"prepare": "husky install" "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"
}
}, },
"private": true,
"devDependencies": { "devDependencies": {
"@babel/core": "^7.20.12", "@babel/core": "^7.20.12",
"@babel/preset-env": "^7.14.7", "@babel/preset-env": "^7.14.7",
@ -39,7 +80,7 @@
"jest-diff": "^29.3.1", "jest-diff": "^29.3.1",
"jest-environment-jsdom": "^29.3.1", "jest-environment-jsdom": "^29.3.1",
"jest-webpack": "^0.5.1", "jest-webpack": "^0.5.1",
"lerna": "^3.16.4", "lerna": "^7.1.0",
"lint-staged": "^10.5.4", "lint-staged": "^10.5.4",
"prettier": "^2.7.1", "prettier": "^2.7.1",
"start-server-and-test": "^1.14.0", "start-server-and-test": "^1.14.0",
@ -53,48 +94,7 @@
"webpack-cli": "^5.0.1", "webpack-cli": "^5.0.1",
"webpack-dev-server": "^4.11.1" "webpack-dev-server": "^4.11.1"
}, },
"workspaces": [
"packages/*"
],
"author": {
"name": "Paulo Veiga",
"login.email": "pveiga@wisemapping.com"
},
"contributors": [
"Ezequiel Bergamaschi"
],
"engines": { "engines": {
"node": "16.*" "node": ">=16.0.0"
},
"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"
}
} }
} }

View File

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

View File

@ -1,23 +1,29 @@
{ {
"name": "@wisemapping/editor", "name": "@wisemapping/editor",
"version": "0.5.20", "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", "main": "dist/editor.bundle.js",
"scripts": { "scripts": {
"bootstrap": "yalc publish;yalc add @wisemapping/mindplot", "bootstrap": "yalc publish;yalc add @wisemapping/mindplot",
"build": "webpack --config webpack.prod.js", "build": "webpack --config webpack.prod.js",
"playground": "webpack serve --config webpack.playground.js",
"cy:run": "cypress run",
"cy:open": "cypress open", "cy:open": "cypress open",
"lint": "eslint src --ext js,ts,tsx", "cy:run": "cypress run",
"test:integration": "start-server-and-test 'yarn playground' http-get://localhost:8081 'yarn cy: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'",
"test": "yarn test:unit && yarn test:integration",
"test:unit": "jest ./test/unit/* --detectOpenHandles",
"i18n:extract": "formatjs extract 'src/**/*.ts*' --ignore 'src/@types/**/*' --out-file lang/en.json", "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": { "devDependencies": {
"@formatjs/cli": "^6.0.4", "@formatjs/cli": "^6.0.4",
"@testing-library/react": "^13.4.0", "@testing-library/react": "^13.4.0",
@ -29,12 +35,6 @@
"react": "^18.2.0", "react": "^18.2.0",
"start-server-and-test": "^2.0.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": { "peerDependencies": {
"@emotion/react": "^11.10.5", "@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5", "@emotion/styled": "^11.10.5",

View File

@ -3,40 +3,36 @@
"version": "5.0.22", "version": "5.0.22",
"description": "WiseMapping - Mindplot Canvas Library", "description": "WiseMapping - Mindplot Canvas Library",
"homepage": "http://www.wisemapping.org/", "homepage": "http://www.wisemapping.org/",
"repository": {
"type": "git",
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
},
"main": "src/index.ts",
"directories": { "directories": {
"lib": "src", "lib": "src",
"test": "__tests__" "test": "__tests__"
}, },
"main": "src/index.ts",
"files": [ "files": [
"src", "src",
"assets", "assets",
"dist" "dist"
], ],
"publishConfig": {
"registry": "https://registry.npmjs.com"
},
"repository": {
"type": "git",
"url": "git@bitbucket.org:wisemapping/wisemapping-frontend.git"
},
"scripts": { "scripts": {
"bootstrap": "yalc publish;yalc add @wisemapping/core-js;yalc add @wisemapping/web2d",
"build": "webpack --config webpack.prod.js", "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", "dev": "webpack serve --config webpack.dev.js",
"lint": "eslint src --ext js,ts", "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", "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": { "dependencies": {
"@types/jquery": "^3.5.11", "@types/jquery": "^3.5.11",
"@wisemapping/core-js": "^0.5.20", "@wisemapping/core-js": "*",
"@wisemapping/web2d": "^0.5.20", "@wisemapping/web2d": "*",
"emoji-picker-react": "^4.4.3", "emoji-picker-react": "^4.4.3",
"jquery": "3.6.0", "jquery": "3.6.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
@ -61,5 +57,8 @@
"jest": "^29.4.1", "jest": "^29.4.1",
"mocha": "^9.1.3", "mocha": "^9.1.3",
"start-server-and-test": "^1.15.3" "start-server-and-test": "^1.15.3"
},
"publishConfig": {
"registry": "https://registry.npmjs.com"
} }
} }

View File

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

View File

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

4578
yarn.lock

File diff suppressed because it is too large Load Diff