Connect-Client - Module Framework and Core Modules
||Production ready output (es2015/es5)|
||Clean .lib (rm -rf ./dist)|
||Run unit tests|
||Check supported browser compatibility|
||Generate coverage report (results are stored in coverage/)|
Make sure you have typescript, typings and webpack installed globally.
npm install -g typescript typings webpack
npm install followed by
typings install and you should be good to go.
npm run build to clean, lint, compile and test.
Before raising a PR
- Make sure you have a green build on your branch
- Check your code is well covered - we aim for > 90% coverage where possible. To view coverage report use
npm run coverageand browse the coverage dir.
- Include changes to package-lock.json
import ... from '@atlassian/connect-module-core'
import ... from '@atlassian/connect-module-core/dist/es2015'
Manually bump package.json
npm publish to publish externally
then comment out .npmrc and
npm publish again to publish internally (for the Bamboo build)