Skip to content

Commit e5a3910

Browse files
ifeanyi-ugwuardatan
andcommitted
feat: Automate setup for new GraphQL scalar types (#2623)
* Add missing documentation for scalar types - Added .mdx documentation for scalar types: GUID, HSLA, ISO8601Duration, LCCSubclass, Long, SESSN, UnsignedFloat, and UnsignedInt. - Resolves issue #2019 regarding missing scalar type documentation. * feat(scalars): add GeoJSON scalar - Introduced a custom GeoJSON scalar type. - Added unit tests to ensure proper validation and functionality of the GeoJSON scalar. - Updated documentation website to reflect the new scalar type and usage. - Resolves issue #2061. * feat(scalars): add CountryName scalar - Introduced a custom CountryName scalar type. - Added unit tests to ensure proper validation and functionality of the CountryName scalar. - Updated documentation website to reflect the new scalar type and usage. * feat: Automate setup for new GraphQL scalar types - Added script to streamline the process of adding new scalar types. - Automates updates to `index.ts`, `scalars/index.ts`, `mocks.ts`, `typeDefs.ts`, and documentation. - Ensures consistency in scalar declarations and documentation. - Logs the status of file modifications (new additions, already existing entries, warnings). * Add missing documentation for scalar types & feat(scalars): add GeoJSON scalar (#2621) * Add missing documentation for scalar types - Added .mdx documentation for scalar types: GUID, HSLA, ISO8601Duration, LCCSubclass, Long, SESSN, UnsignedFloat, and UnsignedInt. - Resolves issue #2019 regarding missing scalar type documentation. * feat(scalars): add GeoJSON scalar - Introduced a custom GeoJSON scalar type. - Added unit tests to ensure proper validation and functionality of the GeoJSON scalar. - Updated documentation website to reflect the new scalar type and usage. - Resolves issue #2061. * Go --------- Co-authored-by: Arda TANRIKULU <[email protected]>
1 parent b14e7c9 commit e5a3910

File tree

12 files changed

+982
-1
lines changed

12 files changed

+982
-1
lines changed

.changeset/cool-onions-beg.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphql-scalars': minor
3+
---
4+
5+
add GeoJSON scalar

.changeset/healthy-needles-tease.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'graphql-scalars': minor
3+
---
4+
5+
Add \`CountryName\` scalar

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
"lint": "cross-env \"ESLINT_USE_FLAT_CONFIG=false\" eslint --ext .ts \"./src/**/*.ts\"",
4141
"lint:prettier": "prettier --ignore-path .gitignore --ignore-path .prettierignore --cache --check .",
4242
"prebuild": "yarn clean",
43-
"prepare": "husky install",
4443
"prerelease": "yarn build && bob prepack",
4544
"prettier": "yarn lint:prettier --write",
4645
"release": "changeset publish",
46+
"setup-scalar": "node ./scripts/setup-scalar.js",
4747
"test": "jest --forceExit --no-watchman && yarn bundlesize"
4848
},
4949
"peerDependencies": {

0 commit comments

Comments
 (0)