update assets location

This commit is contained in:
Henrique Dias 2016-06-16 17:08:10 +01:00
parent f9ae9f2619
commit 18afaeb093
23 changed files with 7 additions and 7 deletions

View File

@ -8,11 +8,11 @@ module.exports = function(grunt) {
grunt.initConfig({ grunt.initConfig({
watch: { watch: {
sass: { sass: {
files: ['assets/public_src/css/**/*.css'], files: ['src/css/**/*.css'],
tasks: ['concat', 'cssmin'] tasks: ['concat', 'cssmin']
}, },
js: { js: {
files: ['assets/public_src/js/**/*.js'], files: ['src/js/**/*.js'],
tasks: ['uglify:main'] tasks: ['uglify:main']
}, },
}, },
@ -24,7 +24,7 @@ module.exports = function(grunt) {
'node_modules/animate.css/source/bouncing_entrances/bounceInRight.css', 'node_modules/animate.css/source/bouncing_entrances/bounceInRight.css',
'node_modules/animate.css/source/fading_entrances/fadeIn.css', 'node_modules/animate.css/source/fading_entrances/fadeIn.css',
'node_modules/animate.css/source/fading_exits/fadeOut.css', 'node_modules/animate.css/source/fading_exits/fadeOut.css',
'assets/public_src/css/main.css' 'src/css/main.css'
], ],
dest: 'temp/css/main.css', dest: 'temp/css/main.css',
}, },
@ -35,7 +35,7 @@ module.exports = function(grunt) {
expand: true, expand: true,
flatten: true, flatten: true,
src: ['node_modules/font-awesome/fonts/**'], src: ['node_modules/font-awesome/fonts/**'],
dest: 'assets/public/fonts' dest: 'assets/dist/public/fonts'
}], }],
}, },
}, },
@ -56,7 +56,7 @@ module.exports = function(grunt) {
uglify: { uglify: {
plugins: { plugins: {
files: { files: {
'assets/public/js/plugins.min.js': ['node_modules/jquery/dist/jquery.min.js', 'assets/dist/public/js/plugins.min.js': ['node_modules/jquery/dist/jquery.min.js',
'node_modules/perfect-scrollbar/dist/js/min/perfect-scrollbar.jquery.min.js', 'node_modules/perfect-scrollbar/dist/js/min/perfect-scrollbar.jquery.min.js',
'node_modules/showdown/dist/showdown.min.js', 'node_modules/showdown/dist/showdown.min.js',
'node_modules/noty/js/noty/packaged/jquery.noty.packaged.min.js', 'node_modules/noty/js/noty/packaged/jquery.noty.packaged.min.js',
@ -67,7 +67,7 @@ module.exports = function(grunt) {
}, },
main: { main: {
files: { files: {
'assets/public/js/app.min.js': ['assets/public_src/js/**/*.js'] 'assets/dist/public/js/app.min.js': ['src/js/**/*.js']
} }
} }
} }

View File

Before

Width:  |  Height:  |  Size: 357 KiB

After

Width:  |  Height:  |  Size: 357 KiB

View File

@ -1,6 +1,6 @@
//go:generate go get github.com/jteeuwen/go-bindata //go:generate go get github.com/jteeuwen/go-bindata
//go:generate go install github.com/jteeuwen/go-bindata/go-bindata //go:generate go install github.com/jteeuwen/go-bindata/go-bindata
//go:generate go-bindata -prefix assets/ -pkg assets -o routes/assets/assets.go assets/templates/ assets/public/... //go:generate go-bindata -prefix assets/dist -pkg assets -o routes/assets/assets.go assets/dist/...
// Package hugo makes the bridge between the static website generator Hugo // Package hugo makes the bridge between the static website generator Hugo
// and the webserver Caddy, also providing an administrative user interface. // and the webserver Caddy, also providing an administrative user interface.