Very cool! Great initiative! I’ll try to give it a spin later.
Is there a way of creating different templates for the “new” command? BTW, it would be really great to try to stick to dog-fooding to have as many samples of Royale use as possible. This tool can be written in ActionScript and compiled for node.js using Royale. Harbs > On Feb 15, 2018, at 10:16 AM, OmPrakash Muppirala <[email protected]> wrote: > > As I was trying to write a `Setting up Royale with npm `blog post, I > realized that things could be much easier for npm users. So, I built the > Royale CLI tool. It takes inspiration from the create-react-app and the > angular cli projects. > > Here are the details: > > *To Install: * > npm install @apache-royale/royale-js -g > npm install @apache-royale/cli -g > > After installation: > > *Help * > royale help > > *Setup * > royale new my-royale-app > cd my-royale-app > > This creates a simple app: my-royale-app/src/Main.mxml > > > *Run in debug mode * > royale serve:debug > > Compiles the project in debug mode > Compiles with source map option > Starts a http server and serves the files from the bin/js-debug directory > Opens the default browser and navigates to http://localhost:3000 > Listens to src folder > When any file changes, it will recompile the app > Automatically reloads the browser to show the updated application > > *Run in release mode * > royale serve:release > > Compiles the project in release mode > Starts a http server and serves the files from the bin/js-release > directory > Opens the default browser and navigates to http://localhost:3001 > > > Please test and provide feedback. It would be greatly appreciated. > > Thanks, > Om
