Skip to content

Commit a9ace17

Browse files
authored
Merge pull request #117 from Voog/116_update_grunt
Update grunt settings
2 parents ae6ee24 + c2108d1 commit a9ace17

21 files changed

+455
-209
lines changed

Gruntfile.js

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,16 @@ module.exports = function(grunt) {
5252
},
5353

5454
// Compiles the stylesheet files.
55+
// When using Dart Sass, synchronous compilation is twice as fast
56+
// as asynchronous compilation by default, due to the overhead of asynchronous callbacks.
57+
// To avoid this overhead, fibers package is used
5558
sass: {
5659
build_main: {
5760
options: {
58-
style: 'expanded',
59-
sourcemap: 'none'
61+
implementation: require('sass'),
62+
sourceMap: false,
63+
fiber: require('fibers'),
64+
outputStyle: 'expanded'
6065
},
6166
files: [{
6267
expand: true,
@@ -70,8 +75,10 @@ module.exports = function(grunt) {
7075
// Builds custom style components to temporary folder.
7176
build_custom_styles: {
7277
options: {
73-
style: 'expanded',
74-
sourcemap: 'none'
78+
implementation: require('sass'),
79+
sourceMap: false,
80+
fiber: require('fibers'),
81+
outputStyle: 'expanded'
7582
},
7683
files: [{
7784
expand: true,
@@ -267,17 +274,7 @@ module.exports = function(grunt) {
267274
}
268275
});
269276

270-
grunt.loadNpmTasks('grunt-contrib-clean');
271-
grunt.loadNpmTasks('grunt-contrib-concat');
272-
grunt.loadNpmTasks('grunt-contrib-copy');
273-
grunt.loadNpmTasks('grunt-contrib-cssmin');
274-
grunt.loadNpmTasks('grunt-contrib-imagemin');
275-
grunt.loadNpmTasks('grunt-contrib-sass');
276-
grunt.loadNpmTasks('grunt-contrib-uglify');
277-
grunt.loadNpmTasks('grunt-contrib-watch');
278-
grunt.loadNpmTasks('grunt-exec');
279-
grunt.loadNpmTasks('grunt-modernizr-builder');
280-
grunt.loadNpmTasks('grunt-postcss');
277+
require('load-grunt-tasks')(grunt);
281278

282279
grunt.registerTask('default', ['clean:reset', 'modernizr_builder', 'concat', 'uglify', 'sass', 'postcss:main_styles', 'cssmin', 'imagemin', 'postcss:custom_styles', 'copy', 'clean:remove']);
283280

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ To modify this template [Node Package Manager](https://www.npmjs.org/) (or [Node
55

66
To set up the local developing environment, clone this repository and run the following commands:
77

8-
* Install Grunt dependencies: ```npm install```
8+
* Install Grunt dependencies: ```yarn install```
99
* Install Bower dependencies: ```bower install```
1010
* Run Grunt tasks: ```grunt```
1111

components/template-cs-button-content.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,4 +192,4 @@
192192
"scope": "global"
193193
*/
194194
--content-button-hover-text-transform: none;
195-
}
195+
}

components/template-cs-content-content.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,4 +399,4 @@
399399
"scope": "global"
400400
*/
401401
--content-link-hover-color: rgba(0, 102, 187, 0.8);
402-
}
402+
}

components/template-cs-content-front.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,4 @@
154154
"scope": "global"
155155
*/
156156
--content-link-hover-color: rgba(0, 102, 187, 0.8);
157-
}
157+
}

components/template-cs-footer-content.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,4 @@
7171
"scope": "global"
7272
*/
7373
--footer-body-color: #696b6c;
74-
}
74+
}

components/template-cs-form-content.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
"featured": true
3939
*/
4040
--form-field-color: #1b2124;
41-
}
41+
}

components/template-cs-form-front.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
"scope": "global"
3131
*/
3232
--form-field-border-width: 4px;
33-
}
33+
}

components/template-cs-header-content.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -372,4 +372,4 @@
372372
"scope": "global"
373373
*/
374374
--menu-main-active-color: #1b2124;
375-
}
375+
}

