mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 10:49:59 +01:00
* Drag to crop rebase step (#244) * 1.1.0 * 1.2.0 * added plugin Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * drag to crop enabled Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * fix Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * improvement Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * done dragToCrop Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * done with updated ui Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * solved bug for multiple consecutive crops Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * fixed and updated Signed-off-by: tech4GT <varun.gupta1798@gmail.com> * externalized image area select code * major refactoring of crop drag and demo ui modules * work on crop module and ui refactor * completed Step drag ui refactor * revert unbuilt to rebase * built and version bump * various fixes
52 lines
1.1 KiB
JavaScript
52 lines
1.1 KiB
JavaScript
module.exports = function(grunt) {
|
|
|
|
grunt.loadNpmTasks('grunt-browserify');
|
|
grunt.loadNpmTasks('grunt-contrib-uglify');
|
|
|
|
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
|
|
|
|
grunt.initConfig({
|
|
|
|
pkg: grunt.file.readJSON('package.json'),
|
|
|
|
watch: {
|
|
options : {
|
|
livereload: true
|
|
},
|
|
source: {
|
|
files: [
|
|
'src/*.js',
|
|
'src/*/*.js',
|
|
'src/*/*/*.js',
|
|
'Gruntfile.js'
|
|
],
|
|
tasks: [ 'build:js' ]
|
|
}
|
|
},
|
|
|
|
browserify: {
|
|
dist: {
|
|
src: ['src/ImageSequencer.js'],
|
|
dest: 'dist/image-sequencer.js'
|
|
}
|
|
},
|
|
|
|
uglify: {
|
|
dist: {
|
|
src: ['./dist/image-sequencer.js'],
|
|
dest: './dist/image-sequencer.min.js'
|
|
}
|
|
}
|
|
|
|
});
|
|
|
|
/* Default (development): Watch files and build on change. */
|
|
grunt.registerTask('default', ['watch']);
|
|
|
|
grunt.registerTask('build', [
|
|
'browserify:dist',
|
|
'uglify:dist'
|
|
]);
|
|
|
|
};
|