-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add publish script for component and bower
This reverts commit 5543a16.
- Loading branch information
1 parent
cf68863
commit ce4b77f
Showing
5 changed files
with
80 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,5 @@ coverage/ | |
*.js.html | ||
index.html | ||
.mailmap | ||
bower.json | ||
component.json |
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"name": "leaflet", | ||
"description": "JavaScript library for mobile-friendly interactive maps", | ||
"main": [ | ||
"dist/leaflet.js", | ||
"dist/leaflet.css", | ||
"dist/leaflet-src.js", | ||
"dist/images/layers-2x.png", | ||
"dist/images/layers.png", | ||
"dist/images/marker-icon-2x.png", | ||
"dist/images/marker-icon.png", | ||
"dist/images/marker-shadow.png" | ||
], | ||
"ignore": [ | ||
".*", | ||
"CHANGELOG.json", | ||
"FAQ.md", | ||
"debug", | ||
"spec", | ||
"src", | ||
"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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "leaflet", | ||
"description": "JavaScript library for mobile-friendly interactive maps", | ||
"scripts": [ | ||
"dist/leaflet.js", | ||
"dist/leaflet-src.js" | ||
], | ||
"images":[ | ||
"dist/images/layers-2x.png", | ||
"dist/images/layers.png", | ||
"dist/images/marker-icon-2x.png", | ||
"dist/images/marker-icon.png", | ||
"dist/images/marker-shadow.png" | ||
], | ||
"styles":[ | ||
"dist/leaflet.css" | ||
], | ||
"main": "dist/leaflet-src.js" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
#make sure deps are up to date | ||
rm -r node_modules | ||
npm install | ||
|
||
# get current version | ||
VERSION=$(node --eval "console.log(require('./package.json').version);") | ||
# Build | ||
git checkout -b build | ||
npm test || exit 1 | ||
npm run prepublish | ||
git add dist/leaflet-src.js dist/leaflet.js -f | ||
|
||
# create the bower and component files | ||
copyfiles -u 1 build/*.json ./ | ||
tin -v $VERSION | ||
git add component.json bower.json -f | ||
|
||
git commit -m "build $VERSION" | ||
|
||
# Tag and push | ||
echo git tag $VERSION | ||
# git push --tags git@github.com:leaflet/leaflet.git $VERSION | ||
|
||
# # # Publish JS modules | ||
# npm publish | ||
|
||
# # # Cleanup | ||
# 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