Release script needed to release the PODs to NPM. Make sure to only release the /lib
folder to NPM!
npm install @axa-ch/generic-release --save-dev
develop
. ⚡develop
the default branch ⚡ (https://help.github.com/articles/setting-the-default-branch/).master
and develop
from direct push if needed..npmignore
make sure to add all development folders like src
or stack
. Remember, npm publish will ignore the .gitignore
if a .npmignore
file is in the root directory ⚡@axa-ch/your-awesome-project
⚡0.0.0
if you start in BETA. ⚡ This setting also have to be applied into the package.json"build": "echo \"Placeholder here\"",
axa-ch
npm orgnpm login
npm publish --access public
node_modules/.bin/generic-release
in your cli in the root directory of your project. Of course you can also create a npm job for it like so:
"scripts": {
"release": "generic-release lib",
}
Don't forget to add your folders containing your lib exports like so: generic-release lib dist whatever
!
:grey_exclamation: For apps created with create-pod-app, use only: "release": "generic-release"
.
Have fun in releasing!
Config example of the axa-ch-pod:
{
"name": "@axa-ch/axa-ch-pod",
"version": "0.0.0",
"description": "AXA CH pod",
"scripts": {
"release": "generic-release lib"
"build": "echo \"Placeholder here\""
},
"repository": {
"type": "git",
"url": "git+https://github.com/axa-ch/axa-ch-pod.git"
},
"author": "Luca Mele",
"license": "SEE LICENSE IN README.md",
"bugs": {
"url": "https://github.com/axa-ch/axa-ch-pod/issues"
},
"homepage": "https://github.com/axa-ch/axa-ch-pod#readme",
"devDependencies": {
"@axa-ch/generic-release": "^1.0.1"
},
"dependencies": {}
}