Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat 38 typescript #95

Merged
merged 42 commits into from
Dec 23, 2022
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
326fd2a
feat: start ts migration
timrbula Nov 4, 2022
7ad5c47
feat: convert loading
timrbula Nov 4, 2022
25b4576
[ts-migrate][carbon-addons-boomerang-react] Init tsconfig.json file
timrbula Nov 4, 2022
e60a6dc
[ts-migrate][.] Init tsconfig.json file
timrbula Nov 4, 2022
e6b387b
feat: firirst pass at migration
timrbula Nov 4, 2022
fe1c296
chore: prettier formatting
timrbula Nov 4, 2022
79193cc
feat: add tsup and fix ts errors
timrbula Nov 4, 2022
09a1395
fix: some comments
timrbula Nov 4, 2022
097c7bf
chore: some more cleanup
timrbula Nov 4, 2022
875b274
feat: typescript migration wip
Nov 24, 2022
86d33e7
feat: typescript migration wip
Nov 25, 2022
1feecf1
chore: update test setup, prettier
Nov 25, 2022
58bfd29
feat: remove most default props
timrbula Dec 5, 2022
1569380
chore: add back docs, fix prebuild
timrbula Dec 5, 2022
aae5be1
fix: modal
timrbula Dec 5, 2022
d2178f0
feat: use rollup
timrbula Dec 7, 2022
e19f027
feat: cleanup rollup impl
timrbula Dec 7, 2022
f07626f
feat: keep improving types
timrbula Dec 7, 2022
e5ec823
fix: dynamic formik, feature header props
timrbula Dec 7, 2022
7da1e37
fix: protected route props
timrbula Dec 7, 2022
579793d
fix: more ts bugs
timrbula Dec 7, 2022
0616096
feat: update style type
timrbula Dec 8, 2022
aba75dd
feat: add react to files
timrbula Dec 8, 2022
5c30a8f
fix: more types
timrbula Dec 8, 2022
9b885ef
fix: more types
timrbula Dec 8, 2022
8239794
feat: import react and fix types
timrbula Dec 8, 2022
ae709db
feat: fix dynamic formik and mulitselect combo types
timrbula Dec 8, 2022
28420c0
feat: update types for tooltip
timrbula Dec 12, 2022
cc5d4e4
feat: some more updates
timrbula Dec 12, 2022
6847e99
chore: move dynamic back
timrbula Dec 12, 2022
4d7a5c1
feat: build, type, and test fixes
timrbula Dec 15, 2022
415efb8
feat: export standalone internal types
timrbula Dec 15, 2022
52c4e72
feat: improve types some more
timrbula Dec 15, 2022
84c9678
feat: bump version
timrbula Dec 15, 2022
414648f
feat: add lodash types, cleanup tsconfig
timrbula Dec 16, 2022
ca11a9c
fix: composed modal types
timrbula Dec 16, 2022
9c1396f
chore: bump version
timrbula Dec 16, 2022
c4101fb
fix: composed modal types
timrbula Dec 16, 2022
80d28c0
fix: swap out date-dns for dayjs
timrbula Dec 16, 2022
a88efe5
fix: update protected route types
timrbula Dec 19, 2022
19bd5ee
feat: update including user
timrbula Dec 23, 2022
bc61b81
feat: update version
timrbula Dec 23, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
17 changes: 0 additions & 17 deletions .babelrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ module.exports = {
{
files: ["**/*.stories.*"],
rules: {
"import/no-anonymous-default-export": "off",
"import/no-anonymous-default-export": 0,
},
},
],
ignorePatterns: ["node_modules", "coverage", "config", "lib", "docs", "storybook-static", "results"],
ignorePatterns: ["node_modules", "coverage", "config", "lib", "docs", "storybook-static", "results", "rollup.config.mjs"],
};
6 changes: 1 addition & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@
node_modules

# Compiled
lib
es
umd
build
dist
scss
styles
storybook-static
*.tgz

Expand Down
1 change: 0 additions & 1 deletion .storybook/main.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ module.exports = {
},
typescript: {
check: false,
reactDocgen: "react-docgen",
}
};
68 changes: 35 additions & 33 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@boomerang-io/carbon-addons-boomerang-react",
"description": "Carbon Addons for Boomerang apps",
"version": "3.1.2",
"version": "3.2.0-beta.0",
"author": {
"name": "Tim Bula",
"email": "timrbula@gmail.com"
Expand All @@ -15,11 +15,11 @@
"bugs": {
"url": "https://github.com/boomerang-io/carbon-addons-boomerang-react/issues"
},
"main": "lib/index.js",
"module": "es/index.js",
"main": "dist/cjs",
"module": "dist/esm",
"types": "dist/types",
"files": [
"lib/**/*",
"es/**/*",
"dist/**/*",
"scss/**/*"
],
"sideEffects": false,
Expand All @@ -31,10 +31,12 @@
"storybook"
],
"scripts": {
"build": "node scripts/build.js",
"build": "rimraf scss dist && pnpm build:components && pnpm build:styles && pnpm build:types",
"build:components": "rollup -c --bundleConfigAsCjs",
"build:styles": "node scripts/build.js",
"build:storybook": "build-storybook",
"build:types": "tsc -d --declarationDir dist/types --emitDeclarationOnly",
"lint": "eslint src",
"prebuild": "rimraf lib styles es docs",
"prepare": "husky install",
"precommit": "lint-staged",
"start": "start-storybook -p 6006",
Expand All @@ -45,59 +47,59 @@
"release": "release-it"
},
"dependencies": {
"@babel/runtime": "7.18.9",
"@stomp/stompjs": "6.1.2",
"@tippyjs/react": "4.2.6",
"classnames": "2.3.1",
"date-fns": "2.29.1",
"dompurify": "2.3.10",
"classnames": "2.3.2",
"date-fns": "2.29.3",
"dompurify": "2.4.1",
"downshift": "6.1.7",
"focus-trap-react": "9.0.2",
"focus-trap-react": "10.0.2",
"lodash.get": "4.4.2",
"lodash.isequal": "4.5.0",
"lodash.sortby": "4.7.0",
"match-sorter": "6.3.1",
"react-autosuggest": "10.1.0",
"react-modal": "3.15.1",
"react-query": "3.39.2",
"react-toastify": "9.0.7"
"react-modal": "3.16.1",
"react-query": "^3.34.12",
"react-toastify": "9.1.1"
},
"peerDependencies": {
"@carbon/react": "^1.12.0",
"axios": ">= 0.26.0 < 1",
"formik": "^2.1.5",
"prop-types": "^15.8.1",
"react": "^17.0.0 || ^16.14.0",
"react-dom": "^17.0.0 || ^16.14.0",
"react-query": "^3.34.12",
"react-router-dom": "^5.3.0",
"yup": ">=0.32.11"
},
"devDependencies": {
"@babel/cli": "^7.18.6",
"@babel/core": "^7.18.6",
"@babel/plugin-transform-runtime": "^7.18.6",
"@babel/preset-env": "^7.18.6",
"@babel/preset-react": "^7.18.6",
"@carbon/react": "1.1.0",
"@commitlint/cli": "^17.0.3",
"@commitlint/config-conventional": "^17.0.3",
"@rollup/plugin-commonjs": "^23.0.3",
"@rollup/plugin-image": "^3.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-terser": "^0.2.0",
"@rollup/plugin-typescript": "^10.0.1",
"@storybook/addon-a11y": "^6.5.12",
"@storybook/addon-essentials": "^6.5.12",
"@storybook/addon-links": "^6.5.12",
"@storybook/addon-storysource": "^6.5.12",
"@storybook/builder-vite": "^0.2.4",
"@storybook/builder-vite": "^0.2.5",
"@storybook/react": "^6.5.12",
"@storybook/testing-library": "^0.0.13",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"@types/react": "^17.0.0",
"@types/react-dom": "^17.0.0",
"@vitejs/plugin-react": "^2.1.0",
"@types/dompurify": "^2.4.0",
"@types/jest": "^29.2.3",
"@types/react": "^16.9.49",
"@types/react-dom": "^16.9.8",
"@types/react-router-dom": "5.3.3",
"@types/testing-library__jest-dom": "^5.14.5",
"@vitejs/plugin-react": "^2.2.0",
"axios": "0.27.2",
"axios-mock-adapter": "^1.20.0",
"babel-loader": "^8.2.5",
"core-js": "^3.23.4",
"cpy": "8.1.2",
"cross-env": "^7.0.3",
"eslint": "^8.19.0",
Expand All @@ -109,18 +111,18 @@
"jest-axe": "^6.0.0",
"jsdom": "^20.0.0",
"lint-staged": "^13.0.3",
"npm-which": "^3.0.1",
"prop-types": "^15.8.1",
"react": "^16.14.0",
"react-dom": "16.14.0",
"react-router-dom": "^5.3.0",
"release-it": "^15.4.2",
"rimraf": "^3.0.2",
"sass": "^1.53.0",
"rollup": "^3.6.0",
"rollup-plugin-peer-deps-external": "^2.2.4",
"sass": "^1.56.1",
"storybook": "^6.5.12",
"typescript": "^4.6.3",
"vite": "^3.1.3",
"vitest": "0.23.4",
"vite": "^3.2.4",
"vitest": "0.25.3",
"yup": "^0.32.11"
},
"lint-staged": {
Expand Down Expand Up @@ -149,4 +151,4 @@
"requireCleanWorkingDir": false
}
}
}
}
Loading