1.0.2 • Published 2 years ago

css-truncate-text v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

tsmodule component library

This is a tsmodule component library developed and previewed with Next.js.

Develop

To start the Next server and develop your components, use next dev or the yarn dev script:

yarn dev
# calls `next dev`

Export and publish

To export your component library, use tsmodule build or the yarn export script:

yarn export
# calls `tsmodule build`

You can then publish to NPM:

yarn publish

Importing from your component library

To reuse your components:

  1. Import your component styles via import "my-library/styles".
  2. Import your component and render it via import { MyComponent } from "my-library/MyComponent.

Footnotes

Styles are exported in dist/, and are also bundled to dist/styles.css from the entrypoint given in the style package.json.

The default behavior is to export all component styles, i.e. src/styles/components/index.css ➞ dist/styles.css. This can be overridden with tsmodule's --styles flag, i.e. tsmodule build --styles src/styles/index.css (which would include all styles in emitted bundle).