Skip to content
Snippets Groups Projects
Commit f69a2d2f authored by André Lahmann's avatar André Lahmann
Browse files

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
parent 95841f5d
No related merge requests found
......@@ -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
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
{
"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"
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment