Skip to content

Commit

Permalink
build(forma-36-react-components): build with tsdx
Browse files Browse the repository at this point in the history
  • Loading branch information
denkristoffer committed Nov 3, 2020
1 parent 5abbefe commit 400f49f
Show file tree
Hide file tree
Showing 14 changed files with 3,932 additions and 6,307 deletions.
26 changes: 13 additions & 13 deletions packages/components/forma-36-react-timepicker/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4887,25 +4887,25 @@ qs@~6.5.2:
resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.2.tgz#cb3ae806e8740444584ef154ce8ee98d403f3e36"
integrity sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==

react-dom@16.10.2:
version "16.10.2"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.10.2.tgz#4840bce5409176bc3a1f2bd8cb10b92db452fda6"
integrity sha512-kWGDcH3ItJK4+6Pl9DZB16BXYAZyrYQItU4OMy0jAkv5aNqc+mAKb4TpFtAteI6TJZu+9ZlNhaeNQSVQDHJzkw==
react-dom@^16.8.3:
version "16.14.0"
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.14.0.tgz#7ad838ec29a777fb3c75c3a190f661cf92ab8b89"
integrity sha512-1gCeQXDLoIqMgqD3IO2Ah9bnf0w9kzhwN5q4FGnHZ67hBm9yePzB5JJAIQCc8x3pFnNlwFq4RidZggNAAkzWWw==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
prop-types "^15.6.2"
scheduler "^0.16.2"
scheduler "^0.19.1"

react-is@^16.12.0, react-is@^16.8.1, react-is@^16.8.4:
version "16.13.1"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==

react@16.10.2:
version "16.10.2"
resolved "https://registry.yarnpkg.com/react/-/react-16.10.2.tgz#a5ede5cdd5c536f745173c8da47bda64797a4cf0"
integrity sha512-MFVIq0DpIhrHFyqLU0S3+4dIcBhhOvBE8bJ/5kHPVOVaGdo0KuiQzpcjCPsf585WvhypqtrMILyoE2th6dT+Lw==
react@^16.8.3:
version "16.14.0"
resolved "https://registry.yarnpkg.com/react/-/react-16.14.0.tgz#94d776ddd0aaa37da3eda8fc5b6b18a4c9a3114d"
integrity sha512-0X2CImDkJGApiAlcf0ODKIneSwBPhqJawOa5wCtKbu7ZECrmS26NvtSILynQ66cgkT/RJ4LidJOc3bUESwmU8g==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
Expand Down Expand Up @@ -5378,10 +5378,10 @@ sax@^1.2.4:
resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9"
integrity sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==

scheduler@^0.16.2:
version "0.16.2"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.16.2.tgz#f74cd9d33eff6fc554edfb79864868e4819132c1"
integrity sha512-BqYVWqwz6s1wZMhjFvLfVR5WXP7ZY32M/wYPo04CcuPM7XZEbV2TBNW7Z0UkguPTl0dWMA59VbNXxK6q+pHItg==
scheduler@^0.19.1:
version "0.19.1"
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.19.1.tgz#4f3e2ed2c1a7d65681f4c854fa8c5a1ccb40f196"
integrity sha512-n/zwRWRYSUj0/3g/otKDRPMh6qv2SYMWNq85IEa8iZyAv8od9zDYpGSnpBEjNgcMNq6Scbu5KfIPxNF72R/2EA==
dependencies:
loose-envify "^1.1.0"
object-assign "^4.1.1"
Expand Down
36 changes: 0 additions & 36 deletions packages/forma-36-react-components/.babelrc

This file was deleted.

