Skip to content

Commit d680802

Browse files
committed
use gulp instead of compass
1 parent 4856f62 commit d680802

File tree

9 files changed

+170
-33
lines changed

9 files changed

+170
-33
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
.idea
2-
.sass-cache
2+
.sass-cache
3+
src
4+
node_modules

Gemfile

Lines changed: 0 additions & 4 deletions
This file was deleted.

config.rb

Lines changed: 0 additions & 27 deletions
This file was deleted.

gulpfile.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
var gulp = require('gulp');
2+
var sass = require('gulp-sass');
3+
var cleanCSS = require('gulp-clean-css');
4+
var sourcemaps = require('gulp-sourcemaps');
5+
var rename = require('gulp-rename');
6+
7+
// Gulp Sass Task
8+
gulp.task('sass', function () {
9+
return gulp.src('./scss-for-demo/fa-bootstrap-chosen.scss')
10+
.pipe(sourcemaps.init())
11+
.pipe(sass({outputStyle: 'expanded' }).on('error', sass.logError))
12+
.pipe(sourcemaps.write('./'))
13+
.pipe(gulp.dest('./public/stylesheets'));
14+
});
15+
16+
// Gulp Sass Minifiy Task
17+
gulp.task('sass-min', function () {
18+
return gulp.src('./scss-for-demo/fa-bootstrap-chosen.scss')
19+
.pipe(sourcemaps.init())
20+
.pipe(sass().on('error', sass.logError))
21+
.pipe(cleanCSS())
22+
.pipe(rename({ extname: '.min.css' }))
23+
.pipe(sourcemaps.write('./'))
24+
.pipe(gulp.dest('./public/stylesheets'));
25+
});
26+
27+
// Watch scss folder for changes
28+
gulp.task('watch', function() {
29+
// Watches the scss folder for all .scss and .sass files
30+
// If any file changes, run the sass task
31+
gulp.watch('./scss/**/*.{scss,sass}', ['sass'])
32+
});
33+
34+
// Creating a default task
35+
gulp.task('default', ['sass', 'sass-min', 'watch']);

package.json

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"name": "fa-bootstrap-chosen",
3+
"version": "1.0.0",
4+
"description": "The fa-bootstrap-chosen is a style that you can use the popular chosen library with Bootstrap.",
5+
"dependencies": {},
6+
"devDependencies": {
7+
"gulp": "^3.9.1",
8+
"gulp-clean-css": "^2.0.4",
9+
"gulp-rename": "^1.2.2",
10+
"gulp-sass": "^2.2.0",
11+
"gulp-sourcemaps": "^1.6.0"
12+
},
13+
"config": {
14+
"bower_directory": "src/vendor"
15+
},
16+
"scripts": {
17+
"bower-install": "bower install"
18+
},
19+
"repository": {
20+
"type": "git",
21+
"url": "git+https://github.com/rocket-turtle/fa-bootstrap-chosen.git"
22+
},
23+
"keywords": [
24+
"bootstrap",
25+
"chosen",
26+
"multiselect",
27+
"dropdown",
28+
"select",
29+
"input",
30+
"form",
31+
"ui"
32+
],
33+
"author": "Jonas S <[email protected]>",
34+
"license": "MIT",
35+
"bugs": {
36+
"url": "https://github.com/rocket-turtle/fa-bootstrap-chosen/issues"
37+
},
38+
"homepage": "http://rocket-turtle.github.io/fa-bootstrap-chosen/"
39+
}

0 commit comments

Comments
 (0)