0.0.0 • Published 1 year ago

@katenpm2021/core v0.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

README

  • Purpose: Build React component lib
  • Expectation:
    • import component directly, for example import { Button } "@acme/core"
    • import from component, for example import { Button } from "@acme/core/button"

Roadmap

  • Build script done
  • File exports done
  • Unit tests done
  • Apply changeset to CI/CD
  • Publish to npm registry

Unresolved issues

  • issue 1:

    • symptom: importing using this way import { Button } from "@acme/core/button" has typescript warning as `Cannot find module '@acme/core/button' or its corresponding type declarations.ts(2307)
    • impact: it doesn't matter as our code built by tsup supports tree shaking, so even if user imports the button via import Button "@acme/core/button", the final file doesn't contain all other not used components
    • attempted solution: declare types file for each exports
    • conclusion: ignore, and there is no need to declare exports for button, input, etc.
  • use client banner with compile target as es5

Knowledge Base

0.0.0

1 year ago