diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000000..06cc47d9a2 --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,35 @@ +{ + "root": true, + "ignorePatterns": ["**/*"], + "plugins": ["@nrwl/nx"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": { + "@nrwl/nx/enforce-module-boundaries": [ + "error", + { + "enforceBuildableLibDependency": true, + "allow": [], + "depConstraints": [ + { + "sourceTag": "*", + "onlyDependOnLibsWithTags": ["*"] + } + ] + } + ] + } + }, + { + "files": ["*.ts", "*.tsx"], + "extends": ["plugin:@nrwl/nx/typescript"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "extends": ["plugin:@nrwl/nx/javascript"], + "rules": {} + } + ] +} diff --git a/libs/remix-ui/theme-module/.babelrc b/libs/remix-ui/theme-module/.babelrc new file mode 100644 index 0000000000..ccae900be4 --- /dev/null +++ b/libs/remix-ui/theme-module/.babelrc @@ -0,0 +1,12 @@ +{ + "presets": [ + [ + "@nrwl/react/babel", + { + "runtime": "automatic", + "useBuiltIns": "usage" + } + ] + ], + "plugins": [] +} diff --git a/libs/remix-ui/theme-module/.eslintrc.json b/libs/remix-ui/theme-module/.eslintrc.json new file mode 100644 index 0000000000..50e59482cf --- /dev/null +++ b/libs/remix-ui/theme-module/.eslintrc.json @@ -0,0 +1,18 @@ +{ + "extends": ["plugin:@nrwl/nx/react", "../../../.eslintrc.json"], + "ignorePatterns": ["!**/*"], + "overrides": [ + { + "files": ["*.ts", "*.tsx", "*.js", "*.jsx"], + "rules": {} + }, + { + "files": ["*.ts", "*.tsx"], + "rules": {} + }, + { + "files": ["*.js", "*.jsx"], + "rules": {} + } + ] +} diff --git a/libs/remix-ui/theme-module/README.md b/libs/remix-ui/theme-module/README.md new file mode 100644 index 0000000000..51119a3b65 --- /dev/null +++ b/libs/remix-ui/theme-module/README.md @@ -0,0 +1,7 @@ +# remix-ui-theme-module + +This library was generated with [Nx](https://nx.dev). + +## Running unit tests + +Run `nx test remix-ui-theme-module` to execute the unit tests via [Jest](https://jestjs.io). diff --git a/libs/remix-ui/theme-module/src/index.ts b/libs/remix-ui/theme-module/src/index.ts new file mode 100644 index 0000000000..63469ca72e --- /dev/null +++ b/libs/remix-ui/theme-module/src/index.ts @@ -0,0 +1 @@ +export * from './lib/remix-ui-theme-module'; diff --git a/libs/remix-ui/theme-module/src/lib/remix-ui-theme-module.module.css b/libs/remix-ui/theme-module/src/lib/remix-ui-theme-module.module.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/libs/remix-ui/theme-module/src/lib/remix-ui-theme-module.tsx b/libs/remix-ui/theme-module/src/lib/remix-ui-theme-module.tsx new file mode 100644 index 0000000000..035d8a0917 --- /dev/null +++ b/libs/remix-ui/theme-module/src/lib/remix-ui-theme-module.tsx @@ -0,0 +1,14 @@ +import './remix-ui-theme-module.module.css'; + +/* eslint-disable-next-line */ +export interface RemixUiThemeModuleProps {} + +export function RemixUiThemeModule(props: RemixUiThemeModuleProps) { + return ( +
+

Welcome to remix-ui-theme-module!

+
+ ); +} + +export default RemixUiThemeModule; diff --git a/libs/remix-ui/theme-module/tsconfig.json b/libs/remix-ui/theme-module/tsconfig.json new file mode 100644 index 0000000000..8bd701c578 --- /dev/null +++ b/libs/remix-ui/theme-module/tsconfig.json @@ -0,0 +1,20 @@ +{ + "extends": "../../../tsconfig.base.json", + "compilerOptions": { + "jsx": "react-jsx", + "allowJs": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "forceConsistentCasingInFileNames": true, + "strict": true, + "noImplicitReturns": true, + "noFallthroughCasesInSwitch": true + }, + "files": [], + "include": [], + "references": [ + { + "path": "./tsconfig.lib.json" + } + ] +} diff --git a/libs/remix-ui/theme-module/tsconfig.lib.json b/libs/remix-ui/theme-module/tsconfig.lib.json new file mode 100644 index 0000000000..b560bc4dec --- /dev/null +++ b/libs/remix-ui/theme-module/tsconfig.lib.json @@ -0,0 +1,13 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "outDir": "../../../dist/out-tsc", + "types": ["node"] + }, + "files": [ + "../../../node_modules/@nrwl/react/typings/cssmodule.d.ts", + "../../../node_modules/@nrwl/react/typings/image.d.ts" + ], + "exclude": ["**/*.spec.ts", "**/*.spec.tsx"], + "include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"] +} diff --git a/nx.json b/nx.json index 270865ab5b..4b6417bc93 100644 --- a/nx.json +++ b/nx.json @@ -141,14 +141,9 @@ }, "remix-ui-tabs": { "tags": [] + }, + "remix-ui-theme-module": { + "tags": [] } - }, - "targetDependencies": { - "build": [ - { - "target": "build", - "projects": "dependencies" - } - ] } } diff --git a/package.json b/package.json index eee61160c4..f5b344ffee 100644 --- a/package.json +++ b/package.json @@ -188,6 +188,7 @@ "react-dom": "^17.0.2", "react-draggable": "^4.4.4", "react-tabs": "^3.2.2", + "regenerator-runtime": "0.13.7", "selenium": "^2.20.0", "signale": "^1.4.0", "string-similarity": "^4.0.4", diff --git a/tsconfig.base.json b/tsconfig.base.json index 2cdaeed319..a0aa90a641 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -70,7 +70,8 @@ "@remix-ui/app": ["libs/remix-ui/app/src/index.ts"], "@remix-ui/vertical-icons-panel": [ "libs/remix-ui/vertical-icons-panel/src/index.ts" - ] + ], + "@remix-ui/theme-module": ["libs/remix-ui/theme-module/src/index.ts"] } }, "exclude": ["node_modules", "tmp"] diff --git a/workspace.json b/workspace.json index cb8d3fc50c..44077681a3 100644 --- a/workspace.json +++ b/workspace.json @@ -1086,6 +1086,21 @@ } } }, + "remix-ui-theme-module": { + "root": "libs/remix-ui/theme-module", + "sourceRoot": "libs/remix-ui/theme-module/src", + "projectType": "library", + "architect": { + "lint": { + "builder": "@nrwl/linter:lint", + "options": { + "linter": "eslint", + "tsConfig": ["libs/remix-ui/vertical-icons-panel/tsconfig.lib.json"], + "exclude": ["**/node_modules/**", "!libs/remix-ui/vertical-icons-panel/**/*"] + } + } + } + }, "remix-ui-editor": { "root": "libs/remix-ui/editor", "sourceRoot": "libs/remix-ui/editor/src", @@ -1167,4 +1182,4 @@ } }, "defaultProject": "remix-ide" -} +} \ No newline at end of file