flatten imported files in index.html
This commit is contained in:
Родитель
4b07eb9836
Коммит
cdc98e4e18
2
Jakefile
2
Jakefile
|
@ -306,7 +306,7 @@ task('run', [ 'default' ], { async: true }, function (port) {
|
|||
|
||||
task('local', [ 'default' ], { async: true }, function() {
|
||||
jake.exec(
|
||||
[ 'node build/shell.js TD_ALLOW_EDITOR=true TD_LOCAL_EDITOR_PATH=.' ],
|
||||
[ 'node build/shell.js TD_ALLOW_EDITOR=true TD_LOCAL_EDITOR_PATH=build/' ],
|
||||
{ printStdout: true, printStderr: true },
|
||||
function() { complete(); }
|
||||
)
|
||||
|
|
|
@ -97,8 +97,8 @@ if (window.localStorage &&
|
|||
}
|
||||
</script>
|
||||
<style type="text/css">
|
||||
@import url("./css/default.css");
|
||||
@import url("./css/editor.css");
|
||||
@import url("./default.css");
|
||||
@import url("./editor.css");
|
||||
</style>
|
||||
<script type="text/javascript"> statusMsg("css imported"); </script>
|
||||
<script src="./browser.js" type="text/javascript"></script>
|
||||
|
|
|
@ -3431,17 +3431,18 @@ function tdupload(args:string[])
|
|||
"build/touchdevelop.tgz",
|
||||
]
|
||||
|
||||
args.forEach(path => {
|
||||
|
||||
fs.readFile(path, (err, data) => {
|
||||
args.forEach(p => {
|
||||
fs.readFile(p, (err, data) => {
|
||||
if (err) {
|
||||
console.log(err)
|
||||
return
|
||||
}
|
||||
|
||||
var fileName = path.basename(p)
|
||||
var mime = getMime(p)
|
||||
var url = "https://tdupload.azurewebsites.net/upload?access_token=" + key
|
||||
url += "&path=" + lbl + "/" + encodeURIComponent(path)
|
||||
url += "&contentType=" + encodeURIComponent(getMime(path))
|
||||
url += "&path=" + lbl + "/" + encodeURIComponent(fileName)
|
||||
url += "&contentType=" + encodeURIComponent(mime)
|
||||
|
||||
tdevGet(url, (resp) => {
|
||||
console.log(path + ": " + resp)
|
||||
|
|
Загрузка…
Ссылка в новой задаче