Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

expo-library

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-library

> CLI for creating reusable, modern Expo libraries using [watchwoman](http://npmjs.com/package/watchwoman) and expo init.

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

expo-library

CLI for creating reusable, modern Expo libraries using watchwoman and expo init.

NPM Build Status JavaScript Style Guide

Install globally

This package requires node >= 10. before install expo-library install watchwoman like this

npm i -g watchwoman

then install expo-library

npm install -g expo-library

Creating a New Module

expo-library

Answer some basic prompts about your module, and then the CLI will perform the following steps:

  • copy over the template
  • install dependencies via yarn or npm
  • link packages together for local development
  • initialize local git repo

Development

Local development is broken into two parts (ideally using two tabs).

First, run yarn start to watch your yourpackage module and automatically add into exmaple/node_modules/yourpackage whenever you make changes.

npm start # runs watcher of watchwoman

The second part will be running the example/ create-expo-app that's linked to the local version of your module.

# (in another tab)
cd example
npm start # runs your expo app bundler

Now, anytime you make a change to your library in src/ or to the example app's example/src, create-expo-app will live-reload your local dev server so you can iterate on your component in real-time.

Publishing to npm
npm publish

This builds commonjs and es versions of your module to dist/ and then publishes your module to npm.

Make sure that any npm modules you want as peer dependencies are properly marked as peerDependencies in package.json. The rollup config will automatically recognize them as peers and not try to bundle them in your module.

Notice

I am looking for volunteers who would like to become active maintainers on the project. If you are interested, please shoot me a note.

Keywords

FAQs

Package last updated on 08 Jun 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc