Skip to content

Commit

Permalink
chore: update all libs + fix run tests (#386)
Browse files Browse the repository at this point in the history
* chore: update all libs + fix run tests

* doc: improv PR template

* chore: add test to run in github action

* fix: pipeline tests

Co-authored-by: Fabiano <[email protected]>
  • Loading branch information
fabinppkbuilders and fabinppk authored Nov 17, 2022
1 parent ff22693 commit 061c251
Show file tree
Hide file tree
Showing 6 changed files with 1,033 additions and 988 deletions.
4 changes: 4 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

<!-- explicação do que foi feito -->

## Como Validei?

<!-- explicação como você validou suas alterações -->
## Tipo de mudança

- [ ] Nova feature (mudança non-breaking que adiciona uma funcionalidade)
- [ ] Bug fix (mudança non-breaking que conserta um problema)
- [ ] Breaking change (ajuste ou funcionalidade que pode causar uma quebra numa funcionalidade já existente)
- [ ] Chore (nenhuma das anteriores, como upgrade de libs)

## Checklist 🚨

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ jobs:
run: yarn install --ignore-engines
- name: Local Linter
run: yarn lint
- name: Tests
run: yarn test
- name: Build
run: yarn build
6 changes: 3 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ jobs:
env:
PACKAGES_NPMRC: ${{ secrets.PACKAGES_NPMRC }}
- name: Install
run: npm install
run: yarn install --ignore-engines
- name: Build
run: npm run build
run: yarn build
- name: Run jest tests
run: npm test
run: yarn test
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} #
Expand Down
5 changes: 4 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
yarn pretty
yarn lint
yarn test
git add .
123 changes: 55 additions & 68 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platformbuilders/helpers",
"version": "0.5.1",
"version": "0.5.2",
"description": "Builders helpers library",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -22,7 +22,7 @@
"pretty": "prettier --config ./.prettierrc.js --write \"src/**/*.{jsx,ts,tsx,json}\"",
"uglify": "for f in dist/*.js; do short=${f%.js}; uglifyjs $f > $short.min.js; rm -rf $f; mv $short.min.js $short.js; done",
"clean": "rm -rf ./node_modules && yarn install",
"build": "rm -rf ./dist && yarn lint && rollup -c && yarn build:native && yarn uglify",
"build": "rm -rf ./dist && yarn lint && rollup -c --bundleConfigAsCjs && yarn build:native && yarn uglify",
"build:native": "node scripts/moveNativeDirectories.js",
"prepare": "husky install && yarn build",
"precommit": "yarn lint",
Expand All @@ -31,79 +31,66 @@
"version:minor": "npm version minor",
"version:major": "npm version major"
},
"lint-staged": {
"*.{ts,js}": [
"yarn pretty",
"yarn lint",
"yarn test",
"git add ."
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"peerDependencies": {
"lodash": "^4.17.21",
"lodash": "4.17.21",
"react-native": ">=0.69.3",
"react-native-haptic": ">=1.0.1",
"react-native-size-matters": ">=0.3.0"
},
"dependencies": {
"numeral": "^2.0.6",
"react": "18.1.0",
"react-dom": "18.1.0",
"styled-components": "^5.3.6"
"numeral": "2.0.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"styled-components": "5.3.6"
},
"devDependencies": {
"@babel/core": "^7.19.3",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-flow-strip-types": "^7.19.0",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/plugin-transform-react-jsx-source": "^7.18.6",
"@babel/preset-env": "^7.19.3",
"@babel/preset-react": "^7.18.6",
"@babel/runtime": "^7.19.0",
"@types/jest": "^29.0.3",
"@types/lodash": "^4.14.185",
"@types/numeral": "^2.0.2",
"@types/react": "^18.0.21",
"@types/react-dom": "^18.0.6",
"@types/react-native": "^0.70.4",
"@types/styled-components": "^5.1.26",
"@typescript-eslint/eslint-plugin": "^5.38.1",
"@typescript-eslint/parser": "^5.38.1",
"babel-jest": "^29.1.0",
"babel-plugin-module-resolver": "^4.1.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"eslint": "^8.24.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^27.0.4",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.1",
"eslint-plugin-react": "^7.31.8",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-sonarjs": "^0.15.0",
"husky": "^8.0.1",
"jest": "^29.1.1",
"jest-environment-node": "^29.1.1",
"lint-staged": "^13.0.3",
"mz": "^2.7.0",
"prettier": "^2.7.1",
"react-native": "0.70.1",
"react-native-haptic": "^1.0.1",
"react-native-size-matters": "^0.4.0",
"rmfr": "^2.0.0",
"rollup": "^2.79.1",
"rollup-plugin-typescript2": "^0.34.0",
"ts-jest": "29.0.2",
"typescript": "^4.8.4",
"uglify-js": "^3.17.2"
"@babel/core": "7.20.2",
"@babel/plugin-proposal-class-properties": "7.18.6",
"@babel/plugin-transform-flow-strip-types": "7.19.0",
"@babel/plugin-transform-object-assign": "7.18.6",
"@babel/plugin-transform-react-jsx-source": "7.19.6",
"@babel/preset-env": "7.20.2",
"@babel/preset-react": "7.18.6",
"@babel/runtime": "7.20.1",
"@types/jest": "29.2.3",
"@types/lodash": "4.14.189",
"@types/numeral": "2.0.2",
"@types/react": "18.0.25",
"@types/react-dom": "18.0.9",
"@types/react-native": "0.70.6",
"@types/styled-components": "5.1.26",
"@typescript-eslint/eslint-plugin": "5.43.0",
"@typescript-eslint/parser": "5.43.0",
"babel-jest": "29.3.1",
"babel-plugin-module-resolver": "4.1.0",
"babel-plugin-transform-es2015-modules-commonjs": "6.26.2",
"eslint": "8.27.0",
"eslint-config-airbnb": "19.0.4",
"eslint-config-airbnb-typescript": "17.0.0",
"eslint-config-prettier": "8.5.0",
"eslint-plugin-import": "2.26.0",
"eslint-plugin-jest": "27.1.5",
"eslint-plugin-json": "3.1.0",
"eslint-plugin-jsx-a11y": "6.6.1",
"eslint-plugin-prettier": "4.2.1",
"eslint-plugin-promise": "6.1.1",
"eslint-plugin-react": "7.31.10",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-sonarjs": "0.16.0",
"husky": "8.0.2",
"jest": "29.3.1",
"jest-environment-node": "29.3.1",
"metro-react-native-babel-preset": "0.73.3",
"mz": "2.7.0",
"prettier": "2.7.1",
"react-native": "0.70.6",
"react-native-haptic": "1.0.1",
"react-native-size-matters": "0.4.0",
"rmfr": "2.0.0",
"rollup": "3.3.0",
"rollup-plugin-typescript2": "0.34.1",
"ts-jest": "29.0.3",
"typescript": "4.9.3",
"uglify-js": "3.17.4"
}
}
Loading

0 comments on commit 061c251

Please sign in to comment.