Skip to content

Commit 824dc89

Browse files
committed
Initial task implementation
1 parent 738a5db commit 824dc89

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed

package.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"name": "superfly-css-task-build",
3+
"version": "0.0.0",
4+
"description": "Build task for superfly-css modules",
5+
"main": "src/main/js/index.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/superfly-css/superfly-css-task-build.git"
12+
},
13+
"keywords": [
14+
"gulp",
15+
"js",
16+
"css",
17+
"superfly-css",
18+
"task",
19+
"build"
20+
],
21+
"author": "Ole Ersoy",
22+
"license": "MIT",
23+
"bugs": {
24+
"url": "https://github.com/superfly-css/superfly-css-task-build/issues"
25+
},
26+
"homepage": "https://github.com/superfly-css/superfly-css-task-build#readme",
27+
"devDependencies": {
28+
"gulp": "^3.9.0",
29+
"gulp-postcss": "^6.0.1",
30+
"autoprefixer": "^6.1.0",
31+
"postcss-calc": "^5.0.0",
32+
"postcss-color-function": "^2.0.0",
33+
"postcss-custom-properties": "^5.0.0",
34+
"postcss-import": "^7.0.0",
35+
"superfly-css-pli": "0.0.5"
36+
},
37+
"peerDependencies": {
38+
"gulp": "3.x"
39+
}
40+
}

src/main/js/index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
var gulp = require('gulp');
2+
var postcss = require('gulp-postcss');
3+
var postcss_import = require('postcss-import');
4+
var postcss_calc = require('postcss-calc');
5+
var postcss_custom_properties = require('postcss-custom-properties');
6+
var postcss_color_function = require('postcss-color-function');
7+
var autoprefixer = require('autoprefixer');
8+
9+
var PLI = require('superfly-css-pli');
10+
11+
var processors = [postcss_import, autoprefixer, postcss_calc, postcss_custom_properties, postcss_color_function];
12+
13+
gulp.task('build:css', function() {
14+
return gulp.src(PLI.SRC_MAIN_CSS)
15+
.pipe(postcss(processors))
16+
.pipe(gulp.dest(PLI.target.main.css));
17+
});

0 commit comments

Comments
 (0)