From f69a2d2fdd0bc47782dbd9e12b86fad3d12e5ae9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Lahmann?= <lahmann@ub.uni-leipzig.de> Date: Fri, 17 Jul 2015 14:15:05 +0200 Subject: [PATCH] refs #5640: * updated gruntfile.js with de_j59, de_bn3 and adlr_link * changed package.json name to vufind2-foundation (e.g. for community release) * added node_modules to .gitignore --- .gitignore | 3 +- gruntfile.js | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 15 +++++++ 3 files changed, 129 insertions(+), 1 deletion(-) create mode 100644 gruntfile.js create mode 100644 package.json diff --git a/.gitignore b/.gitignore index f0ecf7b3277..78f0b4ff60d 100644 --- a/.gitignore +++ b/.gitignore @@ -8,4 +8,5 @@ TAGS .bash_history .idea .composer -**/.sass-cache/ \ No newline at end of file +**/.sass-cache/ +node_modules \ No newline at end of file diff --git a/gruntfile.js b/gruntfile.js new file mode 100644 index 00000000000..5afcd1a8679 --- /dev/null +++ b/gruntfile.js @@ -0,0 +1,112 @@ +module.exports = function (grunt) { + grunt.initConfig({ + pkg : grunt.file.readJSON('package.json'), + // ADAPT THIS FOR FOUNDATION BASE THEME + sass : { + dist: { + options: { + outputStyle: 'expanded' // specify style here + }, + files: [{ + expand: true, // allows you to specify directory instead of indiv. files + cwd: 'themes/foundation5/scss', // current working directory + src: ['**/*.scss'], + dest: 'themes/foundation5/css', + ext: '.css' + }] + }, + // ADAPT THIS FOR FINC THEME + distfinc: { + options: { + outputStyle: 'expanded' // specify style here + }, + files: [{ + expand: true, // allows you to specify directory instead of indiv. files + cwd: 'themes/finc/scss', // current working directory + src: ['**/*.scss'], + dest: 'themes/finc/css', + ext: '.css' + }] + }, + // ADAPT THIS FOR HOUSE-specific THEMES + distDE_15: { + options: { + outputStyle: 'expanded' // specify style here + }, + files: [{ + expand: true, // allows you to specify directory instead of indiv. files + cwd: 'themes/de_15/scss', // current working directory + src: ['**/*.scss'], + dest: 'themes/de_15/css', + ext: '.css' + }] + }, + // to here + // ADAPT THIS FOR HOUSE-specific THEMES + distDE_GLA1: { + options: { + outputStyle: 'expanded' // specify style here + }, + files: [{ + expand: true, // allows you to specify directory instead of indiv. files + cwd: 'themes/de_gla1/scss', // current working directory + src: ['**/*.scss'], + dest: 'themes/de_gla1/css', + ext: '.css' + }] + }, + // to here + // ADAPT THIS FOR HOUSE-specific THEMES + distDE_BN3: { + options: { + outputStyle: 'expanded' // specify style here + }, + files: [{ + expand: true, // allows you to specify directory instead of indiv. files + cwd: 'themes/de_bn3/scss', // current working directory + src: ['**/*.scss'], + dest: 'themes/de_bn3/css', + ext: '.css' + }] + }, + // to here + // ADAPT THIS FOR HOUSE-specific THEMES + distDE_J59: { + options: { + outputStyle: 'expanded' // specify style here + }, + files: [{ + expand: true, // allows you to specify directory instead of indiv. files + cwd: 'themes/de_j59/scss', // current working directory + src: ['**/*.scss'], + dest: 'themes/de_j59/css', + ext: '.css' + }] + }, + // to here + // ADAPT THIS FOR HOUSE-specific THEMES + distADLR_LINK: { + options: { + outputStyle: 'expanded' // specify style here + }, + files: [{ + expand: true, // allows you to specify directory instead of indiv. files + cwd: 'themes/adlr_link/scss', // current working directory + src: ['**/*.scss'], + dest: 'themes/adlr_link/css', + ext: '.css' + }] + } + // to here - don't forget comma after brace above when adding new house + }, + watch: { + css: { + files: '**/*.scss', + tasks: ['sass'] + } + } + }); + grunt.loadNpmTasks('grunt-sass'); + grunt.loadNpmTasks('grunt-contrib-watch'); + grunt.registerTask('default', ['watch']); +}; \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 00000000000..117f346a7e1 --- /dev/null +++ b/package.json @@ -0,0 +1,15 @@ +{ + "name": "vufind2-foundation", + "version": "1.0.0", + "description": "FNDTN5 theme for Vufind", + "main": "gruntfile.js", + "dependencies": { + "grunt-contrib-watch": "^0.6.1", + "grunt-sass": "^1.0.0" + }, + "devDependencies": { + "grunt": "~0.4.5", + "grunt-sass": "~1.0.0", + "grunt-contrib-watch": "~0.6.1" + } +} -- GitLab