Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
Sass compilation using Grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
nDmitry committed Dec 25, 2013
1 parent c13f1e3 commit bf4ba82
Show file tree
Hide file tree
Showing 15 changed files with 64 additions and 54 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.DS_Store
.idea
.sass-cache
node_modules
npm-debug.log
tmp
19 changes: 18 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,23 @@ module.exports = function(grunt) {
},
},

sass: {
dist: {
files: {
'test/fixtures/sm.css': 'test/fixtures/sm.scss'
}
},
maps: {
options: {
sourcemap: true
},
files: {
'test/fixtures/sm_update.css': 'test/fixtures/sm_update.scss',
'test/fixtures/sm_update_by_path.css': 'test/fixtures/sm_update_by_path.scss'
}
}
},

clean: {
tests: ['tmp'],
},
Expand Down Expand Up @@ -106,7 +123,7 @@ module.exports = function(grunt) {

grunt.loadTasks('tasks');

grunt.registerTask('test', ['clean', 'copy', 'autoprefixer', 'nodeunit']);
grunt.registerTask('test', ['sass', 'clean', 'copy', 'autoprefixer', 'nodeunit']);
grunt.registerTask('default', ['jshint', 'test']);

};
7 changes: 0 additions & 7 deletions Makefile

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,15 @@
},
"dependencies": {
"autoprefixer": "~1.0.20131222",
"diff": "~1.0.7"
"diff": "~1.0.8"
},
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-jshint": "~0.7.2",
"grunt-contrib-clean": "~0.5.0",
"grunt-contrib-nodeunit": "~0.2.2",
"grunt-contrib-copy": "~0.4.1",
"grunt-contrib-sass": "~0.6.0",
"load-grunt-tasks": "~0.2.1"
},
"peerDependencies": {
Expand Down
16 changes: 8 additions & 8 deletions test/expected/sm.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
.bg1 {
background: -webkit-linear-gradient(#000, #111);
background: -moz-linear-gradient(#000, #111);
background: -o-linear-gradient(#000, #111);
background: linear-gradient(#000, #111); }
background: -webkit-linear-gradient(black, #111111);
background: -moz-linear-gradient(black, #111111);
background: -o-linear-gradient(black, #111111);
background: linear-gradient(black, #111111); }

.bg2 {
background: -webkit-linear-gradient(#111, #222);
background: -moz-linear-gradient(#111, #222);
background: -o-linear-gradient(#111, #222);
background: linear-gradient(#111, #222); }
background: -webkit-linear-gradient(#111111, #222222);
background: -moz-linear-gradient(#111111, #222222);
background: -o-linear-gradient(#111111, #222222);
background: linear-gradient(#111111, #222222); }
2 changes: 1 addition & 1 deletion test/expected/sm.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions test/expected/sm_update.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/expected/sm_update.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions test/expected/sm_update_by_path.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/expected/sm_update_by_path.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/fixtures/sm.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.bg1 {
background: linear-gradient(#000, #111); }
background: linear-gradient(black, #111111); }

.bg2 {
background: linear-gradient(#111, #222); }
background: linear-gradient(#111111, #222222); }
4 changes: 2 additions & 2 deletions test/fixtures/sm_update.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions test/fixtures/sm_update.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions test/fixtures/sm_update_by_path.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions test/fixtures/sm_update_by_path.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bf4ba82

Please sign in to comment.