Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2016-09-10 15:02:54 +0300
committerbrantje <brantje@gmail.com>2016-09-10 15:02:54 +0300
commitb1d4ab0605cca237468c0feac64691a3015b8333 (patch)
tree66851d7d76f3fd975f5ee37f014621f0ce9e93b1 /Gruntfile.js
parent74a0b06e8d86b6ef8dc8391be3eb9408c5c87c7d (diff)
Setup sass
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js31
1 files changed, 29 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index 31404e99..051ad053 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -6,7 +6,19 @@ module.exports = function (grunt) {
html2js: {
options: {
// custom options, see below
- base: 'templates'
+ base: 'templates',
+ quoteChar: '\'',
+ useStrict: true,
+ htmlmin: {
+ collapseBooleanAttributes: true,
+ collapseWhitespace: true,
+ removeAttributeQuotes: false,
+ removeComments: true,
+ removeEmptyAttributes: false,
+ removeRedundantAttributes: true,
+ removeScriptTypeAttributes: false,
+ removeStyleLinkTypeAttributes: false
+ }
},
main: {
src: ['templates/views/**/*.html'],
@@ -14,11 +26,25 @@ module.exports = function (grunt) {
}
},
+ sass: {
+ dist: {
+ files: [
+ {
+ expand: true,
+ cwd: "sass",
+ src: ["**/app.scss"],
+ dest: "css",
+ ext: ".css"
+ }
+ ]
+ }
+ },
+
//@TODO JSHint, comile sass
watch: {
scripts: {
files: ['Gruntfile.js', 'views/*.html'],
- tasks: ['html2js'],
+ tasks: ['html2js','sass'],
options: {
spawn: false,
interrupt: true,
@@ -38,6 +64,7 @@ module.exports = function (grunt) {
});
// Load the plugin that provides the "uglify" task.
+ grunt.loadNpmTasks('grunt-contrib-sass');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-html2js');
grunt.loadNpmTasks('grunt-contrib-watch');