aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sources/css/tyrian/Gruntfile.js')
-rw-r--r--sources/css/tyrian/Gruntfile.js81
1 files changed, 0 insertions, 81 deletions
diff --git a/sources/css/tyrian/Gruntfile.js b/sources/css/tyrian/Gruntfile.js
deleted file mode 100644
index 1d3be90..0000000
--- a/sources/css/tyrian/Gruntfile.js
+++ /dev/null
@@ -1,81 +0,0 @@
-// Tyrian -- the new look of gentoo.org
-// Alex Legler <a3li@gentoo.org>
-
-'use strict';
-module.exports = function(grunt) {
- grunt.initConfig({
- pkg: grunt.file.readJSON('package.json'),
- less: {
- compile: {
- options: {
- strictMath: true,
- },
- files: {
- "dist/tyrian.css": "less/tyrian.less"
- }
- },
- minify: {
- options: {
- compress: true,
- yuicompress: true,
- optimization: 2
- },
- files: {
- "dist/tyrian.min.css": "dist/tyrian.css"
- }
- }
- },
- replace: {
- compile: {
- options: {
- patterns: [
- {
- match: /^(.*\r?\n)*\/\* tyrian-start \*\/\r?\n/gm,
- replacement: ""
- }
- ]
- },
- files: [
- {expand: true, flatten: true, src: ['dist/tyrian.css'], dest: 'dist/'}
- ]
- },
- inject_variables: {
- options: {
- patterns: [
- {
- match: /@import "variables\.less";$/m,
- replacement: '@import "variables.less"; @import "../../tyrian/bootstrap/variables-tyrian.less";'
- }
- ],
- silent: true
- },
- files: [
- {expand: true, flatten: true, src: ['../bootstrap/less/bootstrap.less'], dest: '../bootstrap/less/'}
- ]
- }
- },
- shell: {
- build_bootstrap: {
- command: 'grunt dist',
- options: {
- stdout: true,
- execOptions: {
- cwd: '../bootstrap/'
- }
- }
- }
- }
- });
-
- grunt.loadNpmTasks("grunt-contrib-less");
- grunt.loadNpmTasks("grunt-replace-regex");
- grunt.loadNpmTasks("grunt-shell");
-
- grunt.registerTask("compile", ["less:compile", "replace:compile"]);
- grunt.registerTask("compress", ["less:minify"]);
- grunt.registerTask("bootstrap", ["replace:inject_variables", "shell:build_bootstrap"]);
-
- grunt.registerTask("dist", ["bootstrap", "compile", "compress"]);
- grunt.registerTask("default", ["dist"]);
-};
-