Debian Codegraph @

dijit-themes/Gruntfile.js

raw symbols SCIP
1 /* global module */
2 module.exports = function (grunt) {
3
4 grunt.initConfig({
5
6 // compile css
7 stylus: {
8 flat: {
9 files: [{
10 cwd: 'flat',
11 dest: 'flat',
12 expand: true,
13 ext: '.css',
14 src: ['**/*.styl', '!**/**mixins**.styl', '!**/**variables**.styl']
15 }],
16 options: {
17 compress: false,
18 linenos: false
19 }
20 }
21 },
22
23 connect: {
24 flat: {
25 options: {
26 port: 3000,
27 base: './',
28 hostname: '*'
29 }
30 }
31 },
32
33 open: {
34 flat: {
35 path: 'http://localhost:3000/flat/tests/flat.html'
36 }
37 },
38
39 watch: {
40 flat: {
41 files: ['flat/**/*.styl', '!flat/**/**variables.styl', '!flat/**/**mixins**.styl'],
42 tasks: ['newer:stylus:flat']
43 },
44 'flat-vars': {
45 files: ['flat/**/**variables**.styl', 'flat/**/**mixins**.styl'],
46 tasks: ['stylus:flat']
47 }
48 },
49
50 concurrent: {
51 flat: {
52 tasks: ['watch:flat', 'watch:flat-vars'],
53 options: {
54 logConcurrentOutput: true
55 }
56 }
57 }
58 });
59
60 // load tasks
61 grunt.loadNpmTasks('grunt-contrib-stylus');
62 grunt.loadNpmTasks('grunt-contrib-connect');
63 grunt.loadNpmTasks('grunt-open');
64 grunt.loadNpmTasks('grunt-contrib-watch');
65 grunt.loadNpmTasks('grunt-concurrent');
66 grunt.loadNpmTasks('grunt-newer');
67
68 // flat theme
69 grunt.registerTask('flat', [
70 'stylus:flat',
71 'connect:flat',
72 'open:flat',
73 'concurrent:flat'
74 ]);
75
76 };