Gruntfile.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. src: ['pystone/Pystone.st'],
  30. main_class: 'Pystone',
  31. output_name: 'pystone/Program'
  32. },
  33. trivialserver: {
  34. src: ['trivialserver/TrivialServer.st'],
  35. main_class: 'TrivialServer',
  36. output_name: 'trivialserver/Program'
  37. }
  38. }
  39. });
  40. }