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

create-es-module

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-es-module

Helper to create es module

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

create-es-module

Helper to create es module

Creating a module

Yarn:

yarn create es-module my-module

NPM:

npm init es-module my-module

NPX:

npx create-es-module my-module

It will create my-module folder with the default structure.

Installing added dependencies

you need to install added dependencies manually

cd my-module
npm install

or

cd my-module
yarn install 

--enable-pnp and --offline can be used by yarn.

Build

yarn build or npm run build Builds the module for production to the build folder.

Test

yarn test or npm test

Publish

It will publish the module to npm. By default files in build folder is whitelisted to be included in the package. For more information about list of files in the package visit https://docs.npmjs.com/files/package.json#files.

Add flow

You need to add flow-bin as dev dependency and run init command.

yarn add flow-bin --dev
npx flow init

Add react and use JSX

You need to add react as dependency

yarn add react

What’s Included?

  • React, JSX, ES6 and Flow syntax support.
  • Unit test
  • module build and cjs build

TODO

  • Add optional prettier
  • Add optional module-grouping-cli
  • Add optional eslint

Credits

Credit to create-react-app.

License

MIT

Keywords

FAQs

Package last updated on 05 Feb 2019

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