This is a test package for detemining feasibility of injecting styled components via NPM
- the
copyfilespackage is required to build this package for publishing updates. Please install globally:npm i -g copyfiles
- All components should be imported and exported from the
src/index.tsfile. - The
src/index.tsfile should be the entry point for the package. - After making changes, run
npm run buildto compile the TypeScript files into JavaScript. - After building, prepare the package for deployment by running
npm pack. - The package will be built and a
.tgzfile will be created in the root directory. - This
.tgzfile can be installed in other projects for testing by runningnpm i <path-to-tgz-file>. - After testing, the package can be published to NPM by running
npm publish.
- NPM
npm i @hypercolor/component-test
- Yarn
yarn add @hypercolor/component-test
- TypeScript
- React