mirror of
https://github.com/denoland/deno.git
synced 2024-12-13 19:12:20 -05:00
46b6037644
``` > deno compile --allow-read=. --include data-file.txt main.js ``` This only applies to files on the filesystem. For remote modules, that's going to have to wait for `import ... from "./data.txt" with { "type": "bytes" }` or whatever it will be.
41 lines
1.1 KiB
Text
41 lines
1.1 KiB
Text
{
|
|
"tempDir": true,
|
|
"tests": {
|
|
"success": {
|
|
"steps": [{
|
|
"if": "unix",
|
|
"args": "compile --allow-read=data-file.txt --include data-file.txt --output main main.js",
|
|
"output": "[WILDCARD]"
|
|
}, {
|
|
"if": "unix",
|
|
"commandName": "./main",
|
|
"args": [],
|
|
"output": "output.out",
|
|
"exitCode": 0
|
|
}, {
|
|
"if": "windows",
|
|
"args": "compile --allow-read=data-file.txt --include data-file.txt --output main.exe main.js",
|
|
"output": "[WILDCARD]"
|
|
}, {
|
|
"if": "windows",
|
|
"commandName": "./main.exe",
|
|
"args": [],
|
|
"output": "output.out",
|
|
"exitCode": 0
|
|
}]
|
|
},
|
|
"non_existent": {
|
|
"steps": [{
|
|
"if": "unix",
|
|
"args": "compile --include does_not_exist.txt --output main main.js",
|
|
"output": "non_existent.out",
|
|
"exitCode": 1
|
|
}, {
|
|
"if": "windows",
|
|
"args": "compile --include does_not_exist.txt --output main.exe main.js",
|
|
"output": "non_existent.out",
|
|
"exitCode": 1
|
|
}]
|
|
}
|
|
}
|
|
}
|