Replies: 3 comments
-
It looks like |
Beta Was this translation helpful? Give feedback.
-
I have been looking into generating IDE configuration files and think this is a good idea. VSCode / asconfig is a good place to start so I have started some preliminary investigations here. Regarding the documentation though, might start a separate discussion on this one as I'm not sure how we would handle this. |
Beta Was this translation helpful? Give feedback.
-
@marchbold I ended up creating another discussion because this one got a little cluttered. I have organised a cleaner one. |
Beta Was this translation helpful? Give feedback.
-
apm init
APM should be able to initialize a project with an
asconfig.json
file together with.as
sources. You can create either an app or library through one of the commands:apm init asconfig app
apm init asconfig lib
Description:
apm init asconfig app
generates...asconfig.json
(replace com.qux.foo by the given id)libs/.gitignore
(empty .gitignore file)src/Main.as
.gitignore
.gitignore
asconfig.json
src/Main.as
apm init asconfig lib
generates...asconfig.json
(replace com.qux.foo by the given id)libs/.gitignore
(empty .gitignore file)swc/.gitignore
src
(empty folder).gitignore
.gitignore
swc/.gitignore
asconfig.json
apm asdoc
The
asconfigc
command supports building SWF/SWC and launching apps, but I think the contributor forgot the doc command (not sure).The command
apm asdoc
requires anasconfig.json
file. It should invokeaasdoc
(notasdoc
, which is for Flash Player only; whileaasdoc
is for Adobe AIR) using options fromasconfig.json
, including thecompilerOptions
. Here is the documentation for the asconfig.json file: https://github.com/BowlerHatLLC/vscode-as3mxml/wiki/asconfig.jsonThe command should output docs to
build/docs
.Notes:
doc-sources
instead ofinclude-sources
. So theasconfig.json
fieldcompilerOptions.include-sources
translates todoc-sources
. It looks basically likeaasdoc -o=build/docs --doc-sources+=src
.https://repository.airsdk.dev API docs
I don't think it's easy to auto-generate API docs like Rust ecosystem does, but I believe there could be a repository so we can store our hand-generated docs there. Normally we can use GitHub Pages, but it's tedious to upload docs there manually.
APM already allows you to specify an URL to the API docs, but it's currently external to repository.airsdk.dev.
Beta Was this translation helpful? Give feedback.
All reactions