-
Notifications
You must be signed in to change notification settings - Fork 19
Exclude build artifacts from package via gitignore #7
Comments
@kwasi Have you configured using tsdx as template for this repo? It is zero config like create-react-app, but for typescript library. Issues like this one and a lot more are solved out of box by it. The issue you mentioned of different tsconfig.json causing a problem is actually caused by https://github.com/kubeflow/frontend/blob/master/index.d.ts. Because usually when a library is built, it should build both compiled js bundles and compiled typings in Above is also solved in tsdx too. It has three templates:
I was a fan of storybook, but haven't been maintaining a component library for a while. I think it's worth a try, so I recommend you set it up with typescript + react + storybook template, and it's up-to-you when to use more about storybook. |
@Bobgy Thanks, we're not using it here, but that looks like a good library. I'll give it a closer look. |
Background
As of now I haven't gotten kubeflow/frontend to build successfully in both kubeflow/metadata and kubeflow/pipelines without running into conflicts with the way they both enforce TS config and style rules.
kubeflow/pipelines uses react-scripts-ts
kubeflow/frontend uses reacts-scripts vanilla
These are the ts configs:
https://github.com/kubeflow/metadata/blob/master/frontend/tsconfig.json
https://github.com/kubeflow/pipelines/blob/master/frontend/tsconfig.json
These config files are enforced by react-scripts-ts:
https://github.com/kubeflow/pipelines/blob/master/frontend/tsconfig.prod.json
https://github.com/kubeflow/pipelines/blob/master/frontend/tsconfig.test.json
Problem
This repo includes checked in ES5 code and points instead of compiling as a postinstall step.
Workaound
NOTE: You have to run
npm build
after making changes in order for the changes to be reflected in dependent repos.npm run build:watch
will allow changes to be reflected during development.Fix Tasks:
npm build
aspostinstall
build/
to.gitignore
and remove build artifcatsThe text was updated successfully, but these errors were encountered: