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 f873143 commit 6a984a8
Show file tree
Hide file tree
Showing 8 changed files with 46 additions and 16 deletions.
12 changes: 6 additions & 6 deletions bower.json
Expand Up @@ -7,11 +7,11 @@
"url": "http://github.com/kissyteam/dom.git"
},
"dependencies": {
"modulex": "modulex#master",
"query-selector": "query-selector#master",
"ua": "modulex-ua#master",
"util": "modulex-util#master",
"feature": "modulex-feature#master"
"modulex": "*",
"query-selector": "query-selector#1.x",
"ua": "modulex-ua#1.x",
"util": "modulex-util#1.x",
"feature": "modulex-feature#1.x"
},
"ignore": [
"**/*",
Expand All @@ -22,7 +22,7 @@
],
"devDependencies": {
"jquery": "1.x",
"url": "modulex-url#master",
"url": "modulex-url#1.x",
"simulate-dom-event": "*"
}
}
8 changes: 7 additions & 1 deletion build/dom/base-debug.js
@@ -1,3 +1,8 @@
/*
Copyright 2014, modulex-dom@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 04:16:49 GMT
*/
modulex.add("dom/base", ["modulex-util","modulex-ua","modulex-feature","dom/selector"], function(require, exports, module) {
var modulexUtil = require("modulex-util");
var modulexUa = require("modulex-ua");
Expand Down Expand Up @@ -92,7 +97,7 @@ domBaseApi = function (exports) {
* @singleton
*/
var Dom = exports = {
version: '1.0.0',
version: '1.0.2',
isCustomDomain: function (win) {
win = win || WINDOW;
win = Dom.get(win);
Expand Down Expand Up @@ -2496,6 +2501,7 @@ domBase = function (exports) {
domBaseSelector;
domBaseTraversal;
exports = Dom;
module.exports.version = '1.0.2';
return exports;
}();
module.exports = domBase;
Expand Down
5 changes: 5 additions & 0 deletions build/dom/base-deps.js
@@ -1 +1,6 @@
/*
Copyright 2014, modulex-dom@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 04:16:49 GMT
*/
modulex.config("requires",{"dom/base":["modulex-util","modulex-ua","modulex-feature","dom/selector"]});
5 changes: 5 additions & 0 deletions build/dom/base-deps.json
@@ -1 +1,6 @@
/*
Copyright 2014, modulex-dom@1.0.2
MIT Licensed
build time: Thu, 16 Oct 2014 04:16:49 GMT
*/
{"dom/base":["modulex-util","modulex-ua","modulex-feature","dom/selector"]}
2 changes: 1 addition & 1 deletion build/dom/base.js

Large diffs are not rendered by default.

18 changes: 17 additions & 1 deletion gulpfile.js
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 Down Expand Up @@ -48,6 +55,9 @@ gulp.task('build-base', ['lint'], function () {
]
}))
.pipe(replace(/@VERSION@/g, packageInfo.version))
.pipe(wrapper({
header: header
}))
.pipe(gulp.dest(path.resolve(build, 'dom')))
.pipe(filter('base-debug.js'))
.pipe(replace(/@DEBUG@/g, ''))
Expand All @@ -56,6 +66,12 @@ gulp.task('build-base', ['lint'], function () {
.pipe(gulp.dest(path.resolve(build, 'dom')));
});

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('build-ie', ['lint'], function () {
return gulp.src('./lib/dom/ie.js')
.pipe(modulex({
Expand Down
3 changes: 2 additions & 1 deletion lib/dom/base.js
Expand Up @@ -16,4 +16,5 @@ require('./base/style');
require('./base/selector');
require('./base/traversal');

module.exports = Dom;
module.exports = Dom;
module.exports.version = '@VERSION@';
9 changes: 3 additions & 6 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "modulex-dom",
"version": "1.0.1",
"version": "1.0.2",
"author": "yiminghe <yiminghe@gmail.com>",
"engines": {
"node": "~0.11"
Expand Down Expand Up @@ -51,21 +51,18 @@
"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": [
"lint"
],
"scripts": {
"start": "node --harmony server",
"publish": "gulp tag",
"lint": "gulp lint",
"browser-test": "mocha-phantomjs http://localhost:8012/tests/runner.html",
"browser-test-build": "mocha-phantomjs http://localhost:8012/tests/runner.html?build",
"browser-test-cover": "mocha-phantomjs -R node_modules/node-jscover/lib/reporters/mocha/console http://localhost:8012/tests/runner.html?coverage"
},
"dependencies": {
"modulex-feature": "^1.0.1",
"modulex-ua": "^1.0.1",
"modulex-util": "^1.1.0"
}
}

0 comments on commit 6a984a8

Please sign in to comment.