Skip to content

Commit

Permalink
feat: add remix-validated-form package
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-sa committed Sep 14, 2023
1 parent 4b885b1 commit c944526
Show file tree
Hide file tree
Showing 16 changed files with 4,312 additions and 9,369 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"neonctl": "^1.21.3",
"node-gyp": "^9.4.0",
"node-gyp-build": "^4.6.1",
"npm-local-development": "^0.4.0",
"nx": "16.7.4",
"prettier": "^2.6.2",
"react": "^18.2.0",
Expand All @@ -48,7 +49,7 @@
"ts-jest": "^29.1.0",
"ts-node": "10.9.1",
"type-fest": "^4.3.1",
"typescript": "~5.1.3",
"typescript": "5.2.2",
"verdaccio": "^5.0.4"
},
"dependencies": {
Expand Down Expand Up @@ -80,6 +81,7 @@
"graphql-request": "^6.1.0",
"graphql-scalars": "^1.22.2",
"radash": "^11.0.0",
"remix-validated-form": "^5.1.0",
"tslib": "2.6.2"
},
"packageManager": "pnpm@8.7.4",
Expand Down
21 changes: 21 additions & 0 deletions packages/remix-validated-form/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"extends": ["../../.eslintrc.json"],
"ignorePatterns": ["!**/*"],
"overrides": [
{
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
"parserOptions": {
"project": ["packages/remix-validated-form/tsconfig.*?.json"]
},
"rules": {}
},
{
"files": ["*.ts", "*.tsx"],
"rules": {}
},
{
"files": ["*.js", "*.jsx"],
"rules": {}
}
]
}
69 changes: 69 additions & 0 deletions packages/remix-validated-form/.release-it.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "conventionalcommits",
"types": [
{
"type": "feat",
"section": "Features"
},
{
"type": "fix",
"section": "Bug Fixes"
},
{
"type": "refactor",
"section": "Refactor"
},
{
"type": "docs",
"section": "Documentations"
},
{
"type": "revert",
"section": "Revert"
}
]
},
"infile": "packages/remix-validated-form/CHANGELOG.md",
"parserOpts": {
"headerPattern": "^(\\w*)(?:\\((remix-validated-form*)\\))?\\: (.*)$"
}
},
"@release-it/bumper": {
"in": {
"file": "packages/remix-validated-form/package.json",
"path": "version"
},
"out": [
{
"file": "packages/remix-validated-form/package.json",
"path": "version"
},
{
"file": "dist/packages/remix-validated-form/package.json",
"path": "version"
}
]
}
},
"git": {
"commitMessage": "chore(remix-validated-form): release ${version}",
"tagName": "remix-validated-form-v${version}",
"requireCleanWorkingDir": false
},
"npm": {
"publishPath": "dist/packages/remix-validated-form",
"publish": false
},
"github": {
"release": true,
"releaseName": "remix-validated-form ${version}"
},
"hooks": {
"after:bump": "git checkout -- package.json",
"before:github:release": "npm publish dist/packages/remix-validated-form"
},
"ci": true
}
104 changes: 104 additions & 0 deletions packages/remix-validated-form/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@


## 0.1.0 (2023-09-13)


### Features

