diff --git a/libs/remix-ui/drag-n-drop/.babelrc b/libs/remix-ui/drag-n-drop/.babelrc index 938d07c327..09d67939cc 100644 --- a/libs/remix-ui/drag-n-drop/.babelrc +++ b/libs/remix-ui/drag-n-drop/.babelrc @@ -1,16 +1,4 @@ { - "presets": [ - [ - "@nrwl/react/babel", { - "runtime": "automatic", - "useBuiltIns": "usage" - - } - ] - ], - "plugins": [ - - - - ] + "presets": ["@nrwl/react/babel"], + "plugins": [] } diff --git a/libs/remix-ui/drag-n-drop/.eslintrc.json b/libs/remix-ui/drag-n-drop/.eslintrc.json index ac865be105..0d43d424e3 100644 --- a/libs/remix-ui/drag-n-drop/.eslintrc.json +++ b/libs/remix-ui/drag-n-drop/.eslintrc.json @@ -1,34 +1,19 @@ { - "extends": [ - "plugin:@nrwl/nx/react", - "../../../.eslintrc.json" - ], - "ignorePatterns": [ - "!**/*" - ], - "overrides": [ - { - "files": [ - "*.ts", - "*.tsx", - "*.js", - "*.jsx" - ], - "rules": {} - }, - { - "files": [ - "*.ts", - "*.tsx" - ], - "rules": {} - }, - { - "files": [ - "*.js", - "*.jsx" - ], - "rules": {} - } - ] -} \ No newline at end of file + "env": { + "browser": true, + "es6": true + }, + "extends": "../../../.eslintrc.json", + "globals": { + "Atomics": "readonly", + "SharedArrayBuffer": "readonly" + }, + "parserOptions": { + "ecmaVersion": 11, + "sourceType": "module" + }, + "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": "error" + } +} diff --git a/libs/remix-ui/drag-n-drop/package.json b/libs/remix-ui/drag-n-drop/package.json deleted file mode 100644 index 8813962570..0000000000 --- a/libs/remix-ui/drag-n-drop/package.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "name": "@remix-ui/drag-n-drop", - "version": "0.0.1" -} \ No newline at end of file diff --git a/libs/remix-ui/drag-n-drop/src/lib/remix-ui-drag-n-drop.module.css b/libs/remix-ui/drag-n-drop/src/lib/remix-ui-drag-n-drop.module.css deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/libs/remix-ui/drag-n-drop/src/lib/remix-ui-drag-n-drop.spec.tsx b/libs/remix-ui/drag-n-drop/src/lib/remix-ui-drag-n-drop.spec.tsx deleted file mode 100644 index 04dc71fa14..0000000000 --- a/libs/remix-ui/drag-n-drop/src/lib/remix-ui-drag-n-drop.spec.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { render } from '@testing-library/react'; - -import RemixUiDragNDrop from './remix-ui-drag-n-drop'; - -describe('RemixUiDragNDrop', () => { - it('should render successfully', () => { - const { baseElement } = render(< RemixUiDragNDrop />); - expect(baseElement).toBeTruthy(); - }); -}); diff --git a/libs/remix-ui/workspace/src/lib/types/index.ts b/libs/remix-ui/workspace/src/lib/types/index.ts index b709dc5e58..bdb308587b 100644 --- a/libs/remix-ui/workspace/src/lib/types/index.ts +++ b/libs/remix-ui/workspace/src/lib/types/index.ts @@ -14,7 +14,7 @@ export interface JSONStandardInput { }; } export type MenuItems = action[] -export type WorkspaceTemplate = 'gist-template' | 'code-template' | 'remixDefault' | 'blank' | 'erc20' +export type WorkspaceTemplate = 'gist-template' | 'code-template' | 'remixDefault' | 'blank' | 'ozerc20' | 'zeroxErc20' | 'ozerc721' export interface WorkspaceProps { plugin: { setWorkspace: ({ name: string, isLocalhost: boolean }, setEvent: boolean) => void, diff --git a/nx.json b/nx.json index db4114c205..c38fc5aad7 100644 --- a/nx.json +++ b/nx.json @@ -208,5 +208,14 @@ "remix-ui-drag-n-drop": { "tags": [] } + }, + "targetDependencies": { + "build": [ + { + "target": "build", + "projects": "dependencies" + } + ] } + } \ No newline at end of file diff --git a/tsconfig.base.json b/tsconfig.base.json index 9174b23427..63f825d949 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -89,7 +89,8 @@ "libs/remix-ui/permission-handler/src/index.ts" ], "@remix-ui/file-decorators": ["libs/remix-ui/file-decorators/src/index.ts"], - "@remix-ui/tooltip-popup": ["libs/remix-ui/tooltip-popup/src/index.ts"] + "@remix-ui/tooltip-popup": ["libs/remix-ui/tooltip-popup/src/index.ts"], + "@remix-ui/drag-n-drop": ["libs/remix-ui/drag-n-drop/src/index.ts"] } }, "exclude": ["node_modules", "tmp"]