Accuraty / AccuTheme-2021

Older version superseded by AccuTheme-Bs4 (Feb 2024)
https://github.com/Accuraty/AccuTheme-Bs4
2 stars 1 forks source link
2sxc accutheme dnn

AccuTheme-2021

Status: no roadmap, fixes and minor improvements from now on. AccuTheme "redux" in the works (20230305 JRF).

Getting started

Project requirements and recommendations

Cloning locally

1. Get the code

Navigate to the directory where you want to store the project, copy the GitHub URL, and then run the following commands in your terminal:

git clone _GITHUB_URL_HERE_

OPTIONAL - install these Repos if you plan to update them or want the code available locally

Make sure your terminal's CWD (current working directory) is the root of the project (the folder where you just cloned the main project in to), then run the following commands:

git clone https://github.com/Accuraty/AccuCode ./dnn/App_Code

git clone https://github.com/Accuraty/AccuCUE ./dnn/Portals/0/2sxc/Content/Accu

copy .vscode/AccuTheme.gitmodules .gitmodules

--- end of OPTIONAL ---

2. Set your FTP config

If you are using Visual Studio Code, navigate to the .vscode/ directory. Duplicate sftp.json.example, configure it with your credentials, and save it as sftp.json to continue.

3. Install and build packages

Open package.json, and remove the line under "scripts" (line 7) "preinstall": "npx npm-force-resolutions", and save

Next, run npm install. If you did not remove the line from package.json the install will fail until you do.

After the install is finished, npm run build will automatically run. This compiles assets (styles, scripts, etc.), but Gulp won't stay in "watch" mode.

Back in package.json, add the line "preinstall": "npx npm-force-resolutions", back to package.json, and save.

Run npm install one more time.

4. Build the assets

Run npm start.

This will kick off the Gulp tasks to optimize and compile assets (images, styles, scripts, etc.). It will also continue watching for changes to source files.

To exit "watch" mode, press Control-C in your terminal.

To start watching again, run npm start.

5. Push changes to GitHub

Because you cloned the repository using the GitHub URL, your local repo's origin is properly set. However, if you get an error message when you try to push your changes up to remote, it's because you do not have permission to write to the private repo.

Make sure (1) your GitHub credentials are correct, or (2) your GitHub username is added as a collaborator on this project.


Old roadmap, plans, and related...

The Accuraty Solutions Bootstrap 4.6 based theme starter kit for DNN projects.

Roadmap and Feature Ideas