update assets location
This commit is contained in:
77
assets/Gruntfile.js
Normal file
77
assets/Gruntfile.js
Normal file
@@ -0,0 +1,77 @@
|
||||
module.exports = function(grunt) {
|
||||
grunt.loadNpmTasks('grunt-contrib-watch');
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-contrib-concat');
|
||||
grunt.loadNpmTasks('grunt-contrib-cssmin');
|
||||
grunt.loadNpmTasks('grunt-contrib-uglify');
|
||||
|
||||
grunt.initConfig({
|
||||
watch: {
|
||||
sass: {
|
||||
files: ['src/css/**/*.css'],
|
||||
tasks: ['concat', 'cssmin']
|
||||
},
|
||||
js: {
|
||||
files: ['src/js/**/*.js'],
|
||||
tasks: ['uglify:main']
|
||||
},
|
||||
},
|
||||
concat: {
|
||||
css: {
|
||||
src: ['node_modules/normalize.css/normalize.css',
|
||||
'node_modules/font-awesome/css/font-awesome.css',
|
||||
'node_modules/animate.css/source/_base.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_exits/fadeOut.css',
|
||||
'src/css/main.css'
|
||||
],
|
||||
dest: 'temp/css/main.css',
|
||||
},
|
||||
},
|
||||
copy: {
|
||||
main: {
|
||||
files: [{
|
||||
expand: true,
|
||||
flatten: true,
|
||||
src: ['node_modules/font-awesome/fonts/**'],
|
||||
dest: 'assets/dist/public/fonts'
|
||||
}],
|
||||
},
|
||||
},
|
||||
cssmin: {
|
||||
options: {
|
||||
keepSpecialComments: 0
|
||||
},
|
||||
target: {
|
||||
files: [{
|
||||
expand: true,
|
||||
cwd: 'temp/css/',
|
||||
src: ['*.css', '!*.min.css'],
|
||||
dest: 'assets/public/css/',
|
||||
ext: '.min.css'
|
||||
}]
|
||||
}
|
||||
},
|
||||
uglify: {
|
||||
plugins: {
|
||||
files: {
|
||||
'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/showdown/dist/showdown.min.js',
|
||||
'node_modules/noty/js/noty/packaged/jquery.noty.packaged.min.js',
|
||||
'node_modules/jquery-pjax/jquery.pjax.js',
|
||||
'node_modules/jquery-serializejson/jquery.serializejson.min.js',
|
||||
]
|
||||
}
|
||||
},
|
||||
main: {
|
||||
files: {
|
||||
'assets/dist/public/js/app.min.js': ['src/js/**/*.js']
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
grunt.registerTask('default', ['copy', 'concat', 'cssmin', 'uglify']);
|
||||
};
|
||||
|
Before Width: | Height: | Size: 357 KiB After Width: | Height: | Size: 357 KiB |
38
assets/package.json
Normal file
38
assets/package.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"name": "caddy-hugo",
|
||||
"version": "1.0.0",
|
||||
"description": "Deploy your Hugo website and enjoy of an admin interface with Caddy server.",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/hacdias/caddy-hugo.git"
|
||||
},
|
||||
"main": "Gruntfile.js",
|
||||
"author": "Henrique Dias <hacdias@gmail.com>",
|
||||
"license": "MIT",
|
||||
"bugs": {
|
||||
"url": "https://github.com/hacdias/caddy-hugo/issues"
|
||||
},
|
||||
"homepage": "https://github.com/hacdias/caddy-hugo#readme",
|
||||
"scripts": {
|
||||
"install": "napa defunkt/jquery-pjax"
|
||||
},
|
||||
"dependencies": {
|
||||
"animate.css": "^3.4.0",
|
||||
"font-awesome": "^4.4.0",
|
||||
"jquery": "^2.1.4",
|
||||
"jquery-serializejson": "^2.5.0",
|
||||
"normalize.css": "^3.0.3",
|
||||
"noty": "^2.3.6",
|
||||
"showdown": "^1.2.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "^0.4.5",
|
||||
"grunt-contrib-concat": "^0.5.1",
|
||||
"grunt-contrib-copy": "^0.8.1",
|
||||
"grunt-contrib-cssmin": "^0.14.0",
|
||||
"grunt-contrib-sass": "^0.9.2",
|
||||
"grunt-contrib-uglify": "^0.11.1",
|
||||
"grunt-contrib-watch": "^0.6.1",
|
||||
"napa": "^1.2.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user