Skip to content

Commit 302b4fd

Browse files
committed
upgrade packages and method name
1 parent 7bde970 commit 302b4fd

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

gulpfile.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ var concat = require('gulp-concat');
33
var uglify = require('gulp-uglify');
44
var umd = require('gulp-umd');
55

6-
gulp.task('build', ['build-minify', 'build-debug']);
6+
gulp.task('build', ['build-minify', 'build-debug', 'build-docs']);
77

88
gulp.task('build-minify', function (cb) {
99
return gulp.src(['src/**/*.js'])
1010
.pipe(concat('indent.min.js'))
11-
.pipe(uglify())
1211
.pipe(umd({
1312
exports: function(file) {
1413
return 'indent';
@@ -17,8 +16,13 @@ gulp.task('build-minify', function (cb) {
1716
return 'indent';
1817
}
1918
}))
19+
.pipe(uglify())
2020
.pipe(gulp.dest('./lib'))
21-
.pipe(gulp.dest('./docs/js'));
21+
});
22+
23+
gulp.task('build-docs', function (cb) {
24+
return gulp.src(['src/**/*.js'])
25+
.pipe(gulp.dest('./docs/js'))
2226
});
2327

2428
gulp.task('build-debug', function (cb) {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"dependencies": {},
1212
"devDependencies": {
1313
"jasmine-core": "^2.2.0",
14-
"karma": "^0.12.31",
14+
"karma": "^1.7.0",
1515
"karma-coverage": "^0.3.1",
1616
"karma-jasmine": "^0.3.5",
1717
"karma-phantomjs-launcher": "^0.1.4",

tools/run-file.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
var fs = require('fs');
22
var indent = require('./../lib/indent.js');
3-
var self = this;
43

54
fs.readFile( __dirname + '/file.js', function (err, data) {
65
if (err)
76
throw err;
87
console.log(
9-
indent.indentJS(data.toString(), ' ')
8+
indent.js(data.toString(), ' ')
109
);
1110
});

0 commit comments

Comments
 (0)