Browse files

Publish to Bower registry

  • Loading branch information...
1 parent 7dc33d4 commit 4a492908fc52d59a6f9302d6e056ae551b14dd86 @jbpros jbpros committed Nov 27, 2013
Showing with 40 additions and 1 deletion.
  1. +2 −0 CONTRIBUTE.md
  2. +28 −0 bower.json
  3. +2 −1 package.json
  4. +8 −0 scripts/compile-release.js
View
2 CONTRIBUTE.md
@@ -105,6 +105,8 @@ This a reminder of the steps maintainers have to follow to release a new version
* Update `History.md`
* Bump version in `lib/cucumber.js`
* Bump version in `package.json`
+* Bump version in `bower.json`
+* Compile the bundle with `node scripts/compile-release.js`
* Add new contributors to `package.json`, if any
* Commit those changes as "*Release 0.1.2*" (where *0.1.2* is the actual version, of course)
* Tag commit as "v0.1.2" with short description of main changes
View
28 bower.json
@@ -0,0 +1,28 @@
+{
+ "name": "cucumber",
+ "version": "0.3.2",
+ "homepage": "http://git.io/cukejs",
+ "authors": [
+ "Julien Biezemans <jb@jbpros.com>"
+ ],
+ "description": "The official JavaScript implementation of Cucumber.",
+ "main": "release/cucumber.js",
+ "keywords": [
+ "testing",
+ "bdd",
+ "cucumber",
+ "gherkin",
+ "tests"
+ ],
+ "license": "MIT",
+ "ignore": [
+ "**/.*",
+ "node_modules",
+ "bower_components",
+ "tmp",
+ "spec",
+ "features",
+ "examples",
+ "scripts"
+ ]
+}
View
3 package.json
@@ -65,7 +65,8 @@
"connect": "2.11.0",
"jasmine-node": "1.11.0",
"mkdirp": "0.3.5",
- "rimraf": "2.2.2"
+ "rimraf": "2.2.2",
+ "bower": "~1.2.7"
},
"scripts": {
"test": "./bin/cucumber.js && jasmine-node spec"
View
8 scripts/compile-release.js
@@ -0,0 +1,8 @@
+var path = require('path');
+var fs = require('fs');
+var Bundler = require('../bundler')
+
+var bundlePath = path.join(__dirname, '..', 'release', 'cucumber.js');
+var bundle = Bundler();
+fs.writeFileSync(bundlePath, bundle.bundle());
+console.log(bundlePath, "written.");

0 comments on commit 4a49290

Please sign in to comment.