parent
a2a5f7e440
commit
ee2630b93a
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -0,0 +1,81 @@
|
||||
module.exports = (grunt) ->
|
||||
|
||||
grunt.initConfig
|
||||
|
||||
pkg: grunt.file.readJSON 'package.json'
|
||||
|
||||
concat:
|
||||
|
||||
js:
|
||||
options:
|
||||
separator: "\n"
|
||||
src: [
|
||||
'bower_components/jQuery/dist/jquery.min.js'
|
||||
'bower_components/js-md5/js/md5.min.js'
|
||||
'bower_components/mousetrap/mousetrap.min.js'
|
||||
'bower_components/mousetrap/plugins/global-bind/mousetrap-global-bind.min.js'
|
||||
'../assets/js/*.js'
|
||||
]
|
||||
dest: '../assets/min/main.js'
|
||||
|
||||
css:
|
||||
options:
|
||||
separator: "\n"
|
||||
src: [
|
||||
'../assets/css/*.css'
|
||||
]
|
||||
dest: '../assets/min/main.css'
|
||||
|
||||
uglify:
|
||||
|
||||
assets:
|
||||
options:
|
||||
banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */\n'
|
||||
files:
|
||||
'../assets/min/main.js': '../assets/min/main.js'
|
||||
|
||||
cssmin:
|
||||
|
||||
assets:
|
||||
options:
|
||||
banner: '/*! <%= pkg.name %> <%= pkg.version %> | <%= grunt.template.today("yyyy-mm-dd") %> */'
|
||||
files:
|
||||
'../assets/min/main.css': '../assets/min/main.css'
|
||||
|
||||
watch:
|
||||
|
||||
js:
|
||||
files: [
|
||||
'../assets/js/*.js'
|
||||
]
|
||||
tasks: ['js']
|
||||
options:
|
||||
spawn: false
|
||||
interrupt: true
|
||||
|
||||
css:
|
||||
files: [
|
||||
'../assets/css/*.css'
|
||||
]
|
||||
tasks: ['css']
|
||||
options:
|
||||
spawn: false
|
||||
interrupt: true
|
||||
|
||||
require('load-grunt-tasks')(grunt)
|
||||
|
||||
grunt.registerTask 'default', ->
|
||||
grunt.task.run [
|
||||
'js'
|
||||
'css'
|
||||
]
|
||||
|
||||
grunt.registerTask 'js', [
|
||||
'concat:js'
|
||||
'uglify:assets'
|
||||
]
|
||||
|
||||
grunt.registerTask 'css', [
|
||||
'concat:css'
|
||||
'cssmin:assets'
|
||||
]
|
@ -0,0 +1,8 @@
|
||||
{
|
||||
"name": "Lychee",
|
||||
"dependencies": {
|
||||
"jQuery": "~2.1.0",
|
||||
"js-md5": "~1.1.0",
|
||||
"mousetrap": "~1.4.6"
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "Lychee",
|
||||
"version": "2.1.1",
|
||||
"description": "Self-hosted photo-management done right.",
|
||||
"authors": "Tobias Reich <tobias.reich.ich@gmail.com>",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/electerious/Lychee.git"
|
||||
},
|
||||
"devDependencies": {
|
||||
"grunt": "~0.4.2",
|
||||
"grunt-contrib-uglify": "~0.4.0",
|
||||
"grunt-contrib-concat": "~0.3.0",
|
||||
"grunt-contrib-coffee": "~0.10.1",
|
||||
"grunt-contrib-cssmin": "~0.9.0",
|
||||
"grunt-contrib-clean": "~0.5.0",
|
||||
"grunt-contrib-watch": "~0.6.0",
|
||||
"load-grunt-tasks": "~0.4.0"
|
||||
}
|
||||
}
|
Loading…
Reference in new issue