Comments (3)
Instead of files, give include-classes or include-sources in compilerOptions a try. You may also need source-path.
By the way, you definitely should use targets instead of js-output-type now. I plan to drop support for it in the future.
from asconfigc.
Thanks that works, but I have another issue:
{
"config": "royale",
"type": "lib",
"compilerOptions": {
"debug": true,
"targets": [
"JSRoyale"
],
"include-classes": [
"TestingClasses"
],
"include-sources": [
"src/main/royale"
],
"output": "target/Testing.swc",
"define": [
{
"name": "COMPILE::SWF",
"value": false
},
{
"name": "COMPILE::JS",
"value": true
}
]
}
}
This works to output the files, but only if the SWC file already exists. Typically, using ant, there is a two step process where the SWC is created and then the js files are added to that. I don't know how/if there's an easy way to do this using asconfigc.
Also, I'm struggling with defining different compile configs for different targets. This might be a more general compiler problem, but I'm not sure if there's a way to compile to two different targets using different compile configs using a single asconfigc file.
from asconfigc.
Got it! 😎
I should not have been using define
. The compiler takes care of that automatically.
{
"config": "royale",
"type": "lib",
"compilerOptions": {
"debug": true,
"targets": [
"SWF",
"JSRoyale"
],
"include-classes": [
"TestingClasses"
],
"include-sources": [
"src/main/royale"
],
"library-path": [
"../../../../flex-flexunit/FlexUnit4/target/flexunit-4.3.0-20140410-as3_4.12.0.swc"
],
"output": "target/Testing.swc"
}
}
from asconfigc.
Related Issues (20)
- Migrate from -js-output-type to -targets for FlexJS 0.8 HOT 1
- Option to clean the output directory (as long as it isn't inside a source path) HOT 1
- Add new airOptions field to optionally package an AIR app with ADT
- Outputting extra line returns HOT 6
- --project or -p option should also accept path to JSON file
- application.xml fwritesync HOT 5
- Constant bad formating HOT 9
- Simulate with ADL HOT 1
- link not valid HOT 1
- Override output from command line HOT 1
- Watch mode: automatically rebuild when there are changes to the file system HOT 1
- Support exclude-defaults-css-files compiler option for Apache Royale projects
- Inconsistencies with airOptions->files between debug and build HOT 1
- Readme update, or added functionality, for jvmargs support. HOT 1
- A target file must be specified HOT 7
- Issues with building and running animate based projects HOT 3
- Support -remove-circulars compiler option
- Support -js-output-optimization compiler option for Apache Royale projects
- Doc request: Mention that asconfigc itself is written in ActionScript and transpiled with FlexJS to JS/Node 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 asconfigc.