Comments (4)
The way typescript does it is if you have a file, myapp.ts, it will compile that to myapp.js. It's very basic but very simple. You don't even need a tsconfig (I believe).
Project before compilation:
/project
myapp.ts
After compilation:
/project
myapp.ts
myapp.js
from vscode-as3mxml.
A starting slash is probably considered an absolute path by the compiler:
"js-output": "/public/js",
Did you try this?
"js-output": "public/js",
from vscode-as3mxml.
That's what I have now:
{
"config": "js",
"compilerOptions": {
"debug": false,
"source-path": [
"src"
],
"js-output": "public/js",
"html-template": "astemplate.html",
"source-map": true
},
"mainClass": "MyApp"
}
This is the output in the /project/public directory:
It publishes to the /public/js folder the sub folders /bin/js-debug/
/project
/src
- myapp.as
/public
/js
/bin
/js-debug
/library
/org
- index.html
- myapp.as
- myapp.as.map
What I'd like if possible is export one single js in the same directory or to the /public directory:
/project
/src
- myapp.as
- myapp.js
/project
/src
- myapp.as
/public
- myapp.js
Or sub directory:
/project
/src
- myapp.as
/public
/js
- myapp.as
- myapp.as.map
In this case, the html page is already built and in the public directory. So I just need to get the js app into the root or sub directory of the index page if possible.
Side note: What are, /library and /org used for? Can they not be exported in debug?
from vscode-as3mxml.
What I'd like if possible is export one single js in the same directory or to the /public directory:
Royale does not currently support outputting a single JS file in a specific directory. It will always create js-debug, js-release, or both. If you do a release build, it will generate a single JS file, but it will go in the js-release directory.
You'll need to open a feature request for https://github.com/apache/royale-compiler. vscode-as3mxml has no control over how Royale outputs its JS code.
In this case, the html page is already built and in the public directory.
If you have your own HTML page, you can omit the html-template compiler option (or possibly set it to an empty string), and the Royale compiler won't create its own index.html.
Side note: What are, /library and /org used for? Can they not be exported in debug?
I believe that library contains the Google Closure Library, which Royale depends on. The org directory probably contains the classes from org.apache.royale.* package. The Language
class, in particular, is needed even if you aren't using the Royale framework. It provides implementations of some of the features of AS3 that aren't native to JS.
from vscode-as3mxml.
Related Issues (20)
- The file belongs to an unsupported type: mxml HOT 2
- AIR 50.2 - Drag and Drop - Windows 11 HOT 1
- ArrayIndexOutOfBoundsException and NegativeArraySizeException problems on functions HOT 6
- '(' is not allowed here for property names inside an Object literal HOT 2
- Version 1.20.0 fails to compile if path to main class contains spaces (Windows) HOT 28
- AVM2 special operations not detected HOT 1
- Showing numbers defined as hex in hexadecimal format, not just decimal HOT 4
- Completion: Ordering improvement for fully present terms HOT 2
- Go to definition and autocompletion doesn't work with <fx:Script source="Myfile.as"/> HOT 1
- Symbol renaming error in the latest release HOT 1
- Support tab character after @param
- <mx:DataGrid and gestureTwoFingerTap HOT 4
- Build task failing because Adobe Animate not found HOT 3
- Support to Flash Builder old SDKs were dropped? HOT 1
- Completion: after CSS namespace tag, suggest mx and spark namespaces in Flex projects
- Option to "ACTIONSCRIPT SOURCE PATH" always visible HOT 4
- Context menu for clean, compile debug and compile release
- Need a feature to filter warnings for files in a specific path
- "Find All References" never returns any results HOT 10
- asformat: Bug in switch command within loop HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-as3mxml.