Skip to content

Commit

Permalink
feat(dependencies): COM-3162 update dependencies
Browse files Browse the repository at this point in the history
BREAKING CHANGE:
- remove .npmrc
- update all packages to last version
- set up husky v6
  • Loading branch information
ArtyomResh committed Apr 30, 2021
1 parent ccb2e24 commit 6e99a85
Show file tree
Hide file tree
Showing 14 changed files with 2,211 additions and 2,830 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lerna run --concurrency 1 --stream precommit
4 changes: 4 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lerna run --concurrency 1 --stream prepush
7 changes: 0 additions & 7 deletions .huskyrc.js

This file was deleted.

1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

5 changes: 1 addition & 4 deletions CONTRIBUTION.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,7 @@ lerna может автоматически определить, какая в
Lerna внесет изменения в `package.json` файлы пакетов (поднимет версии), закоммитит их,
выставит теги и сделает push в удаленный репозиторий.

Следующим этапом нужно опубликовать пакеты:

1. Нужно быть залогиненым в github packages с привязкой к scope, для этого нужно выполнить: `npm login --registry=https://npm.pkg.github.com --scope=@csssr`;
2. Запустить команду: `yarn lerna publish from-git --yes --registry https://npm.pkg.github.com/`
Следующим этапом нужно опубликовать пакеты: `yarn lerna publish from-git --yes`

Новые версии пакетов должны быть опубликованы. Можно быстро проверить результат публикации:

Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-case': [2, 'always', ['lower-case', 'start-case', 'pascal-case']],
'subject-case': [2, 'never', ['start-case', 'pascal-case']],
},
}
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"npmClient": "yarn",
"version": "independent",
"useWorkspaces": true,
"lerna": "3.13.3",
"lerna": "4.0.0",
"command": {
"version": {
"ignoreChanges": ["*.md"],
Expand Down
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,22 @@
"version": "./scripts/version.sh",
"release": "./scripts/release.sh",
"test": "echo 'Nothing to test'",
"lint": "eslint . -c .eslintrc.js --ext js,jsx"
"lint": "eslint . -c .eslintrc.js --ext js,jsx",
"prepare": "husky install"
},
"workspaces": [
"packages/*"
],
"devDependencies": {
"@commitlint/cli": "^7.5.2",
"@commitlint/config-conventional": "^7.5.0",
"@commitlint/cli": "^12.1.1",
"@commitlint/config-conventional": "^12.1.1",
"@csssr/eslint-config-core": "^1.0.2",
"eslint": "^6.0.1",
"eslint": "^7.25.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.2",
"husky": "^1.3.1",
"lerna": "^3.13.3",
"lint-staged": "^8.1.5",
"prettier": "^1.17.0"
"husky": "^6.0.0",
"lerna": "^4.0.0",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1"
}
}
1 change: 0 additions & 1 deletion packages/core-design/.npmrc

This file was deleted.

17 changes: 7 additions & 10 deletions packages/core-design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
"types": "lib/typings",
"scripts": {
"prepublishOnly": "yarn run build",
"build": "yarn run clean && concurrently 'yarn run build:compile' 'yarn run build:typings' 'yarn run copy:assets'",
"build": "yarn run clean && concurrently 'yarn run build:compile' 'yarn run build:typings'",
"build:compile": "babel --out-dir ./lib -x .tsx,.ts src",
"build:typings": "tsc --emitDeclarationOnly",
"clean": "cleandir ./lib",
"copy:assets": "cpx './src/**/*.{png,jpg,jpeg,svg}' lib",
"dev": "yarn run clean && concurrently 'yarn run build:typings --watch' 'yarn run build:compile --watch' 'yarn run copy:assets --watch'",
"dev": "yarn run clean && concurrently 'yarn run build:typings --watch' 'yarn run build:compile --watch'",
"lint": "tslint --project ./tsconfig.json --exclude ./__tests__/**/*.{ts,tsx} ./src/**/*.{ts,tsx}",
"precommit": "lint-staged",
"prepush": "tsc --noEmit",
Expand All @@ -34,20 +33,18 @@
"@emotion/eslint-plugin": "^11.0.0",
"@emotion/react": "^11.1.4",
"@emotion/styled": "^11.0.0",
"@storybook/addon-actions": "^6.1.15",
"@storybook/addon-knobs": "^6.1.15",
"@storybook/react": "^6.1.15",
"@storybook/addon-actions": "^6.2.9",
"@storybook/addon-knobs": "^6.2.9",
"@storybook/react": "^6.2.9",
"@types/classnames": "^2.2.11",
"@types/color": "^3.0.1",
"@types/storybook__addon-actions": "^5.2.1",
"@types/storybook__addon-knobs": "^5.2.1",
"@types/storybook__react": "^5.2.1",
"@types/webpack-env": "^1.16.0",
"babel-loader": "^8.2.2",
"babel-plugin-inline-react-svg": "^1.1.2",
"babel-plugin-inline-react-svg": "^2.0.1",
"clean-dir": "^1.0.3",
"concurrently": "^5.3.0",
"cpx": "^1.5.0",
"concurrently": "^6.0.2",
"cross-env": "^7.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.2.1",
Expand Down
8 changes: 4 additions & 4 deletions packages/core-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"core-design": "./bin/core-design.js"
},
"dependencies": {
"cross-spawn": "^6.0.5",
"fs-extra": "^7.0.1",
"cross-spawn": "^7.0.3",
"fs-extra": "^9.1.0",
"handlebars": "^4.3.0",
"inquirer": "^6.3.1",
"yargs": "^13.2.2"
"inquirer": "^8.0.0",
"yargs": "^16.2.0"
},
"publishConfig": {
"access": "public"
Expand Down
Loading

0 comments on commit 6e99a85

Please sign in to comment.