@bamachoub/core
v1.0.6
Published
Core library for bamachoubd apps
Downloads
26
Maintainers
Readme
Bamachoub Core Library
Includes assets, core functionality, required hooks and most used values for bamachoub web and mobile apps.
Updating package
How to test updated package locally
- Clone current repo to your pc
- Update the code or assets as you wish
- Run
npm link
to link @bamachoub/core to your npm locally - In your project dir run
npm link @bamachoub/core
to update package - Test changes but remember that these changes are local
- After each
npm install
in your source project you need to link again. (if you added @bamachoub/core as depencency) - To publish npm package read next section
How to publish changes to package
- Make required changes to the repo
- Change package version following semver rules mentioned in next section
- Make sure you are added as a developer to bamachoub org in npm website
- Run
npm login
then login with your npm account - Run
npm publish --access public
- Now you can see changes here
Semantic versioning in npm
The version value is a combination of 3 digits separated by dot operator. Let’s say the version is a.b.c
First value (a in a.b.c) specifies the major version of the package — It means this version has Major code changes and it might contain breaking API changes.
Second value (b in a.b.c) specifies the minor version which contains minor changes but will not contain breaking API changes.
Third value (c in a.b.c) specifies the patch version which usually contains bug fixes.
Lets consider you just added a readme.md file which is not an API change so you can increment the patch version which is the last digit by 1.
So change the version inside package.json file from 1.0.0 to 1.0.1 and run the npm publish command again.
Values
Exists of colors, enums, layout values, quantities and share strings.