Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add React integration #6

Draft
wants to merge 1 commit into
base: add-angular-docs
Choose a base branch
from
Draft

Add React integration #6

wants to merge 1 commit into from

Conversation

IKatsuba
Copy link
Owner

@IKatsuba IKatsuba commented Sep 20, 2024

Add React integration to the packages directory similar to Angular and Nx.

  • New React Package:

    • Add packages/react directory with necessary files and configurations.
    • Add packages/react/.eslintrc.json for ESLint configuration.
    • Add packages/react/package.json with React-specific dependencies and metadata.
    • Add packages/react/project.json for Nx project configuration.
    • Add packages/react/README.md with package description and usage instructions.
    • Add packages/react/src/index.ts to export modules.
    • Add packages/react/src/lib/create-react-project.ts to create a React project.
    • Add packages/react/src/lib/react-tree-file-system.ts to implement a file system for React.
    • Add packages/react/src/lib/component/get-components.ts and packages/react/src/lib/component/index.ts for component-related functions.
    • Add packages/react/src/lib/hooks/get-hooks.ts and packages/react/src/lib/hooks/index.ts for hook-related functions.
    • Add packages/react/tsconfig.json, packages/react/tsconfig.lib.json, and packages/react/tsconfig.spec.json for TypeScript configuration.
    • Add packages/react/vite.config.ts for Vite configuration.
  • Configuration Updates:

    • Update nx.json to include React plugin configuration.
    • Update package.json to add @nx/react to devDependencies.

For more details, open the Copilot Workspace session.

Add React integration to the `packages` directory similar to Angular and Nx.

* **New React Package**:
  - Add `packages/react` directory with necessary files and configurations.
  - Add `packages/react/.eslintrc.json` for ESLint configuration.
  - Add `packages/react/package.json` with React-specific dependencies and metadata.
  - Add `packages/react/project.json` for Nx project configuration.
  - Add `packages/react/README.md` with package description and usage instructions.
  - Add `packages/react/src/index.ts` to export modules.
  - Add `packages/react/src/lib/create-react-project.ts` to create a React project.
  - Add `packages/react/src/lib/react-tree-file-system.ts` to implement a file system for React.
  - Add `packages/react/src/lib/component/get-components.ts` and `packages/react/src/lib/component/index.ts` for component-related functions.
  - Add `packages/react/src/lib/hooks/get-hooks.ts` and `packages/react/src/lib/hooks/index.ts` for hook-related functions.
  - Add `packages/react/tsconfig.json`, `packages/react/tsconfig.lib.json`, and `packages/react/tsconfig.spec.json` for TypeScript configuration.
  - Add `packages/react/vite.config.ts` for Vite configuration.

* **Configuration Updates**:
  - Update `nx.json` to include React plugin configuration.
  - Update `package.json` to add `@nx/react` to `devDependencies`.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/IKatsuba/mutates?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant