Skip to content

Commit 381443c

Browse files
committed
Added deploy:test and deploy:main
1 parent 3514513 commit 381443c

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "superfly-css-task-deploy",
3-
"version": "0.0.0",
3+
"version": "0.0.1",
44
"description": "Deploy task for superfly-css modules",
55
"main": "src/main/js/index.js",
66
"scripts": {

src/main/js/index.js

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,30 @@ gulp.task('deploy:css', function() {
2525
.src(PLI.TARGET_TEST_HTML)
2626
.pipe(gulp.dest(PLI.deploy.test.html));
2727
});
28+
29+
30+
gulp.task('deploy:main', function() {
31+
32+
gulp.src(PLI.TARGET_MAIN_CSS)
33+
.pipe(uncss({
34+
html: [PLI.TARGET_MAIN_HTML]
35+
}))
36+
.pipe(gulp.dest(PLI.deploy.main.css));
37+
38+
return gulp
39+
.src(PLI.TARGET_MAIN_HTML)
40+
.pipe(gulp.dest(PLI.deploy.main.html));
41+
});
42+
43+
gulp.task('deploy:test', function() {
44+
45+
gulp.src(PLI.TARGET_TEST_CSS)
46+
.pipe(uncss({
47+
html: [PLI.TARGET_TEST_HTML]
48+
}))
49+
.pipe(gulp.dest(PLI.deploy.test.css));
50+
51+
return gulp
52+
.src(PLI.TARGET_TEST_HTML)
53+
.pipe(gulp.dest(PLI.deploy.test.html));
54+
});

0 commit comments

Comments
 (0)