Skip to content

Demo of a website that uses Barba.js. It is an appendix for the Web Dev Insider free whitepaper "Nie potrzebujesz frameworków Angular, React, Vue.js, by stworzyć dynamiczną stronę WWW".

License

Notifications You must be signed in to change notification settings

bartekmis/web-dev-insider-demo-barba.js

Repository files navigation

What is it?

It is a demo for the free whitepaper that you can download here (link very soon).

Demo & Source Code:

  1. Without Barba.js:

  1. With Barba.js:

A few words about the boilerplate / starter kit

This demo is based on Bigger Picture / Studio Sidekicks boilerplate that has been created based on Web Starter Kit - an opinionated boilerplate for web development. Unfortunately Google is no longer supporting and developing that project so we have decided to start keeping that up-to-date by ourselves. We upgraded all the tools and now it uses new Gulp 4.0.0 and Babel 7.2 to transpile the ES7+ scripts.

How to use it?

  1. Installation: npm install or yarn install
  2. Development: gulp serve (it requires Gulp installation first)
  3. Building: gulp

Features

Feature Summary
Responsive boilerplate A responsive boilerplate optimized for the multi-screen web. Powered by Material Design Lite. You're free to use either this or a completely clean-slate via basic.html.
Sass support Compile Sass into CSS with ease, bringing support for variables, mixins and more. (Run gulp serve or gulp for production)
Performance optimization Minify and concatenate JavaScript, CSS, HTML and images to help keep your pages lean. (Run gulp to create an optimised version of your project to /dist)
Code Linting JavaScript code linting is done using ESLint - a pluggable linter tool for identifying and reporting on patterns in JavaScript. Web Starter Kit uses ESLint with eslint-config-google, which tries to follow the Google JavaScript style guide.
ES7+ via Babel 7.2 Optional ES7+ support using Babel. ES7+ source code will be automatically transpiled to ES5 for wide browser support.
Built-in HTTP Server A built-in server for previewing your site locally while you develop and iterate
Live Browser Reloading Reload the browser in real-time anytime an edit is made without the need for an extension. (Run gulp serve and edit your files)
Cross-device Synchronization Synchronize clicks, scrolls, forms and live-reload across multiple devices as you edit your project. Powered by BrowserSync. (Run gulp serve and open up the IP provided on other devices on your network)
Offline support Thanks to our baked in Service Worker pre-caching, sites deploying dist to a HTTPS domain will enjoy offline support. This is made possible by sw-precache.

Quickstart

Download the kit or clone this repository and build on what is included in the app directory.

There are two HTML starting points, from which you can choose:

  • index.html - the default starting point, containing Material Design layout.
  • basic.html - no layout, but still includes our minimal mobile best-practices

Be sure to look over the installation docs to verify your environment is prepared to run WSK. Once you have verified that your system can run WSK, check out the commands available to get started.

Web Performance

Web Starter Kit strives to give you a high performance starting point out of the box. Our median Web Page Test scores for the default template have a Speed Index of ~1100 (1000 is ideal) and a repeat-visit Speed Index of ~550 thanks to Service Worker precaching.

Browser Support

At present, we officially aim to support the last two versions of the following browsers:

  • Chrome
  • Edge
  • Firefox
  • Safari
  • Opera
  • Internet Explorer 9+

This is not to say that Web Starter Kit cannot be used in browsers older than those reflected, but merely that our focus will be on ensuring our layouts work great in the above.

Troubleshooting

If you find yourself running into issues during installation or running the tools, please check our Troubleshooting guide and then open an issue. We would be happy to discuss how they can be solved.

A Boilerplate-only Option

If you would prefer not to use any of our tooling, delete the following files from the project: package.json, gulpfile.babel.js and .travis.yml. You can now safely use the boilerplate with an alternative build-system or no build-system at all if you choose.

Docs and Recipes

Inspiration

Web Starter Kit is inspired by Mobile HTML5 Boilerplate and Yeoman's generator-gulp-webapp, having taken input from contributors to both projects during development. Our FAQs attempt to answer commonly asked questions about the project.

Contributing

Contributions, questions and comments are all welcome and encouraged. For code contributions to Web Starter Kit, please see our Contribution guide before submitting a pull request. Website related issues should be filed on the Web Fundamentals issue tracker.

License

Apache 2.0
Copyright 2015 Google Inc This starter kit is being kept up-to-date by Bigger Picture / Studio Sidekicks.

About

Demo of a website that uses Barba.js. It is an appendix for the Web Dev Insider free whitepaper "Nie potrzebujesz frameworków Angular, React, Vue.js, by stworzyć dynamiczną stronę WWW".

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published