You can debug unit tests with VSCode following the steps: (Based on article)
- Install VsCode
- Install debugger-for-chrome extension.
- Create launch.json file on ~/.vscode folder with follow config:
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "attach",
"name": "Attach Karma Chrome",
"address": "localhost",
"port": 9333,
"sourceMaps": true,
"pathMapping": {
"/": "${workspaceRoot}",
"/base/": "${workspaceRoot}/"
}
}
]
}
- On terminal, run test with command:
yarn test:debug
- Open vscode
- Set breakpoint on code
- Press F5 to run Debug and wait to stop on breakpoint
Send pull request develop
to master
on github repository and merge it.
https://github.com/summernote/summernote/compare/master...develop
Build dist files and push to master
# change branch
git checkout master
# fetch all changes
git pull
# Bump version in package.json
# build dist files and binary(.zip) for release post
yarn build
# Commit and add tag for new version
git commit -a -m "Update dist files"
git tag -a "<new-version>"
# Push new dist files and tags to remote repository.
git push origin --tags
Post release note with new tag version on github
https://github.com/summernote/summernote/releases/new
Publish on npm registry
yarn publish
Update summernote version in _config.yml
.
Request maintainers of each connector to update package information.