This is an automated email from the ASF dual-hosted git repository.
joshtynjala pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/royale-docs.git
The following commit(s) were added to refs/heads/master by this push:
new c9a5239 mxmlcnpm is not a valid command
c9a5239 is described below
commit c9a52399b481f12489eff591d3eefebd10b55451
Author: Josh Tynjala <[email protected]>
AuthorDate: Tue Apr 9 13:25:26 2024 -0700
mxmlcnpm is not a valid command
It's just mxmlc. Maybe an older version exposed mxmlcnpm directly?
---
get-started/download-royale.md | 2 +-
get-started/hello-world.md | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/get-started/download-royale.md b/get-started/download-royale.md
index 4c7a000..fd9b72e 100644
--- a/get-started/download-royale.md
+++ b/get-started/download-royale.md
@@ -42,7 +42,7 @@ If you want SWF output, as well as JavaScript output, install
the following pack
npm install -g @apache-royale/royale-js-swf --foreground-scripts
```
-If the install completes successfully, you are ready to compile your
application with Royale by using the mxmlcnpm tool from the command-line. The
NPM install should have put mxmlcnpm in your path.
+If the install completes successfully, you are ready to compile your
application with Royale by using the **mxmlc** tool, or compile your library
using the **compc** tool, from the command-line. The NPM install should have
added **mxmlc**, **compc**, and several other tools to your path.
> If you cannot install Apache Royale with the `-g` flag due to an `EACCES`
> permissions error, please take a look at [npm Docs: Resolving EACCES
> permissions errors when installing packages
> globally](https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally).
diff --git a/get-started/hello-world.md b/get-started/hello-world.md
index a8bff76..3316a5b 100644
--- a/get-started/hello-world.md
+++ b/get-started/hello-world.md
@@ -68,7 +68,7 @@ In the `src` folder, create a file called `HelloWorld.mxml`
and use your favorit
If you used [NPM](https://www.npmjs.com/){:target='_blank'} to install Royale,
run from your project folder:
```sh
-mxmlcnpm src/HelloWorld.mxml
+mxmlc src/HelloWorld.mxml
```
If you didn't use npm, run:
@@ -77,6 +77,8 @@ If you didn't use npm, run:
<path to SDK folder>/js/bin/mxmlc src/HelloWorld.mxml
```
+> If you manually add _<path to SDK folder>/js/bin_ to your `PATH` environment
variable, and restart your terminal, you can use **mxmlc** without the absolute
path.
+
## Run the output
If the compiler reported success, there should now be a `bin/js-release`
output folder in your project folder, such as