forked from Leaflet/Leaflet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
come back to the old publishing approach with improvements
- Loading branch information
Showing
3 changed files
with
24 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,26 @@ | ||
#!/bin/bash | ||
|
||
npm update | ||
|
||
VERSION=$(node --eval "console.log(require('./package.json').version);") | ||
|
||
# # create build, zip, bower and component artifacts | ||
npm run build | ||
npm test || exit 1 | ||
|
||
cd dist && zip -x .DS_Store -r leaflet.zip . && cd .. | ||
git checkout -b build | ||
|
||
npm run build | ||
git add dist/leaflet-src.js dist/leaflet.js dist/leaflet-src.map -f | ||
|
||
# cp build/*.json ./ | ||
copyfiles -u 1 build/*.json ./ | ||
tin -v $VERSION | ||
git add component.json bower.json -f | ||
|
||
git commit -m "v$VERSION" | ||
|
||
git tag v$VERSION -f | ||
git push --tags -f | ||
|
||
npm publish --tag beta | ||
|
||
git checkout master | ||
git branch -D build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters