Skip to content

Commit eb86855

Browse files
author
Henrique Custodia Martins
committed
first commit
1 parent 0eb0780 commit eb86855

File tree

4 files changed

+58
-0
lines changed

4 files changed

+58
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

Gulpfile.js

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
'use strict';
2+
3+
const gulp = require('gulp');
4+
const sass = require('gulp-sass');
5+
const rename = require('gulp-rename');
6+
7+
gulp.task('sass', function () {
8+
return gulp.src('./src/flex-boy.sass')
9+
.pipe(sass().on('error', sass.logError))
10+
.pipe(gulp.dest('./dist'));
11+
});
12+
13+
gulp.task('sass:compress', function () {
14+
return gulp.src('./src/flex-boy.sass')
15+
.pipe(sass({ outputStyle: 'compressed' }).on('error', sass.logError))
16+
.pipe(rename({
17+
suffix: ".min",
18+
}))
19+
.pipe(gulp.dest('./dist'));
20+
});
21+
22+
gulp.task('generate', () => {
23+
gulp.start(['sass'])
24+
});
25+
26+
gulp.task('build', () => {
27+
gulp.start(['sass', 'sass:compress']);
28+
});
29+
30+
gulp.task('default', () => {
31+
gulp.start(['build']);
32+
});

package.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "flex-boy",
3+
"version": "0.1.0",
4+
"description": "This is a Flexbox library to help to structure templates",
5+
"main": "Gulpfile.js",
6+
"scripts": {
7+
"test": "echo \"Error: no test specified\" && exit 1"
8+
},
9+
"repository": {
10+
"type": "git",
11+
"url": "git+https://github.com/henriquecustodia/flex-boy.git"
12+
},
13+
"author": "",
14+
"license": "ISC",
15+
"bugs": {
16+
"url": "https://github.com/henriquecustodia/flex-boy/issues"
17+
},
18+
"homepage": "https://github.com/henriquecustodia/flex-boy#readme",
19+
"devDependencies": {
20+
"gulp": "^3.9.1",
21+
"gulp-rename": "^1.2.2",
22+
"gulp-sass": "^2.3.2"
23+
}
24+
}

flex-boy.sass src/flex-boy.sass

File renamed without changes.

0 commit comments

Comments
 (0)