Browse Source

grunt sass tasks added

pull/3/head v1.3.0
Julian Ćwirko 10 years ago
parent
commit
5d1142edf1
  1. 1
      .gitignore
  2. 36
      Gruntfile.js
  3. 15
      README.md
  4. 6976
      assets/css/style.css
  5. 11
      package.json

1
.gitignore vendored

@ -1 +1,2 @@
.sass-cache
node_modules

36
Gruntfile.js

@ -0,0 +1,36 @@
'use strict';
module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
outputStyle: 'compressed' // nested or compressed
// sourceMap: true,
// imagePath: '',
// includePaths: []
// more info: https://github.com/sindresorhus/grunt-sass
},
files: {
'assets/css/style.css': 'assets/scss/style.scss'
}
}
},
watch: {
sass: {
files: 'assets/scss/**/*.scss',
tasks: ['sass']
}
}
});
grunt.registerTask('default', ['sass', 'watch']);
};

15
README.md

@ -28,8 +28,23 @@ Your feedback will be very appreciated. You can also send feature requests by op
Thanks!
#### Compiling Sass
You can use Grunt and Node Sass. Just cd into theme folder and run ````npm install```` (with 'sudo' if you're on Ubuntu like linux) and then ````grunt```` to compile scss file and also 'watch for changes'.
You can see Gruntfile.js for configuration changes. You can also play with other Grunt tasks here.
Of course if you want you can still use Ruby version. Just go to assets folder and run ````scss --watch scss:css````
But I think that Libsass/Node version is much faster.
#### Changelog
##### 1.3.0 (05.01.2015)
- simple Grunt tasks added - Sass compile and watch..
##### 1.2.1 (14.12.2014)
- Foundation update (5.5.0)

6976
assets/css/style.css

File diff suppressed because one or more lines are too long

11
package.json

@ -1,4 +1,11 @@
{
"name": "Abc",
"version": "1.2.1"
"name": "Abc",
"version": "1.3.0",
"devDependencies": {
"load-grunt-tasks": "~1.0.0",
"node-sass": "~2.0.0-beta",
"grunt-sass": "~0.17.0",
"grunt": "~0.4.5",
"grunt-contrib-watch": "~0.6.1"
}
}

Loading…
Cancel
Save