Skip to content

ajankowy035/jankowy-stories

Repository files navigation

jankowy-stories

Here is a repo used in article about Well-architectered npm package with expo, Stroybook, Typescript and jest for building expo typescript npm package integrated with jest and storybook.

Dependencies installation:

npm i

Run storybook / expo app

To run as an expo project you need to change 'main' field in 'package.json' from:

"main": "./package/index.js",

to:

"main": "node_modules/expo/AppEntry.js",

After that you can run Storybook UI by running command:

npm start

Build package

For package you need an entry point in package.json file

"main": "./package/index.js",

Next you should increase the version in the 'version' field in package.json:

"version": 1.1.0 ==> "version": 1.1.1

You can do this manually or with running command with clean git directory:

npm version [patch|minor|patch]

Next you can build package running following command:

npm run build

To check if everything is built well and package will contain proper files structure, you can imitate publish process with command:

npm publish --dry-run

Publish package

To publish the package, you need to be logged in npm on your machine. You can accomplish it by running:

npm login

Now you should be able to publish the package:

npm publish

About

Here is a repo used in article for building expo typescript npm package integrated with jest and storybook

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published