There are three prerequisites for working with DNN_Tailwind:
If you have these installed skip to DNN_Tailwind Installation section below, otherwise install them in the order listed.
Node is a server framework that we use to keep track of all our dependencies and help run our scripts. Head over to https://nodejs.org/en/ to find out how to install Node.
Once you have Node installed, load up the Node command prompt. This is where you will be running all commands for the environment.
Yarn is a package manager that we use to manage all our dependencies quickly and securely.
Refer to the yarn installation page for details on your specific operating system.
* You may skip installing Yarn if you prefer to use NPM as your package manager of choice. Just replace yarn with npm in any yarn commands. We don’t suggest mixing package managers in the same project, so pick one and stick with it.
Gulp is our task script manager and executor. In order for us to run this on command line in any project we’re doing, from the node command line, you will need to run:
npm install gulp -g. This will install Gulp globally on your machine. Note that if you run several installations of DNN_Tailwind, you will only need to run this command on the first install.
The dev environment is setup to be run directly in a DNN instance under:
Portals\_default\Skins\[your theme name]. Setup your empty Skin folder and clone our repo to that.
With Yarn & Gulp installed, and the repo cloned, we can now use that package file.
This will read the package file and pull the necessary dependencies required for the environment.
Now that the dependencies are installed for the development environment, we should now build the project to make sure all css files are up to date.
This will rebuild your style.css file to include any changes that may have been made to your tailwind.config.js, tailwind.css and custom-*.css files in addition to other task.
With the repo cloned, all the dependencies installed, and the project built, your dev environment is ready to go!