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:
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:
Finally, you can create a new MXML component:
Made with Apache FlexJS
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?
Support this project
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!
Special thanks to the following sponsors for their generous support: