Scaffolds DNN extensions, including Modules (Webforms, SPA, and MVC), Persona Bar, Skin Object, Library, Scheduler, and Hotcakes Commerce projects (based on the generator built by Matt Rutledge).
npm install generator-upendodnnSponsors == (typeOf superHuman) Awesome; npm to the most current version.
yourUsername, obviously):
C:\Users\yourUsername\AppData\Roaming\npm
bash
npm install -g yo
`
2. Install Yarn:
`bash
npm install -g yarn
`
3. Install the generator:
`bash
npm install -g generator-upendodnn
`
Using UpendoDNN Generator
Now, you're ready to sprint through your DNN projects!
Here are the steps to generate your new project... 4 easy steps!
1. Create a folder for it:
`bash
mkdir my-project-name
`
2. Go into that folder.
`bash
cd my-project-name
`
3. Choose the project to install.
`bash
yo upendodnn
`
4. Open the solution in Visual Studio, and have fun writing code!
$3
You need to first create the Solution Structure if you haven't yet done so in this directory. Then, create any extension you want.
More verbose instructions on how to use this.
First-Timers: How to Use (verbose)
First, install the generator using the steps above.
1. Create and navigate to a folder where you wish to begin your new DNN-based solution. (command line example is above)
2. Run yo upendodnn in CMD or Powershell in that folder.
3. For the first time, you'll want to always first choose the Solution Structure scaffold and step through the wizard.
4. Once the solution scaffold is created, run yo upendodnn again to add your other desired DNN projects.
5. Re-open the solution in Visual Studio, and begin writing code. The project is ready and waiting for you!
That's it! Now you can begin building your awesome DNN extension(s) as you see fit. Everything is now under one easy-to-open, -run, -code, -build, and -commit to source control solution.
Say hi to Will at DNN Summit and DNN-Connect. :)
Awesome Sponsors Accepted Here
Upgrading
$3
Upgrading the generator is actually quite easy, and the instruction is the same for any and all other generators you might have installed. Just run the following command:
`bash
yo
`
When the view loads, choose the option to Update your generators. The rest is done for you.
In other cases, you may be able to simply re-execute the following command to upgrade upendodnn generator.
`bash
npm install -g generator-upendodnn
`
$3
However, upgrading your existing projects may or may not be more involved. If you want to take advantage of the build process updates, you will at least need to update the build files.
The steps below will help you upgrade the build process in your development environment successfully.
1. In a new (empty) folder, run yo upendodnn.
2. Choose the Solution Structure.
3. Copy the files from both the Build and References folders.
4. Paste the files into their respective matching folders in your project. Overwrite all.
5. In any release, if there were any updates to the project file(s) and/or .build` file(s), you'll want to return to the new "copy/paste" folder you just created.