-
Notifications
You must be signed in to change notification settings - Fork 0
/
building.txt
96 lines (50 loc) · 1.93 KB
/
building.txt
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
%--------------%
//// YABS.JS \\\\
#>>----------------<<#
BUILD INSTRUCTIONS
#>>----------------<<#
\\\\ ////
%--------------%
PREREQUISITES
-------------
To start with, you will need node.js. Download and install from https://nodejs.org/.
To use YABS.js in any meaningful capacity, you will need the uglify-js package.
Install via command line using:
npm -g install uglify-js
To build some of the examples that use the preprocessor, you will also need the
MetaScript package. Install using:
npm -g install metascript
You should now be able to build from the command line.
All commands listed below should be run from the project root folder.
I. BUILD EVERYTHING AT ONCE
---------------------------
If you just want to build everything and be done with it, use:
node build
This will:
- build yabs.js and output build.js
- build all examples and output them into build/examples/.
- build all tests and output them into build/tests/.
II. BUILD YABS.JS
-----------------
To build YABS.js, use:
node yabs build.json
This will build yabs.js and output build.js.
III. BUILD ALL EXAMPLES
-----------------------
To build all examples, use:
node build examples
This will build all examples and output them into build/examples/.
IV. BUILD ALL TESTS
-------------------
To build all tests, use:
node build tests
This will build all tests and output them into build/tests/.
V. BUILD A SPECIFIC TEST OR EXAMPLE
-----------------------------------
To build a specific example, use:
node build examples/<example_name>
For example:
node build examples/minimal
This will build the "minimal" example and output it into build/examples/minimal.
Similarly, to build a specific test, use:
node build test/<test_name>