Milestone 08-14
* Mahjong Ranking wurde stark vereinfacht um Fehler besser vorzubeugen. * Online WYSIWYG Editor auf CKEditor umgeändert, damit online bearbeiten für unbedarfte besser funktioniert. * Viele kleine Optimierungen am CSS für bessere Performance. * CSS wird jetzt aus LESS Code generiert * Für dise Arbeit wird jetzt grunt und node package management lokal verwendet.
This commit is contained in:
44
Gruntfile.js
Normal file
44
Gruntfile.js
Normal file
@@ -0,0 +1,44 @@
|
||||
module.exports = function(grunt) {
|
||||
|
||||
// Project configuration.
|
||||
// Task configuration goes here.
|
||||
grunt.initConfig({
|
||||
pkg: grunt.file.readJSON('package.json'),
|
||||
less: {
|
||||
options: {
|
||||
paths: ['src/kasu/static/less'],
|
||||
compress: false,
|
||||
optimization:9,
|
||||
ieCompat: false,
|
||||
},
|
||||
kasu: {
|
||||
src: 'src/kasu/static/less/kasu.less',
|
||||
dest: 'static/css/kasu.css',
|
||||
}
|
||||
},
|
||||
more_css: {
|
||||
options: {
|
||||
report: 'min'
|
||||
},
|
||||
kasu: {
|
||||
src: 'static/css/kasu.css',
|
||||
dest: 'static/css/kasu.css'
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
styles: {
|
||||
files: ['src/kasu/static/less/*.less'], // which files to watch
|
||||
tasks: ['less', 'more_css'],
|
||||
options: {nospawn: true}
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
// Load plugins here.
|
||||
grunt.loadNpmTasks('grunt-contrib-less');
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-more-css');
|
||||
|
||||
// Register tasks here.
|
||||
grunt.registerTask('default', ['less', 'more_css']);
|
||||
};
|
||||
Reference in New Issue
Block a user