Skip to content

Commit

Permalink
chore: bump babel and TS
Browse files Browse the repository at this point in the history
  • Loading branch information
deini committed Apr 24, 2020
1 parent 4308169 commit c2a5edc
Show file tree
Hide file tree
Showing 18 changed files with 957 additions and 995 deletions.
3 changes: 0 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@ node_modules
dist
.next
packages/docs/out
# jest.config.js
# svgr.config.js
# prettier.config.js
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ module.exports = {
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-unused-vars': ['error', { ignoreRestSiblings: true }],
'@typescript-eslint/no-use-before-define': 'off',
'no-console': 'warn',
'react/display-name': 'off',
'react/prop-types': 'off',
'react/no-unescaped-entities': [
Expand Down
15 changes: 11 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,22 @@
"build": "lerna run build --stream",
"ci": "lerna run ci --stream",
"diff": "lerna diff",
"lint": "lerna run lint --stream",
"lint": "eslint . --ext .ts,.tsx,.js && lerna run lint --stream",
"start": "lerna run start --stream --parallel --ignore @bigcommerce/examples",
"test": "lerna run test --stream"
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lerna run --concurrency 1 --stream precommit"
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,tsx}": [
"eslint --fix",
"git add"
]
},
"devDependencies": {
"@commitlint/cli": "^8.1.0",
"@commitlint/config-conventional": "^8.1.0",
Expand All @@ -31,9 +37,10 @@
"eslint-plugin-prettier": "^3.1.3",
"eslint-plugin-react": "^7.19.0",
"eslint-plugin-react-hooks": "^3.0.0",
"husky": "^4.2.1",
"husky": "^4.2.5",
"lerna": "^3.16.4",
"lint-staged": "^9.2.0",
"prettier": "^2.0.5",
"typescript": "^3.7.2"
"typescript": "^3.8.3"
}
}
28 changes: 9 additions & 19 deletions packages/big-design-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,8 @@
"ci": "yarn run lint && yarn run build",
"lint": "yarn run lint:tsc",
"lint:tsc": "tsc --noEmit",
"precommit": "lint-staged",
"prepublishOnly": "rimraf dist && yarn run ci"
},
"lint-staged": {
"*.{js,ts,tsx}": [
"eslint --fix",
"tslint --fix",
"prettier --write",
"git add"
]
},
"files": [
"dist",
"svgs"
Expand All @@ -41,7 +32,7 @@
"access": "public"
},
"dependencies": {
"@babel/runtime": "^7.8.7",
"@babel/runtime": "^7.9.2",
"@bigcommerce/big-design-theme": "^0.8.0",
"react-uid": "^2.2.0"
},
Expand All @@ -52,15 +43,15 @@
},
"devDependencies": {
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.0",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/plugin-proposal-optional-chaining": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.1.0",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.9.0",
"@bigcommerce/configs": "^0.13.0",
"@svgr/core": "^5.0.1",
"@svgr/plugin-jsx": "^5.0.1",
Expand All @@ -76,14 +67,13 @@
"glob-promise": "^3.4.0",
"inquirer": "^7.0.4",
"inquirer-autocomplete-prompt": "^1.0.1",
"lint-staged": "^9.2.0",
"node-fetch": "^2.6.0",
"prettier": "^1.16.4",
"react": "^16.8.4",
"react-dom": "^16.8.4",
"rimraf": "^3.0.2",
"styled-components": "^4.3.0",
"typescript": "^3.7.2",
"typescript": "^3.8.3",
"typescript-styled-plugin": "^0.15.0"
}
}
2 changes: 2 additions & 0 deletions packages/big-design-icons/scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ async function generateIcons() {

componentNames.add(name);

// eslint-disable-next-line no-console
console.log(`Building: ${name}`);

return convertToReactComponent(iconFilePath, name);
Expand All @@ -51,5 +52,6 @@ function cleanDestDirectory() {

await outputFile(join(DEST_PATH, 'index.ts'), indexFile.join('\n'));

// eslint-disable-next-line no-console
console.log('Done!');
})();
2 changes: 2 additions & 0 deletions packages/big-design-icons/scripts/downloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ inquirer.registerPrompt('autocomplete', inquirerAutocomplete);
const DEST_PATH = join(__dirname, '..', 'svgs', 'material');

async function downloadIcon(icon) {
// eslint-disable-next-line no-console
console.log(`Downloading icon: ${icon.name}`);

const response = await fetch(
Expand Down Expand Up @@ -58,6 +59,7 @@ async function fetchIconList() {
const iconAlreadyExists = await iconExists(icon);

if (iconAlreadyExists) {
// eslint-disable-next-line no-console
console.log(`Icon "${icon.name}" already exists.`);
} else {
await downloadIcon(icon);
Expand Down
34 changes: 12 additions & 22 deletions packages/big-design-theme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,18 @@
"ci": "yarn run lint && yarn run test --maxWorkers=2 && yarn run build",
"lint": "yarn run lint:tsc",
"lint:tsc": "tsc --noEmit",
"precommit": "lint-staged",
"prepublishOnly": "rimraf dist && yarn run ci",
"test": "BABEL_ENV=test jest",
"test:watch": "yarn run test --watch"
},
"files": [
"dist"
],
"lint-staged": {
"*.{js,ts,tsx}": [
"eslint --fix",
"tslint --fix",
"prettier --write",
"git add"
]
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@babel/runtime": "^7.8.7",
"@babel/runtime": "^7.9.2",
"polished": "^3.0.3"
},
"peerDependencies": {
Expand All @@ -50,30 +41,29 @@
},
"devDependencies": {
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.0",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/plugin-proposal-optional-chaining": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.7.1",
"@babel/preset-react": "^7.7.0",
"@babel/preset-typescript": "^7.7.0",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.9.0",
"@bigcommerce/configs": "^0.13.0",
"@types/jest": "^25.1.2",
"@types/jest": "^25.2.1",
"@types/styled-components": "^4.1.12",
"babel-jest": "^25.1.0",
"babel-jest": "^25.4.0",
"babel-plugin-styled-components": "^1.10.6",
"concurrently": "^5.0.0",
"jest": "^25.1.0",
"jest": "^25.4.0",
"jest-styled-components": "^6.3.1",
"lint-staged": "^9.2.0",
"prettier": "^1.16.4",
"react": "^16.8.4",
"react-dom": "^16.8.4",
"rimraf": "^3.0.2",
"styled-components": "^4.3.0",
"typescript": "^3.7.2",
"typescript": "^3.8.3",
"typescript-styled-plugin": "^0.15.0"
}
}
34 changes: 12 additions & 22 deletions packages/big-design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,22 +26,13 @@
"start": "concurrently \"yarn:build:* --watch\"",
"test": "BABEL_ENV=test jest",
"test:watch": "yarn run test --watch",
"precommit": "lint-staged",
"prepublishOnly": "rimraf dist && yarn run ci"
},
"lint-staged": {
"*.{js,ts,tsx}": [
"eslint --fix",
"tslint --fix",
"prettier --write",
"git add"
]
},
"publishConfig": {
"access": "public"
},
"dependencies": {
"@babel/runtime": "^7.8.7",
"@babel/runtime": "^7.9.2",
"@bigcommerce/big-design-icons": "^0.10.0",
"@bigcommerce/big-design-theme": "^0.8.0",
"@popperjs/core": "^2.2.1",
Expand All @@ -58,36 +49,35 @@
},
"devDependencies": {
"@babel/cli": "^7.7.0",
"@babel/core": "^7.7.0",
"@babel/core": "^7.9.0",
"@babel/plugin-proposal-class-properties": "^7.7.0",
"@babel/plugin-proposal-object-rest-spread": "^7.6.2",
"@babel/plugin-proposal-optional-chaining": "^7.7.4",
"@babel/plugin-proposal-object-rest-spread": "^7.9.5",
"@babel/plugin-proposal-optional-chaining": "^7.9.0",
"@babel/plugin-transform-object-assign": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.6.2",
"@babel/preset-env": "^7.7.1",
"@babel/preset-react": "^7.7.0",
"@babel/preset-typescript": "^7.7.0",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.9.5",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.9.0",
"@bigcommerce/configs": "^0.13.0",
"@testing-library/jest-dom": "^5.1.1",
"@testing-library/react": "^9.4.0",
"@types/jest": "^25.1.2",
"@types/jest": "^25.2.1",
"@types/node": "^13.1.8",
"@types/react": "^16.8.8",
"@types/react-dom": "^16.8.5",
"@types/react-test-renderer": "^16.8.3",
"@types/styled-components": "^4.1.12",
"babel-jest": "^25.1.0",
"babel-jest": "^25.4.0",
"babel-plugin-styled-components": "^1.10.6",
"concurrently": "^5.0.0",
"jest": "^25.1.0",
"jest": "^25.4.0",
"jest-styled-components": "^6.3.1",
"lint-staged": "^9.2.0",
"prettier": "^1.16.4",
"react": "^16.8.4",
"react-dom": "^16.8.4",
"rimraf": "^3.0.2",
"styled-components": "^4.3.0",
"typescript": "^3.7.2",
"typescript": "^3.8.3",
"typescript-styled-plugin": "^0.15.0"
}
}
Loading

0 comments on commit c2a5edc

Please sign in to comment.