diff --git a/libs/forms/feature/.babelrc b/libs/forms/feature/.babelrc new file mode 100644 index 0000000000..1ea870ead4 --- /dev/null +++ b/libs/forms/feature/.babelrc @@ -0,0 +1,12 @@ +{ + "presets": [ + [ + "@nx/react/babel", + { + "runtime": "automatic", + "useBuiltIns": "usage" + } + ] + ], + "plugins": [] +} diff --git a/libs/forms/feature/.eslintrc.json b/libs/forms/feature/.eslintrc.json new file mode 100644 index 0000000000..cacbe26215 --- /dev/null +++ b/libs/forms/feature/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["../../../.eslintrc.js"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/forms/feature/README.md b/libs/forms/feature/README.md new file mode 100644 index 0000000000..a5208528a9 --- /dev/null +++ b/libs/forms/feature/README.md @@ -0,0 +1,7 @@ +# feature + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test feature` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/forms/feature/jest.config.ts b/libs/forms/feature/jest.config.ts new file mode 100644 index 0000000000..dd012badd0 --- /dev/null +++ b/libs/forms/feature/jest.config.ts @@ -0,0 +1,11 @@ +/* eslint-disable */ +export default { + displayName: "feature", + preset: "../../../jest.preset.js", + transform: { + "^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "@nx/react/plugins/jest", + "^.+\\.[tj]sx?$": ["babel-jest", { presets: ["@nx/react/babel"] }], + }, + moduleFileExtensions: ["ts", "tsx", "js", "jsx"], + coverageDirectory: "../../../coverage/libs/forms/feature", +} diff --git a/libs/forms/feature/project.json b/libs/forms/feature/project.json new file mode 100644 index 0000000000..ebfe9eb696 --- /dev/null +++ b/libs/forms/feature/project.json @@ -0,0 +1,20 @@ +{ + "name": "feature", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/forms/feature/src", + "projectType": "library", + "tags": [], + "targets": { + "lint": { + "executor": "@nx/eslint:lint", + "outputs": ["{options.outputFile}"] + }, + "test": { + "executor": "@nx/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/forms/feature/jest.config.ts" + } + } + } +} diff --git a/libs/forms/feature/src/index.ts b/libs/forms/feature/src/index.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/libs/forms/feature/tsconfig.json b/libs/forms/feature/tsconfig.json new file mode 100644 index 0000000000..4daaf45cd3 --- /dev/null +++ b/libs/forms/feature/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "jsx": "react-jsx", + "allowJs": false, + "esModuleInterop": false, + "allowSyntheticDefaultImports": true, + "strict": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ], + "extends": "../../../tsconfig.base.json" +} diff --git a/libs/forms/feature/tsconfig.lib.json b/libs/forms/feature/tsconfig.lib.json new file mode 100644 index 0000000000..21799b3e6b --- /dev/null +++ b/libs/forms/feature/tsconfig.lib.json @@ -0,0 +1,24 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "types": [ + "node", + + "@nx/react/typings/cssmodule.d.ts", + "@nx/react/typings/image.d.ts" + ] + }, + "exclude": [ + "jest.config.ts", + "src/**/*.spec.ts", + "src/**/*.test.ts", + "src/**/*.spec.tsx", + "src/**/*.test.tsx", + "src/**/*.spec.js", + "src/**/*.test.js", + "src/**/*.spec.jsx", + "src/**/*.test.jsx" + ], + "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"] +} diff --git a/libs/forms/feature/tsconfig.spec.json b/libs/forms/feature/tsconfig.spec.json new file mode 100644 index 0000000000..25b7af8f6d --- /dev/null +++ b/libs/forms/feature/tsconfig.spec.json @@ -0,0 +1,20 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + "src/**/*.d.ts" + ] +} diff --git a/libs/forms/store/.babelrc b/libs/forms/store/.babelrc new file mode 100644 index 0000000000..1ea870ead4 --- /dev/null +++ b/libs/forms/store/.babelrc @@ -0,0 +1,12 @@ +{ + "presets": [ + [ + "@nx/react/babel", + { + "runtime": "automatic", + "useBuiltIns": "usage" + } + ] + ], + "plugins": [] +} diff --git a/libs/forms/store/.eslintrc.json b/libs/forms/store/.eslintrc.json new file mode 100644 index 0000000000..cacbe26215 --- /dev/null +++ b/libs/forms/store/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["../../../.eslintrc.js"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/forms/store/README.md b/libs/forms/store/README.md new file mode 100644 index 0000000000..0834560fee --- /dev/null +++ b/libs/forms/store/README.md @@ -0,0 +1,7 @@ +# store + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test store` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/forms/store/jest.config.ts b/libs/forms/store/jest.config.ts new file mode 100644 index 0000000000..1fa3fdd54d --- /dev/null +++ b/libs/forms/store/jest.config.ts @@ -0,0 +1,11 @@ +/* eslint-disable */ +export default { + displayName: "store", + preset: "../../../jest.preset.js", + transform: { + "^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "@nx/react/plugins/jest", + "^.+\\.[tj]sx?$": ["babel-jest", { presets: ["@nx/react/babel"] }], + }, + moduleFileExtensions: ["ts", "tsx", "js", "jsx"], + coverageDirectory: "../../../coverage/libs/forms/store", +} diff --git a/libs/forms/store/project.json b/libs/forms/store/project.json new file mode 100644 index 0000000000..3ed00e628d --- /dev/null +++ b/libs/forms/store/project.json @@ -0,0 +1,20 @@ +{ + "name": "store", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/forms/store/src", + "projectType": "library", + "tags": [], + "targets": { + "lint": { + "executor": "@nx/eslint:lint", + "outputs": ["{options.outputFile}"] + }, + "test": { + "executor": "@nx/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/forms/store/jest.config.ts" + } + } + } +} diff --git a/libs/forms/store/src/index.ts b/libs/forms/store/src/index.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/libs/forms/store/tsconfig.json b/libs/forms/store/tsconfig.json new file mode 100644 index 0000000000..4daaf45cd3 --- /dev/null +++ b/libs/forms/store/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "jsx": "react-jsx", + "allowJs": false, + "esModuleInterop": false, + "allowSyntheticDefaultImports": true, + "strict": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ], + "extends": "../../../tsconfig.base.json" +} diff --git a/libs/forms/store/tsconfig.lib.json b/libs/forms/store/tsconfig.lib.json new file mode 100644 index 0000000000..21799b3e6b --- /dev/null +++ b/libs/forms/store/tsconfig.lib.json @@ -0,0 +1,24 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "types": [ + "node", + + "@nx/react/typings/cssmodule.d.ts", + "@nx/react/typings/image.d.ts" + ] + }, + "exclude": [ + "jest.config.ts", + "src/**/*.spec.ts", + "src/**/*.test.ts", + "src/**/*.spec.tsx", + "src/**/*.test.tsx", + "src/**/*.spec.js", + "src/**/*.test.js", + "src/**/*.spec.jsx", + "src/**/*.test.jsx" + ], + "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"] +} diff --git a/libs/forms/store/tsconfig.spec.json b/libs/forms/store/tsconfig.spec.json new file mode 100644 index 0000000000..25b7af8f6d --- /dev/null +++ b/libs/forms/store/tsconfig.spec.json @@ -0,0 +1,20 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + "src/**/*.d.ts" + ] +} diff --git a/libs/forms/ui/.babelrc b/libs/forms/ui/.babelrc new file mode 100644 index 0000000000..1ea870ead4 --- /dev/null +++ b/libs/forms/ui/.babelrc @@ -0,0 +1,12 @@ +{ + "presets": [ + [ + "@nx/react/babel", + { + "runtime": "automatic", + "useBuiltIns": "usage" + } + ] + ], + "plugins": [] +} diff --git a/libs/forms/ui/.eslintrc.json b/libs/forms/ui/.eslintrc.json new file mode 100644 index 0000000000..cacbe26215 --- /dev/null +++ b/libs/forms/ui/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["../../../.eslintrc.js"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/forms/ui/README.md b/libs/forms/ui/README.md new file mode 100644 index 0000000000..f46c5c29c9 --- /dev/null +++ b/libs/forms/ui/README.md @@ -0,0 +1,7 @@ +# ui + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test ui` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/forms/ui/jest.config.ts b/libs/forms/ui/jest.config.ts new file mode 100644 index 0000000000..0c69f3b73a --- /dev/null +++ b/libs/forms/ui/jest.config.ts @@ -0,0 +1,11 @@ +/* eslint-disable */ +export default { + displayName: "ui", + preset: "../../../jest.preset.js", + transform: { + "^(?!.*\\.(js|jsx|ts|tsx|css|json)$)": "@nx/react/plugins/jest", + "^.+\\.[tj]sx?$": ["babel-jest", { presets: ["@nx/react/babel"] }], + }, + moduleFileExtensions: ["ts", "tsx", "js", "jsx"], + coverageDirectory: "../../../coverage/libs/forms/ui", +} diff --git a/libs/forms/ui/project.json b/libs/forms/ui/project.json new file mode 100644 index 0000000000..325e6ecd8a --- /dev/null +++ b/libs/forms/ui/project.json @@ -0,0 +1,20 @@ +{ + "name": "ui", + "$schema": "../../../node_modules/nx/schemas/project-schema.json", + "sourceRoot": "libs/forms/ui/src", + "projectType": "library", + "tags": [], + "targets": { + "lint": { + "executor": "@nx/eslint:lint", + "outputs": ["{options.outputFile}"] + }, + "test": { + "executor": "@nx/jest:jest", + "outputs": ["{workspaceRoot}/coverage/{projectRoot}"], + "options": { + "jestConfig": "libs/forms/ui/jest.config.ts" + } + } + } +} diff --git a/libs/forms/ui/src/index.ts b/libs/forms/ui/src/index.ts new file mode 100644 index 0000000000..e69de29bb2 diff --git a/libs/forms/ui/tsconfig.json b/libs/forms/ui/tsconfig.json new file mode 100644 index 0000000000..4daaf45cd3 --- /dev/null +++ b/libs/forms/ui/tsconfig.json @@ -0,0 +1,20 @@ +{ + "compilerOptions": { + "jsx": "react-jsx", + "allowJs": false, + "esModuleInterop": false, + "allowSyntheticDefaultImports": true, + "strict": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + }, + { + "path": "./tsconfig.spec.json" + } + ], + "extends": "../../../tsconfig.base.json" +} diff --git a/libs/forms/ui/tsconfig.lib.json b/libs/forms/ui/tsconfig.lib.json new file mode 100644 index 0000000000..21799b3e6b --- /dev/null +++ b/libs/forms/ui/tsconfig.lib.json @@ -0,0 +1,24 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "types": [ + "node", + + "@nx/react/typings/cssmodule.d.ts", + "@nx/react/typings/image.d.ts" + ] + }, + "exclude": [ + "jest.config.ts", + "src/**/*.spec.ts", + "src/**/*.test.ts", + "src/**/*.spec.tsx", + "src/**/*.test.tsx", + "src/**/*.spec.js", + "src/**/*.test.js", + "src/**/*.spec.jsx", + "src/**/*.test.jsx" + ], + "include": ["src/**/*.js", "src/**/*.jsx", "src/**/*.ts", "src/**/*.tsx"] +} diff --git a/libs/forms/ui/tsconfig.spec.json b/libs/forms/ui/tsconfig.spec.json new file mode 100644 index 0000000000..25b7af8f6d --- /dev/null +++ b/libs/forms/ui/tsconfig.spec.json @@ -0,0 +1,20 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "module": "commonjs", + "types": ["jest", "node"] + }, + "include": [ + "jest.config.ts", + "src/**/*.test.ts", + "src/**/*.spec.ts", + "src/**/*.test.tsx", + "src/**/*.spec.tsx", + "src/**/*.test.js", + "src/**/*.spec.js", + "src/**/*.test.jsx", + "src/**/*.spec.jsx", + "src/**/*.d.ts" + ] +} diff --git a/nx.json b/nx.json index 4267796381..ebe2de2c46 100644 --- a/nx.json +++ b/nx.json @@ -1,4 +1,9 @@ { + "pluginsConfig": { + "@nx/js": { + "analyzeSourceFiles": true + } + }, "extends": "nx/presets/npm.json", "$schema": "./node_modules/nx/schemas/nx-schema.json", "tasksRunnerOptions": { @@ -39,10 +44,5 @@ } } } - }, - "pluginsConfig": { - "@nx/js": { - "analyzeSourceFiles": true - } } } diff --git a/tsconfig.base.json b/tsconfig.base.json index 735a100bef..7d51c85cb2 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -50,6 +50,9 @@ "electron/application-updater": [ "libs/electron/application-updater/src/index.ts" ], + "forms/feature": ["libs/forms/feature/src/index.ts"], + "forms/store": ["libs/forms/store/src/index.ts"], + "forms/ui": ["libs/forms/ui/src/index.ts"], "generic-view/feature": ["libs/generic-view/feature/src/index.ts"], "generic-view/models": ["libs/generic-view/models/src/index.ts"], "generic-view/store": ["libs/generic-view/store/src/index.ts"],