Add basic distribution for accountant web.
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
libs: [
|
||||
dist: [
|
||||
'<%= accountant.frontend.dist %>'
|
||||
]
|
||||
};
|
||||
|
@ -1,6 +1,22 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
"bootstrap-select.css.map": {
|
||||
src: 'bower_components/bootstrap-select/dist/css/bootstrap-select.css.map',
|
||||
dest: '<%= paths.frontend_build %>/css/bootstrap-select.css.map'
|
||||
dist: {
|
||||
files: [{
|
||||
expand: true,
|
||||
dot: true,
|
||||
cwd: '<%= accountant.frontend.src %>',
|
||||
dest: '<%= accountant.frontend.dist %>',
|
||||
src :[
|
||||
'*.html',
|
||||
'views/*.html',
|
||||
]
|
||||
}]
|
||||
},
|
||||
styles: {
|
||||
expand: true,
|
||||
cwd: '<%= accountant.frontend.src %>/css',
|
||||
dest: '.tmp/css',
|
||||
src: '{,*/}*.css'
|
||||
}
|
||||
};
|
||||
|
17
grunt-config/filerev.js
Normal file
17
grunt-config/filerev.js
Normal file
@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
options: {
|
||||
encoding: 'utf-8',
|
||||
algorithm: 'md5',
|
||||
length: 8
|
||||
},
|
||||
dist: {
|
||||
src: [
|
||||
'<%= accountant.frontend.dist %>/css/*.css',
|
||||
'<%= accountant.frontend.dist %>/js/*.js',
|
||||
'!<%= accountant.frontend.dist %>/css/*.map.css',
|
||||
'!<%= accountant.frontend.dist %>/js/*.map.js'
|
||||
]
|
||||
},
|
||||
};
|
16
grunt-config/usemin.js
Normal file
16
grunt-config/usemin.js
Normal file
@ -0,0 +1,16 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
html: ['<%= accountant.frontend.dist %>/{,*/}*.html'],
|
||||
css: ['<%= accountant.frontend.dist %>/css/{,*/}*.css'],
|
||||
js: ['<%= accountant.frontend.dist %>/js/{,*/}*.js'],
|
||||
options: {
|
||||
assetsDir: [
|
||||
'<%= accountant.frontend.dist %>',
|
||||
'<%= accountant.frontend.dist %>/css',
|
||||
],
|
||||
patterns: {
|
||||
js: [[/(images\/[^''""]*\.(png|jpg|jpeg|gif|webp|svg))/g, 'Replacing references to images']]
|
||||
}
|
||||
}
|
||||
};
|
17
grunt-config/useminPrepare.js
Normal file
17
grunt-config/useminPrepare.js
Normal file
@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
module.exports = {
|
||||
html: '<%= accountant.frontend.src %>/index.html ',
|
||||
options: {
|
||||
dest: '<%= accountant.frontend.dist %>',
|
||||
flow: {
|
||||
html: {
|
||||
steps: {
|
||||
js: ['concat', 'uglify'],
|
||||
css: ['cssmin']
|
||||
},
|
||||
post: {}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user