Skip to content

Commit

Permalink
tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yiminghe committed Oct 16, 2014
1 parent 0e0974c commit aa49b88
Show file tree
Hide file tree
Showing 14 changed files with 75 additions and 12 deletions.
12 changes: 6 additions & 6 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
"url": "http://github.com/kissyteam/anim.git"
},
"dependencies": {
"modulex": "modulex#master",
"feature": "modulex-feature#master",
"dom": "modulex-dom#master",
"promise": "modulex-promise#master",
"util": "modulex-util#master"
"modulex": "*",
"feature": "modulex-feature#1.x",
"dom": "modulex-dom#1.x",
"promise": "modulex-promise#1.x",
"util": "modulex-util#1.x"
},
"ignore": [
"**/*",
Expand All @@ -21,6 +21,6 @@
"!index.js"
],
"devDependencies": {
"modulex-color": "modulex-color#master"
"modulex-color": "modulex-color#1.x"
}
}
5 changes: 5 additions & 0 deletions build/anim/base-debug.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
Copyright 2014, modulex-anim@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 06:46:47 GMT
*/
modulex.add("anim/base", ["dom","util","promise"], function(require, exports, module) {
var dom = require("dom");
var _util_ = require("util");
Expand Down
5 changes: 5 additions & 0 deletions build/anim/base-deps.js
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/*
Copyright 2014, modulex-anim@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 06:46:47 GMT
*/
modulex.config("requires",{"anim/base":["dom","promise","util"]});
5 changes: 5 additions & 0 deletions build/anim/base-deps.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/*
Copyright 2014, modulex-anim@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 06:46:47 GMT
*/
{"anim/base":["dom","promise","util"]}
7 changes: 6 additions & 1 deletion build/anim/timer-debug.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
Copyright 2014, modulex-anim@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 06:46:47 GMT
*/
modulex.add("anim/timer", ["util","dom","feature","anim/base"], function(require, exports, module) {
var _util_ = require("util");
var dom = require("dom");
Expand Down Expand Up @@ -959,7 +964,7 @@ animTimer = function (exports) {
});
TimerAnim.Easing = Easing;
TimerAnim.Fx = Fx;
TimerAnim.version = '1.0.1';
TimerAnim.version = '1.0.2';
TimerAnim._name_ = 'TimerAnim';
util.mix(TimerAnim, AnimBase.Statics);
exports = TimerAnim;
Expand Down
5 changes: 5 additions & 0 deletions build/anim/timer-deps.js
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/*
Copyright 2014, modulex-anim@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 06:46:47 GMT
*/
modulex.config("requires",{"anim/timer":["dom","util","anim/base","feature"]});
5 changes: 5 additions & 0 deletions build/anim/timer-deps.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/*
Copyright 2014, modulex-anim@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 06:46:47 GMT
*/
{"anim/timer":["dom","util","anim/base","feature"]}
2 changes: 1 addition & 1 deletion build/anim/timer.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion build/anim/transition-debug.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
/*
Copyright 2014, modulex-anim@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 06:46:47 GMT
*/
modulex.add("anim/transition", ["util","dom","anim/base","feature"], function(require, exports, module) {
var _util_ = require("util");
var dom = require("dom");
Expand Down Expand Up @@ -143,7 +148,7 @@ animTransition = function (exports) {
// bad
exports = TransitionAnim;
TransitionAnim._name_ = 'TransitionAnim';
TransitionAnim.version = '1.0.1';
TransitionAnim.version = '1.0.2';
} else {
exports = null;
}
Expand Down
5 changes: 5 additions & 0 deletions build/anim/transition-deps.js
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/*
Copyright 2014, modulex-anim@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 06:46:47 GMT
*/
modulex.config("requires",{"anim/transition":["util","dom","anim/base","feature"]});
5 changes: 5 additions & 0 deletions build/anim/transition-deps.json
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
/*
Copyright 2014, modulex-anim@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 06:46:47 GMT
*/
{"anim/transition":["util","dom","anim/base","feature"]}
2 changes: 1 addition & 1 deletion build/anim/transition.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ var jshint = require('gulp-jshint');
var stylish = require('jshint-stylish');
var jscs = require('gulp-jscs');
var replace = require('gulp-replace');

var wrapper = require('gulp-wrapper');
var date = new Date();
var header = ['/*',
'Copyright ' + date.getFullYear() + ', ' + packageInfo.name + '@' + packageInfo.version,
packageInfo.license + ' Licensed',
'build time: ' + (date.toGMTString()),
'*/', ''].join('\n');

gulp.task('lint', function () {
return gulp.src('./lib/**/*.js')
.pipe(jshint())
Expand All @@ -22,6 +29,12 @@ gulp.task('lint', function () {
.pipe(jscs());
});

gulp.task('tag', function (done) {
var cp = require('child_process');
var version = packageInfo.version;
cp.exec('git tag ' + version + ' | git push origin ' + version + ':' + version + ' | git push origin master:master', done);
});

gulp.task('clean', function () {
return gulp.src(build, {
read: false
Expand Down Expand Up @@ -63,6 +76,9 @@ names.forEach(function (tag) {
]
}))
.pipe(replace(/@VERSION@/g, packageInfo.version))
.pipe(wrapper({
header: header
}))
.pipe(gulp.dest(path.resolve(build, 'anim' + dir)))
.pipe(filter(basename + '-debug.js'))
.pipe(replace(/@DEBUG@/g, ''))
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "modulex-anim",
"version": "1.0.1",
"version": "1.0.2",
"author": "yiminghe <yiminghe@gmail.com>",
"engines": {
"node": "~0.11"
Expand Down Expand Up @@ -52,6 +52,7 @@
"node-jscover": "^0.6.8",
"node-jscover-coveralls": "^1.0.10",
"node-jscover-handler": "^1.0.3",
"gulp-wrapper": "^0.1.5",
"precommit-hook": "^1.0.7"
},
"precommit": [
Expand All @@ -60,6 +61,7 @@
"scripts": {
"start": "node --harmony server",
"test": "",
"publish": "gulp tag",
"lint": "gulp lint",
"browser-test": "mocha-phantomjs http://localhost:8016/tests/browser/runner.html",
"browser-test-build": "mocha-phantomjs http://localhost:8016/tests/browser/runner.html?build",
Expand Down

0 comments on commit aa49b88

Please sign in to comment.