Skip to content

Commit bef23d2

Browse files
committed
Refactor all!
1 parent 6958200 commit bef23d2

24 files changed

+1109
-1355
lines changed

gulpfile.js

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
var gulp = require('gulp');
2+
var concat = require('gulp-concat');
3+
var typescript = require('gulp-typescript');
4+
var mocha = require('gulp-mocha');
5+
var plumber = require('gulp-plumber');
6+
var logger = require('gulp-logger');
7+
8+
gulp.task('default', ['templates']);
9+
10+
gulp.task('templates', ['templates-concat', 'templates-watch']);
11+
12+
gulp.task('templates-concat', function() {
13+
14+
gulp.src([
15+
'sources/commonjs-open.js',
16+
'sources/selector.js',
17+
'sources/data.js',
18+
'sources/prototypes/prototype.js',
19+
'sources/prototypes/contents.js',
20+
'sources/prototypes/tag.js',
21+
'sources/prototypes/single.js',
22+
'sources/prototypes/double.js',
23+
'sources/prototypes/doctype.js',
24+
'sources/implementations/doctype.js',
25+
'sources/implementations/single.js',
26+
'sources/implementations/double.js',
27+
'sources/implementations/content.js',
28+
'sources/implementations/struct.js',
29+
])
30+
.pipe(plumber())
31+
.pipe(concat('index.js'))
32+
.pipe(gulp.dest('./'));
33+
34+
gulp.src([
35+
'sources/amd-open.js',
36+
'sources/selector.js',
37+
'sources/data.js',
38+
'sources/prototypes/prototype.js',
39+
'sources/prototypes/contents.js',
40+
'sources/prototypes/tag.js',
41+
'sources/prototypes/single.js',
42+
'sources/prototypes/double.js',
43+
'sources/prototypes/doctype.js',
44+
'sources/implementations/doctype.js',
45+
'sources/implementations/single.js',
46+
'sources/implementations/double.js',
47+
'sources/implementations/content.js',
48+
'sources/implementations/struct.js',
49+
'sources/amd-close.js'
50+
])
51+
.pipe(plumber())
52+
.pipe(concat('templates.js'))
53+
.pipe(gulp.dest('./'));
54+
});
55+
56+
gulp.task('templates-watch', function() {
57+
gulp.watch(['sources/*', 'sources/**/*'], ['templates-concat']);
58+
});
59+
60+
// gulp.task('tests', ['tests-compile', 'tests-mocha', 'tests-watch']);
61+
62+
// gulp.task('tests-compile', function() {
63+
// gulp.src(['tests/test.ts'])
64+
// .pipe(plumber())
65+
// .pipe(logger({ extname: '.ts' }))
66+
// .pipe(typescript())
67+
// .pipe(gulp.dest('./tests/'));
68+
// });
69+
70+
// gulp.task('tests-mocha', function() {
71+
// gulp.src(['tests/test.js'], {read: false})
72+
// .pipe(plumber())
73+
// .pipe(mocha())
74+
// });
75+
76+
// gulp.task('tests-watch', function() {
77+
// gulp.watch(['tests/*.ts'], ['tests-compile', 'tests-mocha']);
78+
// });
79+
80+
process.stdin.on("data", process.exit);

0 commit comments

Comments
 (0)