Generate an Apache FlexJS application
npm install generator-flexjsA generator for Yeoman to create a new Apache FlexJS project. Yeoman may be run from the command line or even using an extension in Visual Studio Code.
```
npm install -g yo
npm install -g generator-flexjs
To create a new Apache FlexJS project, start by creating a new, empty directory. Then, run the yo command inside your new project directory:
``
mkdir MyProject
cd MyProject
yo flexjs
You'll be asked few quick questions, and then your new project will be generated.
To create a new ActionScript class, you can run the following command from the root of your project:
``
yo flexjs:class
It will create a your class in the src directory (or in the appropriate sub-directory, if the class is in a package).
Similarly, you can create a new ActionScript interface:
``
yo flexjs:interface
Finally, you can create a new MXML component:
``
yo flexjs:mxml
The source code for the generator-flexjs` Yeoman Generator is written in ActionScript. That's right, it's a Node.js module — written in ActionScript and compiled with Apache FlexJS. Pretty cool, right?
Want to see more ActionScript tools and utilities like this Yeoman Generator for Apache FlexJS? How about in-depth articles and step-by-step video tutorials that teach you how to use ActionScript with HTML or Node.js and how to build web applications with Apache FlexJS? Please become a patron and support the next generation of ActionScript development on the web -- without a plugin!
NextGen ActionScript by Josh Tynjala on Patreon
Special thanks to the following sponsors for their generous support:
* YETi CGI