basic react component implementatino is sep project #59

Merged
glitch4347 merged 3 commits from better-react-component-#58 into main 11 months ago
Owner

Changes

  • add workspaces with react -- not really used correctly, but does the work
  • React project in react folder
    • webpack project with umd target
    • move all core
  • change for copy in webpack.prod.conf.js works: only index.js and index.d.ts
  • build script
    • try to build react project first, then the root
    • ... also remove dev build from prod build
  • don't exclude "exclude": ["*.tsx"] in tsconfig -- not necessary

Usage

Replace in client core

import { ChartwerkLinePod } from '@chartwerk/line-pod/dist/react/ChartwerkLinePod'; 

to

import { ChartwerkLinePod } from '@chartwerk/line-pod/react';
## Changes * add `workspaces` with `react` -- not really used correctly, but does the work * React project in `react folder` * webpack project with umd target * move all core * change for copy in `webpack.prod.conf.js` works: only `index.js` and `index.d.ts` * build script * try to build react project first, then the root * ... also remove `dev` build from `prod` build * don't exclude `"exclude": ["*.tsx"]` in `tsconfig` -- not necessary ## Usage Replace in client core ``` import { ChartwerkLinePod } from '@chartwerk/line-pod/dist/react/ChartwerkLinePod'; ``` to ``` import { ChartwerkLinePod } from '@chartwerk/line-pod/react'; ```
glitch4347 added 1 commit 11 months ago
glitch4347 added 1 commit 11 months ago
glitch4347 added 1 commit 11 months ago
glitch4347 merged commit dc89f6cbb9 into main 11 months ago
The pull request has been merged as dc89f6cbb9.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This pull request currently doesn't have any dependencies.

Loading…
There is no content yet.