- Clone/download to your machine
- Run
yarnto install dependencies
| Task | Description |
|---|---|
yarn start or yarn dev |
Watch for changes to new files. |
yarn test |
Lints your CSS and JS files. |
Please note: We are using Yarn on this project. This means you should not use npm commands when adding/removing dependencies! Please refer to the Yarn's documentation to ensure you are running the correct yarn command to:
- Add new dependencies
- Remove dependencies
- Reinstall dependencies
_compiledthis is where Yarn places all of the compiled CSS and JS files that are used. These files are not edited directly.appis wherefunctions.phplives.functions.phpis where the middle-layer functions are held that digests the API data and passes it to the views.assetsis where the developer and front-end designer from AgComm placesimages,scripts, andstyles. Thescriptsandstylesare then compiled using Yarn and output to_compiled.srcis where the API calls to the ExtDCR and PI are made.pagesare where the approved path views are held. These files gather thepartialsand passes relevant arguments to the functions.partialsis where the view is created. This is where a front-end designer from AgComm would spend the majority of their time, if they're updating the HTML structure around any assets.
feed-article.phpis used to output a feed of the articles for any page that would like articles.feed-category.phpis the template file called on a category page to feed the articles relevant to that category.feed-county-articles.phpis used on the county homepage since their design is drastically different from other feeds.feed-event.phpis used to display a list of events.feed-state-articles.phpis used on the state home page since its design is drastically different from other feeds.feed-subcategory.phpis the same asfeed-category.phpexcept for subcategories.'header-menu.phpis the menu that displays below the header file. It has static and dynamic elements from the Depot.page-about.phpis the design for the About Us page for both state and counties.page-administration.phpis the design for Extension administration.page-article.phpis the design for a single article.page-event.phpis the design for a single event.page-label.phpis the design for a list of articles on a label page.page-navigation.phpis deprecated and could be deleted.page-profile.phpis the design for a profile page. Once 404s are identified, if a user doesn't have a profile picture, they will show a no profile picture.tpl-4h-marketing.phpis the section (generally on a homepage) to apply for 4-Htpl-banner.phpis the section currently on all pages that displays the current banner.tpl-footer.phpis the footer that appears on all pages.tpl-give.phpis the section currently on the state Extension page requesting donations.tpl-header.phpis the header that appears on all pages.tpl-marketing.phpis the 4-colored sections present on homepages that represent ANR, HHS, 4-H, and CD.tpl-resource-links.phpis the section at the bottom of all pages that identify three key audiences and provide important links for those audiences based off of our personas and red routes.
Profile images are not committed to this repository but are hosted on extension.purdue.edu/ProfileImages/ and are accessible through SFTP access and can be deployed to QA and PROD through typical Purdue ITaP methods.
Known issues are kept in a Google Document that can be assessed by emailing Joan Crow at crow@purdue.edu.