Scaffolds DNN extensions, including Modules (Webforms, SPA, and MVC), Persona Bar, Skin Object, Library, Scheduler, and Hotcakes Commerce projects (based on generator-dnn built by Matt Rutledge).
The video below will walk you through everything you need to know. (right-click and open in a new tab)
Sponsors == (typeOf superHuman) Awesome;
Yes, it's not real code. It's just supposed to be fun. :P
This solution is created and maintained by Upendo Ventures for the DNN CMS Community. Please consider sponsoring us for this and the many other open-source efforts we do. It's a lot. :)
Table of Contents
This generator is dependent on the following popular frameworks, and needs them to be installed for you to use this generator. You probabably already have them installed.
First, install/upgrade Node.js and npm
to the most current version.
Warning: You may need to add the user path to your Environmental Variables. Here is an example from Windows 10 (you'd replace
yourUsername
, obviously):
C:\Users\yourUsername\AppData\Roaming\npm
You also need to install the latest version of MSBuild if you don't already have it installed.
Note: Visual Studio 2019 (and newer) should have installed MSBuild for you.
The commands below will install the final bits.
npm install -g yo
npm install -g yarn
npm install -g generator-upendodnn
Now, you're ready to sprint through your DNN projects!
Here are the steps to generate your new project... 4 easy steps!
mkdir my-project-name
cd my-project-name
yo upendodnn
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, install the generator using the steps above.
yo upendodnn
in CMD or Powershell in that folder. Solution Structure
scaffold and step through the wizard. yo upendodnn
again to add your other desired DNN projects. 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 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:
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.
npm install -g generator-upendodnn
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.
yo upendodnn
. Solution Structure
. Build
and References
folders. .build
file(s), you'll want to return to the new "copy/paste" folder you just created. Additional features for end-users will continue to be added in this project's wiki.
Want to learn more or how to build the generator code locally? Please see our wiki for additional documentation.
Original Project Documentation
MIT © 2018 [Matt Rutledge]()
MIT © 2019-2023 Upendo Ventures, LLC