Gruntfile.js 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. module.exports = function(grunt) {
  2. grunt.loadTasks('../vendor/amber/grunt/tasks');
  3. grunt.registerTask('default', ['amberc:hello']);
  4. grunt.initConfig({
  5. pkg: grunt.file.readJSON('../package.json'),
  6. amberc: {
  7. _config: {
  8. amber_dir: '../vendor/amber',
  9. closure_jar: ''
  10. },
  11. hello: {
  12. src: ['hello/Hello.st'],
  13. main_class: 'Hello',
  14. output_name: 'hello/Program'
  15. },
  16. benchfib: {
  17. src: ['benchfib/Benchfib.st'],
  18. main_class: 'Benchfib',
  19. output_name: 'benchfib/Program'
  20. },
  21. meta: {
  22. working_dir: 'meta',
  23. src: ['MyScript.st'],
  24. main_class: 'MyScript',
  25. libraries: ['parser','Compiler'],
  26. output_name: 'Program'
  27. },
  28. pystone: {
  29. working_dir: 'pystone',
  30. src: ['Pystone.st'],
  31. main_class: 'Pystone',
  32. output_name: 'Program'
  33. },
  34. trivialserver: {
  35. working_dir: 'trivialserver',
  36. src: ['TrivialServer.st'],
  37. main_class: 'TrivialServer',
  38. output_name: 'Program'
  39. }
  40. }
  41. });
  42. }