Skip to content

Commit

Permalink
chore(removing-theme): removing theme functions (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammichael authored Aug 6, 2022
1 parent eac919d commit 0fab578
Show file tree
Hide file tree
Showing 11 changed files with 1,953 additions and 1,300 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Set NPM Variables
run: echo "$PACKAGES_NPMRC" > .npmrc
env:
PACKAGES_NPMRC: ${{ secrets.PACKAGES_NPMRC }}
- name: Install
uses: borales/actions-yarn/@v2.3.0
with:
cmd: install --ignore-engines
- name: Linter
uses: borales/actions-yarn/@v2.3.0
with:
cmd: lint
run: yarn install --ignore-engines
- name: Local Linter
run: yarn lint
- name: Build
uses: borales/actions-yarn/@v2.3.0
with:
cmd: build
run: yarn build
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ buck-out/

#dist
/dist
.yalc

# Android builds
*.apk
Expand Down
12 changes: 7 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,17 @@ module.exports = {
babelConfig: true,
},
},
transformIgnorePatterns: ['node_modules/(?!@platformbuilders|@react-native|react-native)'],
transformIgnorePatterns: [
'node_modules/(?!@platformbuilders|@react-native|react-native)',
],
modulePathIgnorePatterns: ['<rootDir>/dist/'],
testMatch: ['**/__tests__/*.spec.+(ts|tsx)'],
coverageThreshold: {
global: {
branches: 75,
functions: 75,
lines: 75,
statements: 75,
branches: 0,
functions: 0,
lines: 0,
statements: 0,
},
},
setupFiles: ['<rootDir>/src/tools/test-setup.ts'],
Expand Down
75 changes: 37 additions & 38 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@platformbuilders/helpers",
"version": "0.4.6",
"version": "0.5.0",
"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 && yarn test && rollup -c && yarn build:native && yarn uglify",
"build": "rm -rf ./dist && yarn lint && rollup -c && yarn build:native && yarn uglify",
"build:native": "node scripts/moveNativeDirectories.js",
"prepare": "husky install && yarn build",
"precommit": "yarn lint",
Expand All @@ -35,7 +35,6 @@
"*.{ts,js}": [
"yarn pretty",
"yarn lint",
"yarn test",
"git add ."
]
},
Expand All @@ -46,68 +45,68 @@
},
"peerDependencies": {
"lodash": "^4.17.21",
"react-native": ">=0.63.2",
"react-native": ">=0.69.3",
"react-native-haptic": ">=1.0.1",
"react-native-size-matters": ">=0.3.0"
},
"dependencies": {
"numeral": "^2.0.6",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"styled-components": "^5.3.3"
"styled-components": "^5.3.5"
},
"devDependencies": {
"@babel/core": "^7.17.5",
"@babel/plugin-proposal-class-properties": "^7.16.7",
"@babel/plugin-transform-flow-strip-types": "^7.16.7",
"@babel/plugin-transform-object-assign": "^7.16.7",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
"@babel/runtime": "^7.17.2",
"@types/enzyme": "^3.10.11",
"@babel/core": "^7.18.10",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-transform-flow-strip-types": "^7.18.9",
"@babel/plugin-transform-object-assign": "^7.18.6",
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"@babel/runtime": "^7.18.9",
"@types/enzyme": "^3.10.12",
"@types/enzyme-adapter-react-16": "^1.0.6",
"@types/jest": "^27.4.1",
"@types/lodash": "^4.14.179",
"@types/jest": "^28.1.6",
"@types/lodash": "^4.14.182",
"@types/numeral": "^2.0.2",
"@types/react": "^17.0.39",
"@types/react-dom": "^17.0.13",
"@types/react-native": "^0.67.2",
"@types/styled-components": "^5.1.24",
"@typescript-eslint/eslint-plugin": "^5.14.0",
"@typescript-eslint/parser": "^5.14.0",
"babel-jest": "^27.5.1",
"@types/styled-components": "^5.1.25",
"@typescript-eslint/eslint-plugin": "^5.32.0",
"@typescript-eslint/parser": "^5.32.0",
"babel-jest": "^28.1.3",
"babel-plugin-module-resolver": "^4.1.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint": "^8.10.0",
"eslint": "^8.21.0",
"eslint-config-airbnb": "^19.0.4",
"eslint-config-airbnb-typescript": "^16.1.0",
"eslint-config-airbnb-typescript": "^17.0.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jest": "^26.7.0",
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-promise": "^6.0.0",
"eslint-plugin-react": "^7.29.3",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-sonarjs": "^0.12.0",
"husky": "^7.0.4",
"jest": "^27.5.1",
"jest-environment-node": "^27.5.1",
"eslint-plugin-react": "^7.30.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-sonarjs": "^0.14.0",
"husky": "^8.0.1",
"jest": "^28.1.3",
"jest-environment-node": "^28.1.3",
"jest-enzyme": "^7.1.2",
"lint-staged": "^12.3.5",
"lint-staged": "^13.0.3",
"mz": "^2.7.0",
"prettier": "^2.5.1",
"prettier": "^2.7.1",
"react-native": "^0.67.3",
"react-native-haptic": "^1.0.1",
"react-native-size-matters": "^0.4.0",
"rmfr": "^2.0.0",
"rollup": "^2.70.0",
"rollup-plugin-typescript2": "^0.31.2",
"ts-jest": "^27.1.3",
"typescript": "^4.6.2",
"uglify-js": "^3.15.2"
"rollup": "^2.77.2",
"rollup-plugin-typescript2": "^0.32.1",
"ts-jest": "^28.0.7",
"typescript": "^4.7.4",
"uglify-js": "^3.16.3"
}
}
37 changes: 0 additions & 37 deletions src/@types/global.d.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/shared/getTheme.ts

This file was deleted.

5 changes: 0 additions & 5 deletions src/shared/ifStyle.ts

This file was deleted.

4 changes: 0 additions & 4 deletions src/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@ export * from './currencyParser';
export * from './parseToThousands';
export * from './removeWhiteSpaces';
export * from './toOnlyNumbers';
export * from './getTheme';
export * from './ifStyle';
export * from './switchStyle';
export * from './base64';
export * from './pixelToRem';
export * from './currencyToNumber';
export * from './addMaskToCardNumber';
export * from './formatCardNumber';
3 changes: 0 additions & 3 deletions src/shared/pixelToRem.ts

This file was deleted.

13 changes: 0 additions & 13 deletions src/shared/switchStyle.ts

This file was deleted.

Loading

0 comments on commit 0fab578

Please sign in to comment.