root / snf-cyclades-app / synnefo / ui / new_ui / ui / Gruntfile.js @ d0fe8c12
History | View | Annotate | Download (1.7 kB)
1 |
module.exports = function(grunt) { |
---|---|
2 |
|
3 |
// Project configuration.
|
4 |
grunt.initConfig({ |
5 |
pkg: grunt.file.readJSON('package.json'), |
6 |
watch: {
|
7 |
css: {
|
8 |
files: [
|
9 |
'sass/*.scss',
|
10 |
], |
11 |
tasks: ['compass'] |
12 |
}, |
13 |
js: {
|
14 |
files: [
|
15 |
'javascripts/vendor/*.js',
|
16 |
'javascripts/okeanos-ember/*.js',
|
17 |
'javascripts/okeanos-scripts/*.js'
|
18 |
], |
19 |
tasks: ['concat'] |
20 |
}, |
21 |
}, |
22 |
compass: {
|
23 |
dist: {
|
24 |
options: {
|
25 |
sassDir: 'sass', |
26 |
cssDir: 'stylesheets', |
27 |
outputStyle: 'expanded', |
28 |
} |
29 |
} |
30 |
}, |
31 |
concat: {
|
32 |
options: {
|
33 |
separator: ';', |
34 |
}, |
35 |
dist: {
|
36 |
files: {
|
37 |
'javascripts/okeanos.js': ['javascripts/okeanos-scripts/common.js', 'javascripts/okeanos-scripts/checkboxes-radiobuttons.js', 'javascripts/okeanos-scripts/wizard.js', 'javascripts/okeanos-scripts/sshkeys-wizard.js'], |
38 |
'javascripts/okeanos-ember.js': ['javascripts/okeanos-ember/*.js'], |
39 |
} |
40 |
}, |
41 |
}, |
42 |
emberTemplates: {
|
43 |
compile: {
|
44 |
options: {
|
45 |
templateBasePath: /javascripts\/templates\// |
46 |
}, |
47 |
files: {
|
48 |
'javascripts/templates.js': 'javascripts/templates/*' |
49 |
} |
50 |
}, |
51 |
files: 'templates/*', |
52 |
tasks: ['emberTemplates'] |
53 |
} |
54 |
|
55 |
}); |
56 |
grunt.loadNpmTasks('grunt-contrib-watch');
|
57 |
grunt.loadNpmTasks('grunt-contrib-compass');
|
58 |
grunt.loadNpmTasks('grunt-contrib-concat');
|
59 |
grunt.loadNpmTasks('grunt-ember-templates');
|
60 |
|
61 |
// concat, ember-templates is necessary only the 1st time that I run it to create the the destination files that include the concatenated
|
62 |
grunt.registerTask('default', ['concat', 'emberTemplates', 'compass', 'watch']); |
63 |
|
64 |
}; |