Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Grunt and dist files, correct copyright.
- Loading branch information
Frank Ludwig
committed
Sep 7, 2016
1 parent
8b18694
commit 5c67146
Showing
32 changed files
with
8,616 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
.idea | ||
.DS_Store | ||
._* | ||
_build | ||
*.swp | ||
*.swo | ||
docs/jsdoc/html | ||
node_modules/ | ||
bower_components/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
module.exports = function (grunt) { | ||
"use strict"; | ||
|
||
grunt.initConfig({ | ||
|
||
pkg: grunt.file.readJSON('package.json'), | ||
|
||
banner: '/**\n' + | ||
' * Galleria - v<%= pkg.version %> <%= grunt.template.today("yyyy-mm-dd") %>\n' + | ||
' * <%= pkg.homepage %>\n' + | ||
' *\n' + | ||
' * Copyright (c) 2010 - <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>\n' + | ||
' * Licensed under the <%= pkg.license %> License.\n' + | ||
' * https://raw.github.com/worseisbetter/galleria/master/LICENSE\n' + | ||
' *\n' + | ||
' */\n\n', | ||
|
||
clean: { | ||
files: ['dist'] | ||
}, | ||
|
||
uglify: { | ||
options: { | ||
banner: '<%= banner %>' | ||
}, | ||
dist: { | ||
files: { | ||
'dist/<%= pkg.name %>.min.js': ['src/<%= pkg.name %>.js'], | ||
'dist/plugins/flickr/<%= pkg.name %>.flickr.min.js': ['src/plugins/flickr/<%= pkg.name %>.flickr.js'], | ||
'dist/plugins/history/<%= pkg.name %>.history.min.js': ['src/plugins/history/<%= pkg.name %>.history.js'], | ||
'dist/plugins/picasa/<%= pkg.name %>.picasa.min.js': ['src/plugins/picasa/<%= pkg.name %>.picasa.js'], | ||
'dist/themes/classic/<%= pkg.name %>.classic.min.js': ['src/themes/classic/<%= pkg.name %>.classic.js'] | ||
} | ||
} | ||
}, | ||
|
||
cssmin: { | ||
target: { | ||
files: { | ||
'dist/themes/classic/<%= pkg.name %>.classic.min.css': ['src/themes/classic/<%= pkg.name %>.classic.css'] | ||
} | ||
} | ||
}, | ||
|
||
copy: { | ||
main: { | ||
files: [{ | ||
expand: true, | ||
cwd: 'src/', | ||
src: ['**/*'], | ||
dest: 'dist' | ||
}] | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadNpmTasks('grunt-contrib-clean'); | ||
grunt.loadNpmTasks('grunt-contrib-uglify'); | ||
grunt.loadNpmTasks('grunt-contrib-cssmin'); | ||
grunt.loadNpmTasks('grunt-contrib-copy'); | ||
|
||
// Default task(s). | ||
grunt.registerTask('default', ['clean', 'uglify', 'cssmin', 'copy']); | ||
|
||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.