mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
Scratch via grunt
This commit is contained in:
parent
e162264ee9
commit
061e4eb118
5
.gitignore
vendored
5
.gitignore
vendored
@ -22,3 +22,8 @@ composer.lock
|
||||
Resources/assets/gumpy/.sass-cache
|
||||
|
||||
*~
|
||||
|
||||
Resources/.sass-cache/
|
||||
Resources/bower_components/
|
||||
Resources/node_modules/
|
||||
Resources/public/stylesheets/sass/
|
81
Resources/Gruntfile.js
Normal file
81
Resources/Gruntfile.js
Normal file
@ -0,0 +1,81 @@
|
||||
module.exports = function(grunt) {
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
|
||||
chill: {
|
||||
folders: {
|
||||
fonts: './public/fonts',
|
||||
bower: './bower_components/',
|
||||
css: {
|
||||
dist: './public/stylesheets/',
|
||||
},
|
||||
sass: {
|
||||
src: './public/stylesheets/sass/',
|
||||
}
|
||||
}
|
||||
},
|
||||
bower: {
|
||||
install: {
|
||||
options: {
|
||||
targetDir: '<%= chill.folders.bower %>',
|
||||
install: true,
|
||||
copy: false
|
||||
}
|
||||
}
|
||||
},
|
||||
copy: {
|
||||
scratch: {
|
||||
files: [
|
||||
{
|
||||
cwd: '<%= chill.folders.bower %>Scratch-CSS-Design/stylesheets/sass',
|
||||
src: ['*', '**', '!_custom.scss'],
|
||||
dest: '<%= chill.folders.sass.src %>',
|
||||
expand: true,
|
||||
},
|
||||
{
|
||||
cwd: '<%= chill.folders.bower %>Scratch-CSS-Design/fonts/',
|
||||
src: '**',
|
||||
dest: '<%= chill.folders.fonts %>',
|
||||
expand: true,
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
sass: {
|
||||
dist: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: '<%= chill.folders.sass.src %>',
|
||||
src: ['*.scss'],
|
||||
dest: '<%= chill.folders.css.dist %>',
|
||||
ext: '.css'
|
||||
}]
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
css: {
|
||||
files: [ '<%= chill.folders.sass.src %>/** /*.scss' ],
|
||||
tasks: ['css'],
|
||||
/*
|
||||
options: {
|
||||
spawn: false,
|
||||
interrupt: true,
|
||||
}
|
||||
*/
|
||||
}
|
||||
},
|
||||
clean: {
|
||||
css: ['<%= chill.folders.css.dist %>/*.css'],
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-bower-task');
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-contrib-sass');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||
|
||||
grunt.registerTask('generatecss', ['clean:css', 'sass']);
|
||||
grunt.registerTask('dependencies', ['bower', 'copy']);
|
||||
grunt.registerTask('default', ['dependencies', 'generatecss']);
|
||||
};
|
15
Resources/bower.json
Normal file
15
Resources/bower.json
Normal file
@ -0,0 +1,15 @@
|
||||
{
|
||||
"name": "Chill-JS-CSS",
|
||||
"version": "0.0.0",
|
||||
"homepage": "https://github.com/Chill-project/Main",
|
||||
"authors": [
|
||||
"Champs-Libres <info@champs-libres.coop>"
|
||||
],
|
||||
"description": "JS-CSS files for Chill, a software for social workers",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"Scratch-CSS-Design": "git@github.com:Champs-Libres/ScratchCSS.git#master",
|
||||
"pikaday": "https://github.com/dbushell/Pikaday.git#~1.2.0"
|
||||
},
|
||||
"license": "MIT"
|
||||
}
|
8
Resources/package.json
Normal file
8
Resources/package.json
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "chill-js-css",
|
||||
"version": "0.0.0",
|
||||
"description": "JS-CSS files for Chill, a software for social workers",
|
||||
"directories": {
|
||||
},
|
||||
"author": "Champs-Libres <info@champs-libres.coop>"
|
||||
}
|
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user