Giter Site home page Giter Site logo

upstatement / puppy Goto Github PK

View Code? Open in Web Editor NEW
47.0 13.0 4.0 1.91 MB

Starter kit and delivery system for building static prototypes with Twig

Home Page: https://puppy-template.upstatement.com/

License: MIT License

JavaScript 13.33% HTML 61.90% SCSS 21.28% Twig 3.38% Shell 0.11%
puppy template twig webpack gulp starter-kit prototyping

puppy's People

Contributors

alexandra-aas avatar bchiang7 avatar braican avatar ctlnwng avatar dependabot-preview[bot] avatar jarednova avatar jmuspratt avatar kinhuilo21 avatar mgburns avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppy's Issues

Remove jQuery?

From looking, it seems like main.js is the only place where jQuery is used. Is this something we could get rid to lighten the dependency load?

README: add graphicsmagick

Puppy thumbnail images rely on ImageMagick, therefore I think we should add this to the ReadMe under installation:

brew install graphicsmagick

Consider adding a Gulp task for image optimization

@NathanHass Has been using this one a bunch:

const resizeImages = async function() {
  const sizes = [
    { width: 320, quality: 0.9, suffix: '' },
    { width: 640, quality: 0.9, suffix: '-640' },
    { width: 768, quality: 0.9, suffix: '-768' },
    { width: 1024, quality: 0.9, suffix: '-1024' },
    { width: 1440, quality: 0.9, suffix: '-1440' },
  ];

  let stream;

  sizes.forEach(size => {
    stream = src('src/img/**/*.{jpg,png}')
      //     resize image
      .pipe(
        imageResize({
          width: size.width,
          upscale: false,
          quality: size.quality,
        }),
      )
      //       add suffix to image
      .pipe(
        rename(path => {
          path.basename += `${size.suffix}`;
        }),
      )
      //     output optimized images to a destination folder
      .pipe(dest('dist/static/img'));
  });
  return stream;
};

Add usage documentation

The Basics

  • How to start a new project
  • How to work on a project
    • Initial setup
    • Dev workflow
    • Adding pages
    • Adding templates
    • Front Matter headers
    • Data fixtures
    • Authoring styles
    • Authoring Javascript
    • Adding third party dependencies
    • Adding static files (fonts, images, etc.)
  • How to deploy a project
    • Creating a production build
    • Netlify

Advanced Topics (for later)

  • Modifying Webpack configuration
  • Modifying Gulp configuration

Document removal of test files

The test files are needed for this repo, but not by projects scaffolded from it. The end result is failing TravisCI builds as soon as any updates are made.

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.