forked from sergiomajluf/p5.js-sublime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
P5.sublime-build
35 lines (27 loc) · 1.53 KB
/
P5.sublime-build
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
{
"selector": "source.js",
"cmd": ["p5", "--sketch=$file_path", "--output=$file_path/build-tmp", "--run", "--force"],
"file_regex": "^(...*?):([0-9]*)",
"encoding": "ISO8859-1",
// if you choose to install p5.js just in your home dir then use for the cmd "~/p5.js" instead of "p5.js"
"variants": [
{ "cmd": ["p5.js", "--sketch=$file_path", "--output=$file_path/build-tmp", "--present", "--force"],
"name": "Run sketch fullscreen"
},
{ "cmd": ["p5.js", "--sketch=$file_path", "--output=$file_path/application.linux32", "--export", "--platform=linux", "--bits=32", "--force"],
"name": "Export sketch as a 32-bit linux application"
},
{ "cmd": ["p5.js", "--sketch=$file_path", "--output=$file_path/application.linux64", "--export", "--platform=linux", "--bits=64", "--force"],
"name": "Export sketch as a 64-bit linux application"
},
{ "cmd": ["p5.js", "--sketch=$file_path", "--output=$file_path/application.macosx", "--export", "--platform=macosx", "--force"],
"name": "Export sketch as a macosx application"
},
{ "cmd": ["p5.js", "--sketch=$file_path", "--output=$file_path/application.windows32", "--export", "--platform=windows", "--bits=32", "--force"],
"name": "Export sketch as a 32-bit windows application"
},
{ "cmd": ["p5.js", "--sketch=$file_path", "--output=$file_path/application.windows64", "--export", "--platform=windows", "--bits=64", "--force"],
"name": "Export sketch as a 64-bit windows application"
}
]
}