Giter Site home page Giter Site logo

arrowteamwebsite's Introduction

Arrow-WEBSITE-SSG Build Status

SSG stands for Static Site Generator, which is Jekyll.

Installation

  • Install Git if you don't have it

  • Install Ruby and Jekyll

  • Install Node.js, if you want to use the npm scripts included

  • Install ImageOptim, if you want to do image optimizations

  • Open your terminal/cmd, change directory to wherever you want and run git clone https://github.com/ribonsamr/artwebsite-ssg.git, then cd artwebsite-ssg

  • Run npm run install to install the Ruby bundle

  • Test with npm run test to build for production then run the test

  • Run npm run serve and open the link printed-out on the screen

Jekyll

Here are some Jekyll CLI commands you can run:

  • To install the gems: bundle install --path vendor/bundle

  • Build in production mode: JEKYLL_ENV=production bundle exec jekyll build -d public

  • Build in development mode: JEKYLL_ENV=development bundle exec jekyll build -d public_beta

  • Launch the website: JEKYLL_ENV=development bundle exec jekyll serve

  • Launch the website with livereload feature enabled: JEKYLL_ENV=development bundle exec jekyll serve --livereload

Testing

We use Rake for testing, you can find the testing scripts in the Rakefile.

To run the tests:

  • For production: bundle exec rake or bundle exec rake prod_test, because the default test script is the production mode.

  • For development: bundle exec rake dev_test

ImageOptim

Make sure to install ImageOptim first as mentioned earlier, then you can run this command: imageoptim assets/images/team assets/images/teams assets/images/news

This will optimize the images and reduce their sizes.

npm scripts

It is better to use npm scripts to save time, these are the scripts you can run:

  • install, runs bundle install

  • build, build for production environment to public

  • beta, optimize images and build for development environment to public_beta

  • optim, optimize images for assets/team, assets/teams, assets/news

  • serve, serve the website in development environment

  • reload, serve the website in development environment with --livereload enabled

  • test, runs npm run build then bundle exec rake to test the output

  • test_beta, runs npm run beta then bundle exec rake dev_test to test the beta version

Example: npm run build.

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.