diff --git a/gulpfile.js b/gulpfile.js new file mode 100644 index 0000000000..232d580250 --- /dev/null +++ b/gulpfile.js @@ -0,0 +1,10 @@ +#!/usr/bin/env node + +'use strict'; +var gulp = require('gulp'); + +var lernaJSON = require('./lerna.json'); + +gulp.task('publishTag', function () { + exec("git tag v"+ lernaJSON.version +"; git push --tags"); +}); diff --git a/lerna.json b/lerna.json index c28bf231ed..541838e744 100644 --- a/lerna.json +++ b/lerna.json @@ -8,5 +8,14 @@ "remix-tests", "remix-simulator" ], - "version": "independent" + "command": { + "init": { + "exact": true + }, + "publish": { + "exact": true, + "skipGit": true + } + }, + "version": "0.0.1" } diff --git a/package.json b/package.json index 6caf32cecb..1e1ce5eab7 100644 --- a/package.json +++ b/package.json @@ -1,9 +1,11 @@ { - "devDependencies": { - "lerna": "^2.10.2" - }, - "scripts": { - "bootstrap": "lerna bootstrap", - "publish": "lerna publish" - } + "devDependencies": { + "gulp": "^3.9.1", + "lerna": "^2.10.2" + }, + "scripts": { + "bootstrap": "lerna bootstrap", + "publish": "lerna publish", + "release": "lerna bootstrap; lerna publish; gulp; gulp publishTag;" + } }