components/template-cs-headings-content.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,4 +272,4 @@
272272
"scope": "global"
273273
*/
274274
--headings-subheading-color: #696b6c;
275-
}
275+
}

components/template-cs-headings-front.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -245,4 +245,4 @@
245245
"scope": "global"
246246
*/
247247
--headings-subheading-text-transform: none;
248-
}
248+
}

components/template-cs-main-styles-content.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
]
3939
*/
4040
--secondary-color-content: #1b2124;
41-
}
41+
}

components/template-cs-main-styles-front.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@
4949
]
5050
*/
5151
--main-color-content: #696b6c;
52-
}
52+
}

components/template-cs-style-rules.tpl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ body {
3636
-webkit-text-decoration: var(--menu-main-text-decoration);
3737
text-decoration: var(--menu-main-text-decoration);
3838
text-transform: var(--menu-main-text-transform);
39-
opacity: .7;
39+
opacity: 0.7;
4040
}
4141
@media screen and (min-width: 841px) {
4242
.menu-main .menu .menu-item .menu-link {
@@ -50,7 +50,7 @@ body {
5050
-webkit-text-decoration: var(--menu-main-active-text-decoration);
5151
text-decoration: var(--menu-main-active-text-decoration);
5252
text-transform: var(--menu-main-active-text-transform);
53-
opacity: .5;
53+
opacity: 0.5;
5454
}
5555
.menu-main .menu .menu-item .menu-link.active:hover {
5656
color: var(--menu-main-active-color);
@@ -62,7 +62,7 @@ body {
6262
-webkit-text-decoration: var(--menu-main-hover-text-decoration);
6363
text-decoration: var(--menu-main-hover-text-decoration);
6464
text-transform: var(--menu-main-hover-text-transform);
65-
opacity: .5;
65+
opacity: 0.5;
6666
}
6767

6868
.menu-sub .menu .menu-item .menu-link {
@@ -73,7 +73,7 @@ body {
7373
-webkit-text-decoration: var(--menu-sub-text-decoration);
7474
text-decoration: var(--menu-sub-text-decoration);
7575
text-transform: var(--menu-sub-text-transform);
76-
opacity: .5;
76+
opacity: 0.5;
7777
}
7878
.menu-sub .menu .menu-item .menu-link.active {
7979
font-style: var(--menu-sub-active-font-style);
@@ -314,4 +314,4 @@ body {
314314
.light-background .content-formatted .form_area .feedback-error, .light-background .content-formatted .form_area .feedback-success, .light-background .content-formatted .form_area .form_error, .light-background .content-formatted .form_area .form_notice {
315315
-webkit-box-shadow: var(--form-field-border-width) var(--form-field-border-width) 0 rgba(0, 0, 0, 0.2);
316316
box-shadow: var(--form-field-border-width) var(--form-field-border-width) 0 rgba(0, 0, 0, 0.2);
317-
}
317+
}

components/template-cs-table-content.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@
2929
"scope": "global"
3030
*/
3131
--table-border-style: solid;
32-
}
32+
}

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"license": "MIT",
99
"devDependencies": {
1010
"autoprefixer": "^7.2.3",
11+
"fibers": "^5.0.0",
1112
"grunt": "^1.0.1",
1213
"grunt-contrib-clean": "^1.1.0",
1314
"grunt-contrib-concat": "^1.0.1",
@@ -20,6 +21,9 @@
2021
"grunt-dev-update": "^2.3.0",
2122
"grunt-exec": "^3.0.0",
2223
"grunt-modernizr-builder": "^0.1.9",
23-
"grunt-postcss": "^0.9.0"
24+
"grunt-postcss": "^0.9.0",
25+
"grunt-sass": "^3.1.0",
26+
"load-grunt-tasks": "^5.0.0",
27+
"sass": "^1.38.0"
2428
}
2529
}

stylesheets/editmode.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
}
88
.content-right .edy-texteditor-view {
99
min-height: 525px;
10-
}
10+
}

stylesheets/ie8.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545

4646
.footer .voog-reference a {
4747
border: 1px solid #e5e5e5;
48-
}
48+
}

0 commit comments

Comments
 (0)