create single lib

Usage no npm install needed!

<script type="module">
  import 2snailCreateLib from 'https://cdn.skypack.dev/@2snail/create-lib';


Create Lib

Create single ts lib, test with jest, and publish with npm.


  1. Create
mkdir <libName>
cd <libName>
npm create @2snail/lib
-- or --
yarn create @2snail/lib
  1. Install
npm i
-- or --
yarn install
  1. Test
npm test
npm run test:watch
-- or --
yarn test
yarn test:watch
  1. Build
npm run build
-- or --
yarn build
  1. Publish
npm run publish
-- or --
yarn publish