Skip to content

Commit

Permalink
change comment and add copyright to minfile
Browse files Browse the repository at this point in the history
  • Loading branch information
释然 committed Feb 5, 2015
1 parent 25187e0 commit cb92612
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 23 deletions.
8 changes: 2 additions & 6 deletions build/event-custom-debug.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
/*
Copyright 2014, [email protected]
MIT Licensed
build time: Thu, 16 Oct 2014 04:33:51 GMT
*/
//! Copyright 2015, [email protected] MIT Licensed, build time: Thu, 05 Feb 2015 06:07:25 GMT
modulex.add("event-custom", ["modulex-event-base","modulex-util"], function(require, exports, module) {
var modulexEventBase = require("modulex-event-base");
var modulexUtil = require("modulex-util");
Expand Down Expand Up @@ -277,7 +273,7 @@ eventCustom = function (exports) {
var Target = eventCustomTarget;
var util = modulexUtil;
exports = {
version: '1.0.1',
version: '1.0.2',
Target: Target,
Object: eventCustomObject,
global: util.mix({}, Target)
Expand Down
6 changes: 1 addition & 5 deletions build/event-custom-deps.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
/*
Copyright 2014, [email protected]
MIT Licensed
build time: Thu, 16 Oct 2014 04:33:51 GMT
*/
//! Copyright 2015, [email protected] MIT Licensed, build time: Thu, 05 Feb 2015 06:07:25 GMT
modulex.config("requires",{"event-custom":["modulex-util","modulex-event-base"]});
6 changes: 1 addition & 5 deletions build/event-custom-deps.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,2 @@
/*
Copyright 2014, [email protected]
MIT Licensed
build time: Thu, 16 Oct 2014 04:33:51 GMT
*/
//! Copyright 2015, [email protected] MIT Licensed, build time: Thu, 05 Feb 2015 06:07:25 GMT
{"event-custom":["modulex-util","modulex-event-base"]}
3 changes: 2 additions & 1 deletion build/event-custom.js

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

12 changes: 7 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ var jscs = require('gulp-jscs');
var replace = require('gulp-replace');
var wrapper = require('gulp-wrapper');
var date = new Date();
var header = ['/*',
var header = ['//!',
'Copyright ' + date.getFullYear() + ', ' + packageInfo.name + '@' + packageInfo.version,
packageInfo.license + ' Licensed',
packageInfo.license + ' Licensed,',
'build time: ' + (date.toGMTString()),
'*/', ''].join('\n');
'\n'].join(' ');

gulp.task('lint', function () {
return gulp.src('./lib/**/*.js')
Expand Down Expand Up @@ -62,7 +62,9 @@ gulp.task('build', ['lint'], function () {
.pipe(gulp.dest(path.resolve(build)))
.pipe(filter(tag + '-debug.js'))
.pipe(replace(/@DEBUG@/g, ''))
.pipe(uglify())
.pipe(uglify({
preserveComments: 'some'
}))
.pipe(rename(tag + '.js'))
.pipe(gulp.dest(path.resolve(build)));
});
Expand All @@ -78,4 +80,4 @@ gulp.task('tag', function (done) {
cp.exec('git tag ' + version + ' | git push origin ' + version + ':' + version + ' | git push origin master:master', done);
});

gulp.task('default', ['build']);
gulp.task('default', ['build']);
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "modulex-event-custom",
"name": "kissy-event-custom",
"version": "1.0.2",
"author": "yiminghe <[email protected]>",
"engines": {
Expand Down

0 comments on commit cb92612

Please sign in to comment.