Skip to content

Commit

Permalink
#119 grunt
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Mar 14, 2019
1 parent 6159bb4 commit 6f32ca0
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,10 @@ module.exports = function(grunt) {
pkg: grunt.file.readJSON('package.json'),
htmlbuild: {
dist: {
src: 'html/*.html',
dest: buildDir,
src: [ 'html/*.html' ],
dest: buildDir + '/',
options: {
beautify: true,
// prefix: '//some-cdn',
relative: true,
basePath: false,
sections: {
layout: {
head: 'html/_head.html',
Expand All @@ -25,8 +22,7 @@ module.exports = function(grunt) {
},
jshint: {
code: {
options: {
},
options: { },
src: ['js/**/*.js'],
},
},
Expand All @@ -35,9 +31,7 @@ module.exports = function(grunt) {
banner: '/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
},
build: {
src: [
'js/**/*.js'
],
src: [ 'js/**/*.js' ],
dest: buildDir + '/<%= pkg.version %>/js/<%= pkg.name %>.min.js'
}
},
Expand Down Expand Up @@ -105,9 +99,7 @@ module.exports = function(grunt) {
{
expand: true,
cwd: 'images',
src: [
'*'
],
src: [ '*' ],
dest: buildDir + '/images',
filter: 'isFile'
},
Expand All @@ -132,5 +124,5 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-sass-lint');
grunt.loadNpmTasks('grunt-replace');
grunt.registerTask('default', ['build']);
grunt.registerTask('build', ['copy', 'htmlbuild', 'uglify', 'jshint', 'jslint', 'sasslint', 'sass']);
grunt.registerTask('build', ['htmlbuild', 'copy', 'uglify', 'jshint', 'jslint', 'sasslint', 'sass']);
};

0 comments on commit 6f32ca0

Please sign in to comment.