Giter Site home page Giter Site logo

winstonhoseadriggins / ag-heritage-prototype Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sdstate/ag-heritage-prototype

0.0 2.0 0.0 3.13 MB

Static HTML, CSS, and JavaScript template for Ag Heritage Museum using the Foundation 5 framework

JavaScript 44.41% HTML 12.56% CSS 43.03%

ag-heritage-prototype's Introduction

Ag Heritage Museum

Static HTML, CSS, and JavaScript template for Ag Heritage Museum using the Foundation 5 framework

Getting Started

These instructions assume you have Git and Node installed.

  1. If it isn't already, install Grunt: npm install -g grunt-cli.
  2. If it isn't already, install Bower: npm install -g bower.
  3. Clone the repo.
  4. Inside that folder, run npm install && bower install.
  5. Check out a new branch (from master) to begin your work.
  6. Write code!
  7. Merge your commits back into master and push to the server with git push once the feature is complete.

Using Grunt

tl;dr

  • Run grunt to compile the site's CSS, copy and concatenate any assets, and assemble its webpages (once). (If you only need one of those, run the appropriate task from the Gruntfile).
  • Run grunt serve to initiate a build, launch a local Connect server, open your default browser to a tab with the local site open, and watch for further changes, at which point Grunt recompiles the site and relaunches the browser for you automatically. It's pretty neat.

Some context

Much of the code and the files in this repository are for building the Ag Heritage website, the the site itself.

  • Source code resides in app/.
  • The actual website and its components are in ahem build/.
  • Files and things related to build process itself reside in the root directory.

The tool we're using to do all this is called Grunt.

Grunt can do all kinds of things, but for our purposes, it can do all the "tasks" defined in the Gruntfile.js file. These include assembling our Handlebars pages, partials, and layouts into proper HTML webpages; compiling our Sass into proper CSS; and launching a local webserver to view the compiled website.

You can browse the individual tasks from that file. Each one is defined as an object literal passed to Grunt's initConfig() method (except pkg--that's Grunt loading the local npm configuration from package.json).

Broader Grunt tasks, ones that can combine several tasks into a single command, are defined at the end of the file as calls to Grunt's registerTask() method. The first argument is the task name (say, 'default'). The second is the individual tasks to run (in that order) when that command is issued.

ag-heritage-prototype's People

Contributors

ebsen avatar sinhadsdsu avatar rpgascoigne avatar

Watchers

James Cloos avatar Winston Hosea Driggins avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.