Gruntfile.js 1.2 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. options: {
  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. src: ['meta/MyScript.st'],
  23. main_class: 'MyScript',
  24. libraries: [
  25. 'Importer-Exporter', 'Compiler-Exceptions', 'Compiler-Core', 'Compiler-AST',
  26. 'Compiler-IR', 'Compiler-Inlining', 'Compiler-Semantic', 'Compiler-Interpreter', 'parser'
  27. ],
  28. output_name: 'meta/Program'
  29. },
  30. pystone: {
  31. src: ['pystone/Pystone.st'],
  32. main_class: 'Pystone',
  33. output_name: 'pystone/Program'
  34. },
  35. trivialserver: {
  36. src: ['trivialserver/TrivialServer.st'],
  37. main_class: 'TrivialServer',
  38. output_name: 'trivialserver/Program'
  39. }
  40. }
  41. });
  42. }