2
0

Gruntfile.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. module.exports = function(grunt) {
  2. grunt.loadNpmTasks('../../node_modules/amber-dev');
  3. grunt.registerTask('default', ['amberc:hello']);
  4. grunt.initConfig({
  5. pkg: grunt.file.readJSON('../package.json'),
  6. amberc: {
  7. options: {
  8. amber_dir: '../bower_components/amber',
  9. closure_jar: ''
  10. },
  11. hello: {
  12. src: ['hello/Hello.st'],
  13. main_class: 'Hello',
  14. amd_namespace: 'amber_examples_hello',
  15. output_name: 'hello/Program'
  16. },
  17. benchfib: {
  18. src: ['benchfib/Benchfib.st'],
  19. main_class: 'Benchfib',
  20. amd_namespace: 'amber_examples_benchfib',
  21. output_name: 'benchfib/Program'
  22. },
  23. meta: {
  24. src: ['meta/MyScript.st'],
  25. main_class: 'MyScript',
  26. libraries: [
  27. 'Kernel-ImportExport', 'Compiler-Exceptions', 'Compiler-Core', 'Compiler-AST',
  28. 'Compiler-IR', 'Compiler-Inlining', 'Compiler-Semantic', 'Compiler-Interpreter', 'parser'
  29. ],
  30. amd_namespace: 'amber_examples_meta',
  31. output_name: 'meta/Program'
  32. },
  33. pystone: {
  34. src: ['pystone/Pystone.st'],
  35. main_class: 'Pystone',
  36. amd_namespace: 'amber_examples_pystone',
  37. output_name: 'pystone/Program'
  38. },
  39. trivialserver: {
  40. src: ['trivialserver/TrivialServer.st'],
  41. main_class: 'TrivialServer',
  42. amd_namespace: 'amber_examples_trivialserver',
  43. output_name: 'trivialserver/Program'
  44. }
  45. }
  46. });
  47. }