forked from amber-smalltalk/amber
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
100 lines (92 loc) · 3.7 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
module.exports = function(grunt) {
grunt.loadTasks('./grunt/tasks');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['peg', 'amberc:all']);
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
meta: {
banner: '/*!\n <%= pkg.title || pkg.name %> - v<%= pkg.version %> - <%= grunt.template.today("yyyy-mm-dd") %> \n License: <%= pkg.license.type %> \n*/\n'
},
peg: {
amber_parser: {
options: {
cache: true,
export_var: 'globals.SmalltalkParser'
},
src: 'support/parser.pegjs',
dest: 'support/parser.js',
}
},
amberc: {
options: {
amber_dir: process.cwd(),
closure_jar: ''
},
all: {
output_dir : 'src',
src: ['src/Kernel-Objects.st', 'src/Kernel-Classes.st', 'src/Kernel-Methods.st', 'src/Kernel-Collections.st',
'src/Kernel-Infrastructure.st', 'src/Kernel-Exceptions.st', 'src/Kernel-Transcript.st', 'src/Kernel-Announcements.st',
'src/Kernel-ImportExport.st', 'src/Compiler-Exceptions.st', 'src/Compiler-Core.st', 'src/Compiler-AST.st',
'src/Compiler-IR.st', 'src/Compiler-Inlining.st', 'src/Compiler-Semantic.st', 'src/Compiler-Interpreter.st',
'src/Web.st', 'src/SUnit.st', 'src/IDE.st',
'src/Kernel-Tests.st', 'src/Compiler-Tests.st', 'src/SUnit-Tests.st',
'src/Helios-Core.st', 'src/Helios-Exceptions.st', 'src/Helios-Announcements.st',
'src/Helios-KeyBindings.st', 'src/Helios-Layout.st',
'src/Helios-Commands-Core.st', 'src/Helios-Commands-Tools.st', 'src/Helios-Commands-Browser.st',
'src/Helios-References.st', 'src/Helios-Inspector.st', 'src/Helios-Browser.st',
'src/Helios-Transcript.st', 'src/Helios-Workspace.st', 'src/Helios-Debugger.st',
'src/Helios-Workspace-Tests.st',
'src/Benchfib.st', 'src/Examples.st', 'src/Spaces.st'
],
jsGlobals: ['navigator']
},
amber_kernel: {
output_dir : 'src',
src: ['src/Kernel-Objects.st', 'src/Kernel-Classes.st', 'src/Kernel-Methods.st', 'src/Kernel-Collections.st',
'src/Kernel-Infrastructure.st', 'src/Kernel-Exceptions.st', 'src/Kernel-Transcript.st', 'src/Kernel-Announcements.st']
},
amber_web: {
output_dir : 'src',
src: ['src/Web.st', 'src/SUnit.st']
},
amber_IDE: {
output_dir : 'src',
src: ['src/IDE.st'],
libraries: ['Web']
},
amber_tests: {
output_dir : 'src',
src: ['src/Kernel-Tests.st', 'src/Compiler-Tests.st', 'src/SUnit-Tests.st'],
libraries: ['SUnit']
},
amber_test_runner: {
src: ['test/Test.st'],
libraries: [
'Compiler-Exceptions', 'Compiler-Core', 'Compiler-AST',
'Compiler-IR', 'Compiler-Inlining', 'Compiler-Semantic', 'Compiler-Interpreter', 'parser',
'SUnit', 'Kernel-ImportExport',
'Kernel-Tests', 'Compiler-Tests', 'SUnit-Tests'],
main_class: 'NodeTestRunner',
output_name: 'test/amber_test_runner'
},
amber_cli: {
output_dir: 'cli/src',
src: ['cli/src/AmberCli.st'],
libraries: [
'Compiler-Exceptions', 'Compiler-Core', 'Compiler-AST',
'Compiler-IR', 'Compiler-Inlining', 'Compiler-Semantic', 'Compiler-Interpreter', 'parser'
],
main_class: 'AmberCli',
output_name: '../support/amber-cli',
amd_namespace: 'amber_cli'
}
},
jshint: {
amber: ['src/*.js'],
server: ['server/*.js'],
repl: ['repl/*.js'],
tests: ['test/*.js'],
grunt: ['grunt.js', 'grunt/**/*.js']
}
});
};