Giter Site home page Giter Site logo

hirako2000 / polypack Goto Github PK

View Code? Open in Web Editor NEW
38.0 6.0 1.0 5.83 MB

๐Ÿ”ฅ Polypack - Webpack build stack with focus on performance ๐Ÿ”ฅ

License: MIT License

JavaScript 49.72% HTML 26.30% CSS 0.47% Less 23.51%
webpack inferno furtive skeleton starter-kit purecss mincss redux xo webpack3

polypack's Introduction

Codacy Badge Build Status Dependency Status devDependency Status license

polypack

Polypack is a boilerplate configuration to build the most lightweight front end assets for webapp or static pages.

The motivation behind this project started from observation that most if not all boilerplates are either bloated with heavyweight libs, or incomplete in order to develop and ship production applications.

Features

  • Ready to use build and bundling system with webpack
  • Most lightweight libraries for performance
  • Web application, react-like skeleton
  • State store
  • Static web page setup
  • Support for either or both {less}/Sass
  • Support for various web fonts formats
  • Hot Module Replacement for rapid development
  • ES6/7
  • Linting
  • Production build with minified, concat and gzipped content

Roadmap

  • Base bundler with webpack 3 & Babel
  • Multi SPA bundler config
  • Hot Module Reload
  • Production build
  • Cross environment variables
  • Gzip
  • Less support
  • Sass support
  • Fonts support
  • Inferno JS skeleton
  • Redux skeleton
  • PureCSS skeleton
  • mincss skeleton
  • Inferno sample webapp
  • Linter
  • Jest

TV program roll webapp example with Inferno/redux & mincss

HBO look & feel with Mincss

Live Demo

top mid

Size

                                  Asset       Size  Chunks                    Chunk Names
   bcff9e9b7b53122acb52df67cd5f4d4f.svg    1.99 kB          [emitted]         
                               photo.js    14.6 kB       0  [emitted]         photo
                        photo.vendor.js     114 kB       4  [emitted]         photo.vendor
                              photo.css    3.97 kB       0  [emitted]         photo
                       photo.vendor.css    1.95 kB       4  [emitted]         photo.vendor
                             photo.html  398 bytes          [emitted]

Size (gzipped)

bcff9e9b7b53122acb52df67cd5f4d4f.svg.gz  901 bytes          [emitted]         
                            photo.js.gz    2.88 kB          [emitted]     
                     photo.vendor.js.gz    27.9 kB          [emitted]
                           photo.css.gz    1.32 kB          [emitted]
                    photo.vendor.css.gz  850 bytes          [emitted]                                           
                             photo.html  398 bytes          [emitted]   

Potato shop

Landing page with Inferno & Basscss

Live Demo | Source

Size

                               Asset       Size  Chunks             Chunk Names
                    potatoes.css.map   89 bytes       0  [emitted]  potatoes
                         potatoes.js    21.9 kB       0  [emitted]  potatoes
                  potatoes.vendor.js    51.4 kB       1  [emitted]  potatoes.vendor
                        potatoes.css    4.65 kB       0  [emitted]  potatoes
                 potatoes.vendor.css    9.89 kB       1  [emitted]  potatoes.vendor
             potatoes.vendor.css.map   96 bytes       1  [emitted]  potatoes.vendor
                          index.html  418 bytes          [emitted]  

Size (gzipped)

                               Asset       Size  Chunks             Chunk Names
                      potatoes.js.gz    3.09 kB          [emitted]  
                     potatoes.css.gz    1.98 kB          [emitted]  
              potatoes.vendor.css.gz    2.31 kB          [emitted]  
               potatoes.vendor.js.gz    15.4 kB          [emitted]  
                          index.html  418 bytes          [emitted]  

Folder structure

.
โ”œโ”€โ”€ src                          # Applications source code
โ”‚   โ”œโ”€โ”€ inferno                  # Inferno app
โ”‚   โ”‚   โ”œโ”€โ”€ components           # Components
โ”‚   โ”‚   โ”œโ”€โ”€ styles               # Styles
โ”‚   |   โ”œโ”€โ”€ index-template.html  # HTML template
โ”‚   |   โ””โ”€โ”€ index.js             # Entry point
โ”‚   โ”œโ”€โ”€ mincss                   # Mincss landing page
โ”‚   โ”‚   โ”œโ”€โ”€ img                  # images
โ”‚   โ”‚   โ”œโ”€โ”€ styles               # Styles
โ”‚   |   โ”œโ”€โ”€ index-template.html  # HTML template
โ”‚   |   โ””โ”€โ”€ index.js             # Entry point
โ”‚   โ”œโ”€โ”€ photo                    # Inferno app for TV roll example
โ”‚   โ”‚   โ”œโ”€โ”€ components           # Components
โ”‚   โ”‚   โ”œโ”€โ”€ img                  # Images
โ”‚   โ”‚   โ”œโ”€โ”€ styles               # Styles
โ”‚   |   โ”œโ”€โ”€ index-template.html  # HTML template
โ”‚   |   โ””โ”€โ”€ index.js             # Entry point
โ”‚   โ””โ”€โ”€ purecss                  # Purecss landing page
โ”‚       โ”œโ”€โ”€ img                  # images
โ”‚       โ”œโ”€โ”€ styles               # Styles
โ”‚       โ”œโ”€โ”€ index-template.html  # HTML template
โ”‚       โ””โ”€โ”€ index.js             # Entry point
โ”œโ”€โ”€ static                       # Output of prod assets
โ””โ”€โ”€ webpack.config.js            # Webpack config for both dev and prod builds

HOWTO

Simply fork, or download the zip content of this repo.

Prerequisite

  • Node.js

Run

npm install # installs deps
npm start # starts the app in dev mode
npm run build # builds app for production

Browse

There are multiple web apps built by default

Contributing

PR are welcome

polypack's People

Contributors

codacy-badger avatar hirako2000 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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tomjal

polypack's Issues

TV roll demo - Fix parsing issue

Sometimes, netflixroulette returns some not so conforming response and the parsing issue make the render of the grid stuck with some artifacts of small stripes on the screen, fix parsing error, ideally displayed what's available in the list of fields and ignore what's missing

Add Jest

Jest provides a very good framework for unit testing.
Add it and provide some describe/test examples.

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.