]>
git.immae.eu Git - github/Chocobozzz/PeerTube.git/blob - Gruntfile.js
6df0c023aa942e9a608eb4de2049e2c475ecc251
3 module
.exports = function (grunt
) {
6 jade: 'views/**/**/*.jade',
7 css: 'public/stylesheets/*.css',
8 scss: 'public/stylesheets/application.scss',
9 vendor: 'public/stylesheets/vendor',
10 js: 'public/javascripts/*.js',
11 routes: 'controllers/**/*.js',
13 browserified: 'public/javascripts/bundle.js',
14 img: 'public/images/*.{png,jpg,jpeg,gif,webp,svg}',
19 require('time-grunt')(grunt
)
21 // Project Configuration
24 pkg: grunt
.file
.readJSON('package.json'),
27 src: [ paths
.js
, '!public/javascripts/bundle.js' ],
28 dest: paths
.browserified
,
30 browserifyOptions: { 'debug': true },
37 logConcurrentOutput: true
39 dev: [ 'watch:livereload', 'watch:sass', 'express:dev' ]
43 cwd: 'node_modules/bootstrap-sass/assets/',
44 src: [ 'fonts/bootstrap/*' ],
54 paths
.browserified
, 'public/stylesheets/global.css', paths
.vendor
65 node_env: 'development',
73 includePaths: [ 'node_modules/bootstrap-sass/assets/stylesheets/' ]
77 'public/stylesheets/global.css': paths
.scss
83 files: [ paths
.jade
, paths
.css
, paths
.browserified
],
90 files: [ paths
.scss
],
96 // Load automatically all the tasks
97 require('load-grunt-tasks')(grunt
)
99 // Build client javascript and copy bootstrap dependencies
100 grunt
.registerTask('build', [ 'sass:dev', 'newer:browserify:dev', 'newer:copy:dev' ])
102 // Start in dev mode (reload front end files without refresh)
103 grunt
.registerTask('dev', [ 'sass:dev', 'newer:browserify:dev', 'newer:copy:dev', 'concurrent:dev' ])
106 grunt
.registerTask('clean', [], function () {
107 grunt
.loadNpmTasks('grunt-contrib-clean')