Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
dist/*.js
dist/*.js
Gruntfile.js
137 changes: 70 additions & 67 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,81 +1,84 @@
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-browserify');

require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);
grunt.loadNpmTasks('grunt-browserify');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Uh oh - were these commits supposed to make it into here? Just checking!

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, i see here! all good then! #566 (comment)


grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
require('matchdep').filterDev('grunt-*').forEach(grunt.loadNpmTasks);

watch: {
options: {
livereload: true
},
source: {
files: [
'src/*.js',
'src/*/*.js',
'Gruntfile.js'
],
tasks: ['build:js']
}
},
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

browserify: {
dist: {
src: [
'src/PublicLab.Editor.js'
],
dest: 'dist/PublicLab.Editor.js'
},
debug: {
options: {
browserifyOptions: {
debug: true
}
watch: {
options : {
livereload: true
},
source: {
files: [
'src/*.js',
'src/*/*.js',
'Gruntfile.js'
],
tasks: [ 'build:js' ]
}
},

browserify: {
dist: {
src: [
'src/PublicLab.Editor.js'
],
dest: 'dist/PublicLab.Editor.js'
},
debug: {
options : {
browserifyOptions: {
debug: true
}
},
src: [
'src/PublicLab.Editor.js'
],
dest: 'dist/PublicLab.Editor.js'
}
},
src: [
'src/PublicLab.Editor.js'
],
dest: 'dist/PublicLab.Editor.js'
}
},

jasmine: {
publiclabeditor: {
src: 'dist/*.js',
options: {
specs: 'spec/javascripts/*spec.js',
vendor: [
'node_modules/jquery/dist/jquery.min.js',
'node_modules/bootstrap/dist/js/bootstrap.min.js',
'node_modules/blueimp-file-upload/js/vendor/jquery.ui.widget.js',
'node_modules/blueimp-file-upload/js/jquery.iframe-transport.js',
'node_modules/blueimp-file-upload/js/jquery.fileupload.js',
'node_modules/typeahead.js/dist/typeahead.jquery.js',
'node_modules/typeahead.js/dist/bloodhound.js',
'node_modules/bootstrap-tokenfield/dist/bootstrap-tokenfield.js',
'node_modules/jasmine-jquery/lib/jasmine-jquery.js',
'node_modules/jasmine-ajax/lib/mock-ajax.js',
'https://maps.googleapis.com/maps/api/js?libraries=places&language=en&key=AIzaSyDWgc7p4WWFsO3y0MTe50vF4l4NUPcPuwE',
'node_modules/leaflet-blurred-location/dist/Leaflet.BlurredLocation.js',
'node_modules/leaflet/dist/leaflet.js'
]
jasmine: {
publiclabeditor: {
src: 'dist/*.js',
options: {
specs: 'spec/javascripts/*spec.js',
vendor: [
'node_modules/jquery/dist/jquery.min.js',
'node_modules/popper.js/dist/umd/popper.min.js',
'node_modules/bootstrap/dist/js/bootstrap.js',
'node_modules/blueimp-file-upload/js/vendor/jquery.ui.widget.js',
'node_modules/blueimp-file-upload/js/jquery.iframe-transport.js',
'node_modules/blueimp-file-upload/js/jquery.fileupload.js',
'node_modules/typeahead.js/dist/typeahead.jquery.js',
'node_modules/typeahead.js/dist/bloodhound.js',
'node_modules/bootstrap-tokenfield/dist/bootstrap-tokenfield.js',
'node_modules/jasmine-jquery/lib/jasmine-jquery.js',
'node_modules/jasmine-ajax/lib/mock-ajax.js',
'https://maps.googleapis.com/maps/api/js?libraries=places&language=en&key=AIzaSyDWgc7p4WWFsO3y0MTe50vF4l4NUPcPuwE',
'node_modules/leaflet-blurred-location/dist/Leaflet.BlurredLocation.js',
'node_modules/leaflet/dist/leaflet.js'
]
}
}
}
}
}

});
});

/* Default (development): Watch files and build on change. */
grunt.registerTask('default', ['watch' , 'jasmine']);

/* Default (development): Watch files and build on change. */
grunt.registerTask('default', ['watch', 'jasmine']);
grunt.registerTask('build', [
'browserify:dist'
]);

grunt.registerTask('build', [
'browserify:dist'
]);
grunt.registerTask('debug', [
'browserify:debug'
]);

grunt.registerTask('debug', [
'browserify:debug'
]);
grunt.loadNpmTasks('grunt-contrib-jasmine');

grunt.loadNpmTasks('grunt-contrib-jasmine');
};
Loading