0.0.53 • Published 11 months ago
@shyamsfo/the-sink v0.0.53
What is this
Published a hello world module on npm following this:
https://whitep4nth3r.com/blog/how-to-build-test-and-release-node-module-es6
Installation and usage
First run:
yarn add @shyamsfo/the-sink --save
Then, in your js file:
import the_sink from '@shyamsfo/the-sink';
the_sink.now()
the_sink.get_name()
Development Setup
First clone the repo. Then run:
yarn install
Development
- Run
yarn dev
to watch for changes and compile continously yarn clean
to clean resourcesyarn types
to generate typesyarn build
to do a build.yarn test
to run tests
Once development is complete we are ready to publish. See below.
Publish
- First commit all the code using
git add .
andgit commit -m "Commit message"
- Then run
yarn publish
- This will ask for new version number
- package.json will be updated with new version number and a new commit will be done
prepublish
will be run that will do the clean build- package will be published
- git push (including tags) will be done.
- Verify package has been published at https://www.npmjs.com/package/@shyamsfo/the-sink
Setup
How to start a new npm package:
npm init --scope=@shyamsfo
<Development of all code>
npm login
npm publish --access public
Local testing from another node project
# in this directory
yarn link
In the client:
yarn link @shyamsfo/the-sink
0.0.53
11 months ago
0.0.46
1 year ago
0.0.45
2 years ago
0.0.42
2 years ago
0.0.43
2 years ago
0.0.44
2 years ago
0.0.40
2 years ago
0.0.41
2 years ago
0.0.37
2 years ago
0.0.39
2 years ago
0.0.31
2 years ago
0.0.32
2 years ago
0.0.33
2 years ago
0.0.36
2 years ago
0.0.30
2 years ago
0.0.29
2 years ago
0.0.28
2 years ago
0.0.27
2 years ago
0.0.26
2 years ago
0.0.24
2 years ago
0.0.23
2 years ago
0.0.22
2 years ago
0.0.20
2 years ago
0.0.19
2 years ago
0.0.18
2 years ago
0.0.17
2 years ago
0.0.16
2 years ago
0.0.15
2 years ago
0.0.14
2 years ago
0.0.13
2 years ago
0.0.12
2 years ago
0.0.11
2 years ago
0.0.10
2 years ago
0.0.9
2 years ago
0.0.8
2 years ago
0.0.7
2 years ago
0.0.6
2 years ago
0.0.5
2 years ago
0.0.4
2 years ago