X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=Gruntfile.js;h=fa0c2026c1cac691a8e6e546e196c975c200de43;hb=b60035d8e86b712e586550f762c26caae353dc0e;hp=d83e60b3d5fcab4a237270f1c8555c4a8f5ab23b;hpb=8c308c2bf7f658945d80be9d5880361238635f5b;p=github%2FChocobozzz%2FPeerTube.git diff --git a/Gruntfile.js b/Gruntfile.js index d83e60b3d..fa0c2026c 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -3,7 +3,6 @@ module.exports = function (grunt) { var paths = { dist: 'dist', - tmp: '.tmp', jade: 'views/**/**/*.jade', css: 'public/stylesheets/*.css', vendor: 'public/stylesheets/vendor', @@ -31,10 +30,6 @@ module.exports = function (grunt) { browserifyOptions: { 'debug': true }, watch: true } - }, - dist: { - src: [ paths.js ], - dest: paths.browserified } }, copy: { @@ -53,25 +48,8 @@ module.exports = function (grunt) { paths.browserified ] }] - }, - dist: { - files: [{ - dot: true, - src: [ - paths.tmp, - paths.browserified, - '<%= paths.dist %>/*', - '!<%= paths.dist %>/.git*' - ] - }] } }, - csslint: { - options: { - csslintrc: '.csslintrc' - }, - src: paths.css - }, express: { dev: { options: { @@ -82,95 +60,6 @@ module.exports = function (grunt) { debug: true, background: true } - }, - test: { - options: { - script: paths.server, - harmony: true, - port: 9000, - node_env: 'test', - background: true, - debug: false - } - }, - prod: { - options: { - script: paths.server, - harmony: true, - port: 9000, - node_env: 'production', - background: false, - debug: false - } - } - }, - filerev: { - options: { - copy: false - }, - dist: { - cwd: 'dist', - src: [ paths.js, paths.css, paths.img ], - dest: 'dist', - expand: true - } - }, - htmlmin: { - dist: { - options: { - removeComments: true, - collapseWhitespace: true - }, - files: [ { - expand: true, - src: [ '<%= paths.dist %>/views/**/**/*.html' ] - } ] - } - }, - imagemin: { - dist: { - files: [{ - expand: true, - cwd: './public/images', - src: '*.{png,jpg,jpeg}', - dest: '<%= paths.dist %>/public/images' - }] - } - }, - jade: { - dist: { - options: { - pretty: true - }, - files: [ { - src: '**/*.jade', - dest: '<%= paths.dist %>/views', - ext: '.html', - cwd: './views', - expand: true - } ] - } - }, - jshint: { - all: { - src: paths.js, - options: { - jshintrc: true - } - } - }, - usemin: { - html: [ '<%= paths.dist %>/views/**/**/*.html' ], - css: [ '<%= paths.dist %>/public/stylesheets/*.css' ], - options: { - assetsDirs: [ '<%= paths.dist %>/public' ] - } - }, - useminPrepare: { - html: '<%= paths.dist %>/views/index.html', - options: { - root: 'public', - dest: '<%= paths.dist %>/public' } }, watch: { @@ -220,15 +109,12 @@ module.exports = function (grunt) { ) }) - // TODO - // Build dist directory for production - // Clean build grunt.registerTask('clean', [], function () { grunt.loadNpmTasks('grunt-contrib-clean') grunt.task.run( - 'clean:dist' + 'clean:dev' ) }) }