Gruntfile.js 613 B

12345678910111213141516171819202122232425262728
  1. module.exports = function(grunt) {
  2. // Setting grunt base as sigma's root directory
  3. grunt.file.setBase('../../');
  4. // Registering needed files
  5. var files = ['supervisor.js', 'worker.js'].map(function(p) {
  6. return __dirname + '/' + p;
  7. });
  8. // Project configuration:
  9. grunt.initConfig({
  10. forceAtlas2: {
  11. prod: {
  12. files: {
  13. 'build/plugins/sigma.layout.forceAtlas2.min.js': files
  14. }
  15. }
  16. }
  17. });
  18. // Loading tasks
  19. grunt.loadTasks(__dirname + '/tasks');
  20. // By default, we will crush and then minify
  21. grunt.registerTask('default', ['forceAtlas2:prod']);
  22. };