From 9ae7735112756fca11c076c682bce5aba8842d2f Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Mon, 11 Oct 2021 11:46:09 +0100 Subject: [PATCH] create vertical icons panel react lib --- .eslintrc.json | 35 ++++++ libs/remix-ui/vertical-icons-panel/.babelrc | 2 +- .../remix-ui-vertical-icons-panel.module.css | 0 nx.json | 8 -- workspace.json | 103 ++++++++++++++++-- 5 files changed, 129 insertions(+), 19 deletions(-) create mode 100644 .eslintrc.json create mode 100644 libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.module.css 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/vertical-icons-panel/.babelrc b/libs/remix-ui/vertical-icons-panel/.babelrc index 64a3748691..09d67939cc 100644 --- a/libs/remix-ui/vertical-icons-panel/.babelrc +++ b/libs/remix-ui/vertical-icons-panel/.babelrc @@ -1,4 +1,4 @@ { "presets": ["@nrwl/react/babel"], "plugins": [] -} \ No newline at end of file +} diff --git a/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.module.css b/libs/remix-ui/vertical-icons-panel/src/lib/remix-ui-vertical-icons-panel.module.css new file mode 100644 index 0000000000..e69de29bb2 diff --git a/nx.json b/nx.json index fd90c35f84..aa46ad3fc7 100644 --- a/nx.json +++ b/nx.json @@ -139,13 +139,5 @@ "remix-ui-tabs": { "tags": [] } - }, - "targetDependencies": { - "build": [ - { - "target": "build", - "projects": "dependencies" - } - ] } } diff --git a/workspace.json b/workspace.json index 59b9264306..c50f469aab 100644 --- a/workspace.json +++ b/workspace.json @@ -1,5 +1,71 @@ { "version": 1, + "cli": { + "defaultCollection": "@nrwl/react" + }, + "defaultProject": "remix-ide", + "schematics": { + "@nrwl/workspace": { + "library": { + "linter": "eslint" + } + }, + "@nrwl/cypress": { + "cypress-project": { + "linter": "eslint" + } + }, + "@nrwl/react": { + "application": { + "style": "css", + "linter": "eslint", + "babel": true + }, + "component": { + "style": "css" + }, + "library": { + "style": "css", + "linter": "eslint" + } + }, + "@nrwl/next": { + "application": { + "linter": "eslint" + } + }, + "@nrwl/web": { + "application": { + "linter": "eslint" + } + }, + "@nrwl/node": { + "application": { + "linter": "eslint" + }, + "library": { + "linter": "eslint" + } + }, + "@nrwl/nx-plugin": { + "plugin": { + "linter": "eslint" + } + }, + "@nrwl/nest": { + "application": { + "linter": "eslint" + } + }, + "@nrwl/express": { + "application": { + "linter": "eslint" + }, + "library": { + "linter": "eslint" + } + } + }, "projects": { "remix-ide": { "root": "apps/remix-ide", @@ -1179,19 +1245,36 @@ "linter": "eslint" } }, - "@nrwl/nest": { - "application": { - "linter": "eslint" + "@remix-ui-verticaliconspanel": { + "root": "libs/@remix-ui/verticaliconspanel", + "sourceRoot": "libs/@remix-ui/verticaliconspanel/src", + "projectType": "library", + "architect": { + "lint": { + "builder": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": [ + "libs/@remix-ui/verticaliconspanel/**/*.{ts,tsx,js,jsx}" + ] + } + } } }, - "@nrwl/express": { - "application": { - "linter": "eslint" - }, - "library": { - "linter": "eslint" + "remix-ui-vertical-icons-panel": { + "root": "libs/remix-ui/vertical-icons-panel", + "sourceRoot": "libs/remix-ui/vertical-icons-panel/src", + "projectType": "library", + "architect": { + "lint": { + "builder": "@nrwl/linter:eslint", + "options": { + "lintFilePatterns": [ + "libs/remix-ui/vertical-icons-panel/**/*.{ts,tsx,js,jsx}" + ] + } + } } } }, "defaultProject": "remix-ide" -} \ No newline at end of file +}