6 changes: 2 additions & 4 deletions packages/forma-36-react-components/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ module.exports = {
'plugin:jest/recommended',
'plugin:jest/style',
],
plugins: [
'react-hooks'
],
plugins: ['react-hooks'],
parserOptions: {
ecmaVersion: 7,
project: './tsconfig.json',
Expand Down Expand Up @@ -59,6 +57,6 @@ module.exports = {
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/no-empty-function': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn'
'react-hooks/exhaustive-deps': 'warn',
},
};
192 changes: 67 additions & 125 deletions packages/forma-36-react-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,66 +3,64 @@
"description": "Contentful UI Component Library",
"version": "3.63.11",
"main": "dist/index.js",
"module": "dist/esm/index.js",
"module": "dist/forma-36-react-components.esm.js",
"style": "dist/styles.css",
"license": "MIT",
"types": "dist/index.d.ts",
"files": [
"package.json",
"dist"
],
"sideEffects": [
"*.css"
"dist",
"src"
],
"engines": {
"node": ">=10"
},
"scripts": {
"analyze": "size-limit --why",
"build-storybook": "build-storybook",
"build": "tsdx build --entry src/index.ts --entry src/alpha.ts && yarn post-build",
"generate": "yarn plop --plopfile ./tools/plopfile.js",
"lint": "tsdx lint",
"post-build": "node ./tools/postBuild.js",
"semantic-release": "semantic-release",
"size": "size-limit",
"start": "start-storybook -p 9001 -c ./tools/.storybook -s ./tools/.storybook/public",
"storybook": "yarn build-storybook -c tools/.storybook -s ./tools/.storybook/public -o dist-storybook",
"test": "tsdx test --passWithNoTests"
},
"peerDependencies": {
"react": "^16.8.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0"
},
"dependencies": {
"@popperjs/core": "^2.4.4",
"classnames": "^2.2.6",
"dayjs": "^1.9.1",
"react-animate-height": "^2.0.7",
"react-copy-to-clipboard": "^5.0.1",
"react-modal": "^3.11.2",
"react-popper": "^2.2.3",
"react-transition-group": "^2.4.0",
"truncate": "^2.0.1"
},
"devDependencies": {
"@babel/cli": "^7.2.3",
"@babel/core": "^7.2.2",
"@babel/plugin-proposal-class-properties": "^7.3.0",
"@babel/plugin-proposal-object-rest-spread": "^7.3.1",
"@babel/plugin-transform-runtime": "^7.2.0",
"@babel/polyfill": "7.2.5",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "7.3.3",
"@babel/core": "^7.12.3",
"@contentful/forma-36-fcss": "^0.2.11",
"@contentful/forma-36-tokens": "^0.9.1",
"@size-limit/preset-big-lib": "^4.5.5",
"@storybook/addon-a11y": "^6.0.21",
"@storybook/addon-essentials": "^6.0.21",
"@size-limit/preset-small-lib": "^4.6.2",
"@storybook/addon-a11y": "^6.0.26",
"@storybook/addon-essentials": "^6.1.0-alpha.31",
"@storybook/addon-knobs": "^6.0.21",
"@storybook/addon-storysource": "^6.0.21",
"@storybook/react": "6.1.0-alpha.10",
"@storybook/addons": "^6.0.26",
"@storybook/react": "6.1.0-alpha.31",
"@storybook/theming": "^6.0.21",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.4.0",
"@svgr/rollup": "^5.4.0",
"@types/classnames": "2.2.7",
"@types/enzyme": "3.9.1",
"@types/jest": "^24.0.25",
"@types/jest-axe": "^3.2.1",
"@types/react": "16.8.6",
"@types/react-color": "^3.0.1",
"@types/react-copy-to-clipboard": "4.2.6",
"@types/react-dom": "16.8.4",
"@types/react-dom": "^16.9.8",
"@types/react-transition-group": "2.0.15",
"@types/storybook__react": "5.2.1",
"@typescript-eslint/eslint-plugin": "^1.13.0",
"@typescript-eslint/parser": "^1.13.0",
"babel-jest": "^24.1.0",
"babel-loader": "^8.0.5",
"babel-plugin-add-react-displayname": "^0.0.5",
"babel-plugin-css-modules-transform": "^1.6.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-plugin-inline-react-svg": "^1.1.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
"babel-plugin-typescript-to-proptypes": "0.17.1",
"css-loader": "^1.0.1",
"cz-conventional-changelog": "^2.1.0",
"enzyme": "^3.8.0",
"enzyme-adapter-react-16": "^1.9.1",
"enzyme-to-json": "^3.3.5",
"eslint": "5.16.0",
"eslint-config-dev": "2.0.0",
"eslint-config-prettier": "4.2.0",
"eslint-plugin-import": "2.17.2",
"@types/react": "^16.9.53",
"babel-loader": "^8.1.0",
"eslint-plugin-jest": "22.5.1",
"eslint-plugin-jsx-a11y": "6.2.1",
"eslint-plugin-prettier": "3.1.0",
Expand All @@ -76,70 +74,19 @@
"mini-css-extract-plugin": "^0.7.0",
"optimize-css-assets-webpack-plugin": "5.0.3",
"plop": "^2.5.3",
"postcss": "^7.0.5",
"postcss-copy-assets": "^0.3.1",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"postcss-preset-env": "^6.7.0",
"postcss-url": "^8.0.0",
"react-docgen-typescript-loader": "3.1.0",
"react-test-renderer": "^16.8.3",
"rollup": "^1.8.0",
"rollup-plugin-babel": "^4.3.2",
"rollup-plugin-commonjs": "^9.3.0",
"rollup-plugin-local-resolve": "^1.0.7",
"rollup-plugin-node-resolve": "^4.0.1",
"rollup-plugin-replace": "^2.1.1",
"rollup-plugin-terser": "^4.0.4",
"semantic-release": "^15.14.0",
"size-limit": "^4.5.5",
"react-dom": "^16.13.1",
"react-is": "^16.13.1",
"react": "^16.13.1",
"rollup-plugin-postcss": "^3.1.8",
"size-limit": "^4.6.2",
"storybook-addon-jsx": "^7.3.4",
"storybook-prop-types-addon": "1.0.2",
"style-loader": "^0.23.1",
"travis-deploy-once": "^4.4.1",
"typescript": "3.7.5",
"webpack": "^4.39.3",
"webpack-cli": "^3.3.5"
},
"dependencies": {
"@babel/runtime": "^7.3.4",
"@popperjs/core": "^2.4.4",
"classnames": "^2.2.6",
"dayjs": "^1.9.1",
"react-animate-height": "^2.0.7",
"react-copy-to-clipboard": "^5.0.1",
"react-modal": "^3.11.2",
"react-popper": "^2.2.3",
"react-transition-group": "^2.4.0",
"truncate": "^2.0.1"
},
"peerDependencies": {
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
"scripts": {
"start": "start-storybook -p 9001 -c ./tools/.storybook -s ./tools/.storybook/public",
"test": "jest",
"build:clean": "rm -rf dist esm",
"build:scripts": "BABEL_ENV=build yarn babel src --out-dir dist --ignore 'src/**/*.stories.js','src/**/*.stories.tsx','src/**/*.test.tsx','src/**/*.test.js','src/**/*.css.d.ts' --extensions '.ts','.tsx','.js'",
"build:esm": "BABEL_ENV=esm yarn babel src --out-dir esm --ignore 'src/**/*.stories.js','src/**/*.stories.tsx','src/**/*.test.tsx','src/**/*.test.js','src/**/*.css.d.ts' --extensions '.ts','.tsx','.js' && rollup -c tools/rollup.esm.config.js && rm -rf esm",
"build:styles": "yarn webpack --config ./tools/webpack.production.config.js",
"build:umd": "rollup -c tools/rollup.umd.config.js",
"build:types": "tsc --emitDeclarationOnly",
"build:post-clean": "rm -rf dist/styles.js dist/main.js",
"build": "yarn build:clean && yarn build:scripts && yarn build:esm && yarn build:styles && yarn build:types && yarn build:umd && yarn size && yarn build:post-clean",
"size": "size-limit",
"generate": "yarn plop --plopfile ./tools/plopfile.js",
"eslint": "eslint . --ext .js,.jsx,.ts,.tsx",
"lint": "yarn eslint",
"add-component": "yarn generate component",
"add-documentation": "yarn generate documentation",
"prepublishOnly": "yarn lint && yarn test && yarn build",
"travis-deploy-once": "travis-deploy-once --pro",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"semantic-release": "semantic-release",
"storybook": "yarn build-storybook -c tools/.storybook -s ./tools/.storybook/public -o dist-storybook"
"tsdx": "^0.14.1",
"tslib": "^2.0.3",
"typescript": "^3.7.5"
},
"jest": {
"globalSetup": "<rootDir>/test/config/globalSetup.js",
Expand All @@ -155,30 +102,25 @@
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
"\\.css": "identity-obj-proxy"
},
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
}
},
"size-limit": [
{
"path": "dist/forma-36-react-components.cjs.production.min.js",
"limit": "10 KB"
},
{
"path": "dist/forma-36-react-components.esm.js",
"limit": "10 KB"
}
],
"repository": {
"type": "git",
"url": "https://github.com/contentful/forma-36.git"
},
"resolutions": {
"url-parse": "1.4.4",
"merge": "1.2.1",
"extend": "3.0.2",
"@types/react": "16.8.6",
"set-value": "2.0.1",
"js-yaml": "3.13.1"
},
"publishConfig": {
"access": "public"
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"gitHead": "e7d604672b4c32b089c41fee14f9c878929d7b20"
"react-dom": "16.13.1",
"react": "16.13.1",
"react-is": "16.13.1"
}
}
Loading

0 comments on commit 400f49f

Please sign in to comment.