initial setup for moving terminal to react

pull/1342/head
tizah 3 years ago
parent bf29aec305
commit 2984a3b048
  1. 4
      libs/remix-ui/terminal/.babelrc
  2. 19
      libs/remix-ui/terminal/.eslintrc
  3. 7
      libs/remix-ui/terminal/README.md
  4. 4
      libs/remix-ui/terminal/package.json
  5. 1
      libs/remix-ui/terminal/src/index.ts
  6. 0
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.css
  7. 16
      libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx
  8. 16
      libs/remix-ui/terminal/tsconfig.json
  9. 13
      libs/remix-ui/terminal/tsconfig.lib.json
  10. 3
      nx.json
  11. 3
      tsconfig.json
  12. 35
      workspace.json

@ -0,0 +1,4 @@
{
"presets": ["@nrwl/react/babel"],
"plugins": []
}

@ -0,0 +1,19 @@
{
"env": {
"browser": true,
"es6": true
},
"extends": "../../../.eslintrc",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 11,
"sourceType": "module"
},
"rules": {
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error"
}
}

@ -0,0 +1,7 @@
# remix-ui-terminal
This library was generated with [Nx](https://nx.dev).
## Running unit tests
Run `nx test remix-ui-terminal` to execute the unit tests via [Jest](https://jestjs.io).

@ -0,0 +1,4 @@
{
"name": "remix-ui-terminal",
"version": "0.0.1"
}

@ -0,0 +1 @@
export * from './lib/remix-ui-terminal';

@ -0,0 +1,16 @@
import React from 'react'
import './remix-ui-terminal.css'
/* eslint-disable-next-line */
export interface RemixUiTerminalProps {}
export const RemixUiTerminal = (props: RemixUiTerminalProps) => {
return (
<div>
<h1>Welcome to remix-ui-terminal!</h1>
</div>
)
}
export default RemixUiTerminal;

@ -0,0 +1,16 @@
{
"extends": "../../../tsconfig.json",
"compilerOptions": {
"jsx": "react",
"allowJs": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true
},
"files": [],
"include": [],
"references": [
{
"path": "./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"]
}

@ -101,6 +101,9 @@
}, },
"remix-ui-checkbox": { "remix-ui-checkbox": {
"tags": [] "tags": []
},
"remix-ui-terminal": {
"tags": []
} }
} }
} }

@ -40,7 +40,8 @@
"@remix-ui/file-explorer": ["libs/remix-ui/file-explorer/src/index.ts"], "@remix-ui/file-explorer": ["libs/remix-ui/file-explorer/src/index.ts"],
"@remix-ui/workspace": ["libs/remix-ui/workspace/src/index.ts"], "@remix-ui/workspace": ["libs/remix-ui/workspace/src/index.ts"],
"@remix-ui/static-analyser": ["libs/remix-ui/static-analyser/src/index.ts"], "@remix-ui/static-analyser": ["libs/remix-ui/static-analyser/src/index.ts"],
"@remix-ui/checkbox": ["libs/remix-ui/checkbox/src/index.ts"] "@remix-ui/checkbox": ["libs/remix-ui/checkbox/src/index.ts"],
"@remix-ui/terminal": ["libs/remix-ui/terminal/src/index.ts"]
} }
}, },
"exclude": ["node_modules", "tmp"] "exclude": ["node_modules", "tmp"]

@ -760,6 +760,41 @@
} }
} }
} }
},
"remix-ui-terminal": {
"root": "libs/remix-ui/terminal",
"sourceRoot": "libs/remix-ui/terminal/src",
"projectType": "library",
"schematics": {},
"architect": {
"lint": {
"builder": "@nrwl/linter:lint",
"options": {
"linter": "eslint",
"tsConfig": ["libs/remix-ui/terminal/tsconfig.lib.json"],
"exclude": ["**/node_modules/**", "!libs/remix-ui/terminal/**/*"]
}
},
"build": {
"builder": "@nrwl/web:package",
"options": {
"outputPath": "dist/libs/remix-ui/terminal",
"tsConfig": "libs/remix-ui/terminal/tsconfig.lib.json",
"project": "libs/remix-ui/terminal/package.json",
"entryFile": "libs/remix-ui/terminal/src/index.ts",
"external": ["react", "react-dom"],
"babelConfig": "@nrwl/react/plugins/bundle-babel",
"rollupConfig": "@nrwl/react/plugins/bundle-rollup",
"assets": [
{
"glob": "README.md",
"input": ".",
"output": "."
}
]
}
}
}
} }
}, },
"cli": { "cli": {

Loading…
Cancel
Save