-
Notifications
You must be signed in to change notification settings - Fork 7
ENgrid Installation Instructions
bryancasler edited this page Oct 24, 2021
·
1 revision
- Install NPM: https://blog.teamtreehouse.com/install-node-js-npm-mac
- Install with XCode: https://itunes.apple.com/us/app/xcode/id497799835?mt=12
- Install with Homebrew via Terminal:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" - Install with Terminal:
brew install node
- Clone the ENGrid repository to your computer after optionally creating a branch or fork of it.
- Open Terminal and navigate to the cloned repository.
- In your terminal type
npm installto install the third-party dependencies for the project.
- In your terminal type
- Duplicate the Starter Theme folder "src > theme > starter"
- Rename the duplicated folder. e.g YOURPROJECTNAME
- Update package.json
"client": "WHATEVERISHERE"withYOURPROJECTNAME - Run
npm run startto begin live compiling and watch tasks.- You can now open http://localhost:8080/ to see the local instance of the project running.
- If you are using Visual Studio Code you will see an "NPM Scripts" panel in the explorer. From there you can click "Start" which runs the
npm run startprocesses.
- Change anything you want. The assets will get recompiled every time you save.
- When you finish, type
CTRL+Con the terminal to exit the watch task. - When you are finished run
npm run buildto begin build process. This will generate minified assets; a single dist/main.css and dist/main.js file you can add to your Engaging Networks page template.- If you are using Visual Studio Code you will see an "NPM Scripts" panel in the explorer. From there you can click "Build" which runs the
npm run buildprocesses.
- If you are using Visual Studio Code you will see an "NPM Scripts" panel in the explorer. From there you can click "Build" which runs the
- Commit & Push your changes to your repository.
- Update your live Engaging Networks page templates with the minified main.css and main.js assets.
- Adjust the colors on
src/themes/YOURPROJECT/sass/variables.scss - Adjust the fonts on
src/themes/YOURPROJECT/sass/font.scss - Adjust the branding on
src/themes/YOURPROJECT/sass/branding.scss
- Create your new file in
src/themes/YOURPROJECT/sass/layouts/YOURLAYOUT.scss - Import your layout SASS file in
src/themes/YOURPROJECT/sass/main.scssafter the very last line
We would love to hear from you.
Bryan Casler
Director of Digital Strategy
4Site Interactive Studios
Cell: (315) 877-3420
Email: bryan@4sitestudios.com