* add initial graphql example app ([847a956](https://github.com/marcus-sa/deepkit-modules/commit/847a9560bf4b20ecd9bcb9cffeaf7240f77baea1))
* add nx-webpack-plugin package ([80ac51f](https://github.com/marcus-sa/deepkit-modules/commit/80ac51f54e6f1b9497d73766daf245da76c525a0))
* add remix-validated-form package & example ([5fac8fc](https://github.com/marcus-sa/deepkit-modules/commit/5fac8fc365436712bdb5f6b2613b0c4ca9abb730))
* improvements ([c6fcede](https://github.com/marcus-sa/deepkit-modules/commit/c6fcede69dded2fccd5927ea9969d4966685c7bd))
* improvements ([fbe62d7](https://github.com/marcus-sa/deepkit-modules/commit/fbe62d72d690dbb2df3edff1d3db03e29fefdcb7))
* rename npm scope to deepkit-modules ([748bd59](https://github.com/marcus-sa/deepkit-modules/commit/748bd59bc810a636811811e3d7814c55d584c581))


### Refactor

* code ([74ecec2](https://github.com/marcus-sa/deepkit-modules/commit/74ecec2343c1dd83a95070293fb74d77c22b4872))


### Revert

* Revert "ci: fix nrwl/nx-set-shas base ref" ([1217ef7](https://github.com/marcus-sa/deepkit-modules/commit/1217ef7ced66ba00a6ce05c3b4f6a1b150cc7a84))

## 0.4.0 (2023-09-08)


### Features

* add initial graphql example app ([847a956](https://github.com/marcus-sa/deepkit-community/commit/847a9560bf4b20ecd9bcb9cffeaf7240f77baea1))
* add nx-webpack-plugin package ([80ac51f](https://github.com/marcus-sa/deepkit-community/commit/80ac51f54e6f1b9497d73766daf245da76c525a0))
* add remix-validated-form package & example ([5fac8fc](https://github.com/marcus-sa/deepkit-community/commit/5fac8fc365436712bdb5f6b2613b0c4ca9abb730))
* improvements ([c6fcede](https://github.com/marcus-sa/deepkit-community/commit/c6fcede69dded2fccd5927ea9969d4966685c7bd))
* improvements ([fbe62d7](https://github.com/marcus-sa/deepkit-community/commit/fbe62d72d690dbb2df3edff1d3db03e29fefdcb7))


### Refactor

* code ([74ecec2](https://github.com/marcus-sa/deepkit-community/commit/74ecec2343c1dd83a95070293fb74d77c22b4872))


### Revert

* Revert "ci: fix nrwl/nx-set-shas base ref" ([1217ef7](https://github.com/marcus-sa/deepkit-community/commit/1217ef7ced66ba00a6ce05c3b4f6a1b150cc7a84))

## [0.3.1](https://github.com/marcus-sa/deepkit-community/compare/remix-validated-form-v0.3.0...remix-validated-form-v0.3.1) (2023-09-08)

## 0.3.0 (2023-09-08)


### Features

* add initial graphql example app ([847a956](https://github.com/marcus-sa/deepkit-community/commit/847a9560bf4b20ecd9bcb9cffeaf7240f77baea1))
* add nx-webpack-plugin package ([80ac51f](https://github.com/marcus-sa/deepkit-community/commit/80ac51f54e6f1b9497d73766daf245da76c525a0))
* add remix-validated-form package & example ([5fac8fc](https://github.com/marcus-sa/deepkit-community/commit/5fac8fc365436712bdb5f6b2613b0c4ca9abb730))
* improvements ([c6fcede](https://github.com/marcus-sa/deepkit-community/commit/c6fcede69dded2fccd5927ea9969d4966685c7bd))
* improvements ([fbe62d7](https://github.com/marcus-sa/deepkit-community/commit/fbe62d72d690dbb2df3edff1d3db03e29fefdcb7))


### Refactor

* code ([74ecec2](https://github.com/marcus-sa/deepkit-community/commit/74ecec2343c1dd83a95070293fb74d77c22b4872))


### Revert

* Revert "ci: fix nrwl/nx-set-shas base ref" ([1217ef7](https://github.com/marcus-sa/deepkit-community/commit/1217ef7ced66ba00a6ce05c3b4f6a1b150cc7a84))

## 0.2.0 (2023-09-08)


### Features

* add initial graphql example app ([847a956](https://github.com/marcus-sa/deepkit-community/commit/847a9560bf4b20ecd9bcb9cffeaf7240f77baea1))
* add nx-webpack-plugin package ([80ac51f](https://github.com/marcus-sa/deepkit-community/commit/80ac51f54e6f1b9497d73766daf245da76c525a0))
* add remix-validated-form package & example ([5fac8fc](https://github.com/marcus-sa/deepkit-community/commit/5fac8fc365436712bdb5f6b2613b0c4ca9abb730))
* improvements ([c6fcede](https://github.com/marcus-sa/deepkit-community/commit/c6fcede69dded2fccd5927ea9969d4966685c7bd))
* improvements ([fbe62d7](https://github.com/marcus-sa/deepkit-community/commit/fbe62d72d690dbb2df3edff1d3db03e29fefdcb7))


### Refactor

* code ([74ecec2](https://github.com/marcus-sa/deepkit-community/commit/74ecec2343c1dd83a95070293fb74d77c22b4872))


### Revert

* Revert "ci: fix nrwl/nx-set-shas base ref" ([1217ef7](https://github.com/marcus-sa/deepkit-community/commit/1217ef7ced66ba00a6ce05c3b4f6a1b150cc7a84))

## 0.1.0 (2023-09-08)


### Features

* add initial graphql example app ([847a956](https://github.com/marcus-sa/deepkitx/commit/847a9560bf4b20ecd9bcb9cffeaf7240f77baea1))
* add nx-webpack-plugin package ([80ac51f](https://github.com/marcus-sa/deepkitx/commit/80ac51f54e6f1b9497d73766daf245da76c525a0))
* add remix-validated-form package & example ([5fac8fc](https://github.com/marcus-sa/deepkitx/commit/5fac8fc365436712bdb5f6b2613b0c4ca9abb730))
* improvements ([c6fcede](https://github.com/marcus-sa/deepkitx/commit/c6fcede69dded2fccd5927ea9969d4966685c7bd))
* improvements ([fbe62d7](https://github.com/marcus-sa/deepkitx/commit/fbe62d72d690dbb2df3edff1d3db03e29fefdcb7))


### Refactor

* code ([74ecec2](https://github.com/marcus-sa/deepkitx/commit/74ecec2343c1dd83a95070293fb74d77c22b4872))
3 changes: 3 additions & 0 deletions packages/remix-validated-form/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```
$ pnpm add @deepkit-modules/remix-validated-form remix-validated-form @deepkit/type
```
11 changes: 11 additions & 0 deletions packages/remix-validated-form/jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* eslint-disable */
export default {
displayName: 'remix-validated-form',
preset: '../../jest.preset.js',
testEnvironment: 'node',
transform: {
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
},
moduleFileExtensions: ['ts', 'js', 'html'],
coverageDirectory: '../../coverage/libs/remix-validated-form',
};
18 changes: 18 additions & 0 deletions packages/remix-validated-form/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "@deepkit-modules/remix-validated-form",
"version": "0.1.0",
"repository": {
"type": "git",
"url": "https://github.com/marcus-sa/deepkit-community.git"
},
"dependencies": {
"tslib": "2.6.2"
},
"peerDependencies": {
"remix-validated-form": "^5.1.0",
"@deepkit/type": "^1.0.1-alpha.97"
},
"publishConfig": {
"access": "public"
}
}
47 changes: 47 additions & 0 deletions packages/remix-validated-form/project.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"name": "remix-validated-form",
"$schema": "../../node_modules/nx/schemas/project-schema.json",
"sourceRoot": "packages/remix-validated-form/src",
"projectType": "library",
"targets": {
"build": {
"executor": "@nx/rollup:rollup",
"outputs": ["{options.outputPath}"],
"options": {
"outputPath": "dist/{projectRoot}",
"main": "{projectRoot}/src/index.ts",
"tsConfig": "{projectRoot}/tsconfig.lib.json",
"project": "{projectRoot}/package.json",
"format": ["esm", "cjs"],
"generateExportsField": true,
"external": "all",
"compiler": "tsc"
}
},
"release": {
"command": "release-it --config={projectRoot}/.release-it.json"
},
"lint": {
"executor": "@nx/linter:eslint",
"outputs": ["{options.outputFile}"],
"options": {
"lintFilePatterns": ["packages/remix-validated-form/**/*.ts"]
}
},
"test": {
"executor": "@nx/jest:jest",
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
"options": {
"jestConfig": "packages/remix-validated-form/jest.config.ts",
"passWithNoTests": true
},
"configurations": {
"ci": {
"ci": true,
"codeCoverage": true
}
}
}
},
"tags": ["remix-validated-form"]
}
4 changes: 4 additions & 0 deletions packages/remix-validated-form/src/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/* eslint-disable import/no-internal-modules */
export * from './lib/remix-validated-form-app.module';
export * from './lib/remix-validated-form-app-config';
export * from './lib/utils';
Loading

0 comments on commit c944526

Please sign in to comment.