aboutsummaryrefslogtreecommitdiffhomepage
path: root/Gruntfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js83
1 files changed, 0 insertions, 83 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
deleted file mode 100644
index 15e75247e..000000000
--- a/Gruntfile.js
+++ /dev/null
@@ -1,83 +0,0 @@
1'use strict'
2
3module.exports = function (grunt) {
4 var paths = {
5 css: 'client/stylesheets/*.css',
6 scss: 'client/stylesheets/application.scss',
7 vendor: 'client/stylesheets/vendor',
8 routes: './server/controllers/**/*.js',
9 main: './server.js',
10 img: 'public/images/*.{png,jpg,jpeg,gif,webp,svg}',
11 test: 'tests',
12 server: 'server.js'
13 }
14
15 require('time-grunt')(grunt)
16
17 // Project Configuration
18 grunt.initConfig({
19 paths: paths,
20 pkg: grunt.file.readJSON('package.json'),
21 concurrent: {
22 options: {
23 logConcurrentOutput: true
24 },
25 dev: [ 'watch:livereload', 'watch:sass', 'express:dev' ]
26 },
27 copy: {
28 dev: {
29 cwd: 'node_modules/bootstrap-sass/assets/',
30 src: [ 'fonts/bootstrap/*' ],
31 expand: true,
32 dest: paths.vendor
33 }
34 },
35 clean: {
36 dev: {
37 files: [{
38 dot: true,
39 src: [
40 paths.browserified, 'public/stylesheets/global.css', paths.vendor
41 ]
42 }]
43 }
44 },
45 express: {
46 dev: {
47 options: {
48 script: paths.server,
49 harmony: true,
50 port: 9000,
51 node_env: 'development',
52 debug: true,
53 background: false
54 }
55 }
56 },
57 sass: {
58 options: {
59 includePaths: [ 'node_modules/bootstrap-sass/assets/stylesheets/' ]
60 },
61 dev: {
62 files: {
63 'client/stylesheets/global.css': paths.scss
64 }
65 }
66 }
67 })
68
69 // Load automatically all the tasks
70 require('load-grunt-tasks')(grunt)
71
72 // Build client javascript and copy bootstrap dependencies
73 grunt.registerTask('build', [ 'sass:dev', 'newer:copy:dev' ])
74
75 // Clean build
76 grunt.registerTask('clean', [], function () {
77 grunt.loadNpmTasks('grunt-contrib-clean')
78
79 grunt.task.run(
80 'clean:dev'
81 )
82 })
83}