From 01270b80dc2c951d89938ef9f066c9ca0e732add Mon Sep 17 00:00:00 2001 From: thomasvanlankveld Date: Tue, 14 Apr 2015 14:47:03 +0200 Subject: [PATCH 1/3] Added meteor support --- meteor/README.md | 1 + meteor/package.js | 28 ++++++++++++++++++++++++++++ meteor/publish.sh | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 69 insertions(+) create mode 100644 meteor/README.md create mode 100644 meteor/package.js create mode 100644 meteor/publish.sh diff --git a/meteor/README.md b/meteor/README.md new file mode 100644 index 0000000..c911f74 --- /dev/null +++ b/meteor/README.md @@ -0,0 +1 @@ +Packaging Geo for Meteor.js, the [most popular full-stack JavaScript framework](https://github.com/search?o=desc&q=javascript+framework&ref=searchresults&s=stars&type=Repositories&utf8=%E2%9C%93) on GitHub. \ No newline at end of file diff --git a/meteor/package.js b/meteor/package.js new file mode 100644 index 0000000..70fcc28 --- /dev/null +++ b/meteor/package.js @@ -0,0 +1,28 @@ +// package metadata file for Meteor.js + +var packageName = 'geobootstrap:geo-bootstrap'; // http://atmospherejs.com/geobootstrap/geo-bootstrap +var where = 'client'; // where to install: 'client', 'server', or ['client', 'server'] + +var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json')); + +Package.describe({ + name: packageName, + summary: 'A timeless Twitter Bootstrap theme built for the modern web', + version: packageJson.version + '_1', + git: 'https://github.com/thomasvanlankveld/geo-bootstrap.git' +}); + +Package.onUse(function (api) { + api.versionsFrom('METEOR@1.1'); + api.addFiles([ + 'img/flames.gif', + 'img/glyphicons-halflings-white.png', + 'img/glyphicons-halflings.png', + 'img/microfab.gif', + 'img/progress.gif', + 'img/rainbow.gif', + 'img/stars.gif', + + 'swatch/bootstrap.css' + ], where); +}); diff --git a/meteor/publish.sh b/meteor/publish.sh new file mode 100644 index 0000000..0566599 --- /dev/null +++ b/meteor/publish.sh @@ -0,0 +1,40 @@ +#!/bin/bash +# Publish package to Meteor's repository, Atmospherejs.com + +# Make sure Meteor is installed, per https://www.meteor.com/install. +# The curl'ed script is totally safe; takes 2 minutes to read its source and check. +type meteor >/dev/null 2>&1 || { curl https://install.meteor.com/ | sh; } + +# sanity check: make sure we're in the root directory of the checkout +cd "$( dirname "$0" )/.." + +ALL_EXIT_CODE=0 + +# test any package*.js packages we may have, e.g. package.js, package-compat.js +for PACKAGE_FILE in meteor/package*.js; do + + # Meteor expects package.js to be in the root directory of the checkout, so copy there our package file under that name, temporarily + cp $PACKAGE_FILE ./package.js + + # publish package, creating it if it's the first time we're publishing + PACKAGE_NAME=$(grep -i name package.js | head -1 | cut -d "'" -f 2) + + echo "Publishing $PACKAGE_NAME..." + + # Attempt to re-publish the package - the most common operation once the initial release has + # been made. If the package name was changed (rare), you'll have to pass the --create flag. + meteor publish "$@"; EXIT_CODE=$? + ALL_EXIT_CODE=$(( $ALL_EXIT_CODE + $EXIT_CODE )) + if (( $EXIT_CODE == 0 )); then + echo "Thanks for releasing a new version. You can see it at" + echo "https://atmospherejs.com/${PACKAGE_NAME/://}" + else + echo "We got an error. Please post it at https://github.com/raix/Meteor-community-discussions/issues/14" + fi + + # rm the temporary build files and package.js + rm -rf ".build.$PACKAGE_NAME" versions.json package.js + +done + +exit $ALL_EXIT_CODE \ No newline at end of file From 18253d92f25e5dc5b293cd53c4445e3be1dc3515 Mon Sep 17 00:00:00 2001 From: thomasvanlankveld Date: Tue, 14 Apr 2015 15:12:37 +0200 Subject: [PATCH 2/3] Version bump (for post-create actual publication) --- .versions | 3 +++ meteor/package.js | 2 +- meteor/publish.sh | 0 3 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 .versions mode change 100644 => 100755 meteor/publish.sh diff --git a/.versions b/.versions new file mode 100644 index 0000000..9445d33 --- /dev/null +++ b/.versions @@ -0,0 +1,3 @@ +geobootstrap:geo-bootstrap@1.0.0_2 +meteor@1.1.6 +underscore@1.0.3 diff --git a/meteor/package.js b/meteor/package.js index 70fcc28..486c1a2 100644 --- a/meteor/package.js +++ b/meteor/package.js @@ -8,7 +8,7 @@ var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json')); Package.describe({ name: packageName, summary: 'A timeless Twitter Bootstrap theme built for the modern web', - version: packageJson.version + '_1', + version: packageJson.version + '_2', git: 'https://github.com/thomasvanlankveld/geo-bootstrap.git' }); diff --git a/meteor/publish.sh b/meteor/publish.sh old mode 100644 new mode 100755 From 7812170789fbe07413a5448ae2c03a899c1060b4 Mon Sep 17 00:00:00 2001 From: thomasvanlankveld Date: Wed, 15 Apr 2015 18:05:14 +0200 Subject: [PATCH 3/3] Added bootstrap-responsive.css as published asset --- .versions | 2 +- meteor/package.js | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.versions b/.versions index 9445d33..44e0e83 100644 --- a/.versions +++ b/.versions @@ -1,3 +1,3 @@ -geobootstrap:geo-bootstrap@1.0.0_2 +geobootstrap:geo-bootstrap@1.0.0_3 meteor@1.1.6 underscore@1.0.3 diff --git a/meteor/package.js b/meteor/package.js index 486c1a2..61ab68f 100644 --- a/meteor/package.js +++ b/meteor/package.js @@ -8,7 +8,7 @@ var packageJson = JSON.parse(Npm.require("fs").readFileSync('package.json')); Package.describe({ name: packageName, summary: 'A timeless Twitter Bootstrap theme built for the modern web', - version: packageJson.version + '_2', + version: packageJson.version + '_3', git: 'https://github.com/thomasvanlankveld/geo-bootstrap.git' }); @@ -23,6 +23,7 @@ Package.onUse(function (api) { 'img/rainbow.gif', 'img/stars.gif', - 'swatch/bootstrap.css' + 'swatch/bootstrap.css', + 'swatch/bootstrap-responsive.css' ], where); });