Deploy 0.6.16
This commit is contained in:
parent
1fa1f1a668
commit
a7021b9212
39
gulpfile.js
39
gulpfile.js
@ -52,7 +52,7 @@ var jasmine = require('gulp-jasmine')
|
|||||||
var jasmineBrowser = require('gulp-jasmine-browser')
|
var jasmineBrowser = require('gulp-jasmine-browser')
|
||||||
var concat = require('gulp-concat')
|
var concat = require('gulp-concat')
|
||||||
var watch = require('gulp-watch')
|
var watch = require('gulp-watch')
|
||||||
var exec = require('child_process').exec
|
var shell = require('gulp-shell')
|
||||||
var $ = require('gulp-load-plugins')()
|
var $ = require('gulp-load-plugins')()
|
||||||
|
|
||||||
var options = minimist(process.argv.slice(2), {
|
var options = minimist(process.argv.slice(2), {
|
||||||
@ -129,23 +129,26 @@ gulp.task('deploy:bump', function () {
|
|||||||
.pipe(gulp.dest('./'))
|
.pipe(gulp.dest('./'))
|
||||||
})
|
})
|
||||||
|
|
||||||
gulp.task('deploy:commit', function () {
|
gulp.task('deploy', ['deploy:updateSubmodule', 'deploy:bump', 'deploy:build', 'deploy:copy'], function () {
|
||||||
gulp.src(['./*', '!./node_modules', '!./build', '!./y.*', '!./dist'] )
|
return gulp.src('./package.json', {read: false})
|
||||||
.pipe($.git.commit('bumps package version', {args: '-n'}))
|
.pipe(shell([
|
||||||
return gulp.src('./dist/*')
|
'echo "Deploying version <%= getVersion(file.path) %>"',
|
||||||
.pipe($.git.commit('New release', { maxBuffer: 20000 * 1024, args: '-n', cwd: './dist'}))
|
'cd ./dist/',
|
||||||
})
|
'git add -A',
|
||||||
|
'git commit -am "Deploy <%= getVersion(file.path) %>" -n',
|
||||||
gulp.task('deploy:tag', function () {
|
'git tag -a v<%= getVersion(file.path) %>',
|
||||||
return gulp.src('./package.json')
|
'git push',
|
||||||
.pipe($.tagVersion({cwd: './dist'}))
|
'git push origin --tags',
|
||||||
})
|
'cd ..',
|
||||||
|
'git commit -am "Release <%= getVersion(file.path) %>" -n',
|
||||||
gulp.task('deploy', ['deploy:updateSubmodule', 'deploy:bump', 'deploy:build', 'deploy:copy', 'deploy:commit', 'deploy:tag'], function (cb) {
|
'git push'
|
||||||
exec('echo yayy && echo yooo', function (err, stdout, stderr) {
|
], {
|
||||||
console.log(err)
|
templateData: {
|
||||||
cb(err)
|
getVersion: function (s) {
|
||||||
})
|
return require(s).version
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}))
|
||||||
})
|
})
|
||||||
|
|
||||||
gulp.task('build:test', function () {
|
gulp.task('build:test', function () {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "yjs",
|
"name": "yjs",
|
||||||
"version": "0.6.15",
|
"version": "0.6.17",
|
||||||
"description": "A framework for real-time p2p shared editing on arbitrary complex data types",
|
"description": "A framework for real-time p2p shared editing on arbitrary complex data types",
|
||||||
"main": "y.js",
|
"main": "y.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -51,6 +51,7 @@
|
|||||||
"gulp-jasmine": "^2.0.1",
|
"gulp-jasmine": "^2.0.1",
|
||||||
"gulp-jasmine-browser": "^0.2.3",
|
"gulp-jasmine-browser": "^0.2.3",
|
||||||
"gulp-load-plugins": "^1.0.0",
|
"gulp-load-plugins": "^1.0.0",
|
||||||
|
"gulp-shell": "^0.5.1",
|
||||||
"gulp-sourcemaps": "^1.5.2",
|
"gulp-sourcemaps": "^1.5.2",
|
||||||
"gulp-tag-version": "^1.3.0",
|
"gulp-tag-version": "^1.3.0",
|
||||||
"gulp-uglify": "^1.4.1",
|
"gulp-uglify": "^1.4.1",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user