Git Product home page Git Product logo

hdeiro / weskit Goto Github PK

View Code? Open in Web Editor NEW
11.0 7.0 7.0 74 KB

Weskit is a template project that is PWA Ready and provides a structure to start the development of web pages with some features like serving files with livereload, support to SASS, minification of files (JS/HTML/JSON/CSS), name mangling (for JS) & more.

HTML 11.81% JavaScript 31.07% SCSS 57.12%
sass template-project html5 css3 javascript

weskit's Introduction

Weskit

Weskit is a template project that is PWA Ready and provides a structure to start the development of web pages with some features like serving files with livereload, support to SASS, minification of files (JS/HTML/JSON/CSS), name mangling (for JS) & more.

Settings

This project supports settings that can be found in src/settings/settings.json. There are various options to do stuff like:

  • Enable/Disable built-in animation library;
  • Set Google Analytics by adding the UA-key (if not provided, GA is not added);
  • Override meta-tags via configurations;
  • Load async CSS files;
  • PWA Settings:
    • Enable the PWA capability;
    • Version of the PWA;
    • Caching info (files to be cached & cache prefix);

More settings will be added over time.

How to run?

npm start

This command will copy all assets that exists in your src folder and push them to a dist folder (in case it doesn't exists already, it will be created).

After updating all assets, this command will be watching for changes in .{scss,html,js} files and refresh those types of assets when something changes. It will also run a Browsersync instance watching for changes and refreshing when you change something.

How to generate the final build?

npm run build

This command will cleanup the dist folder (to cleanup any possible garbage from previous executions), copy all assets and optimize them. The optimizations added at the moment are mainly focused on the minification & mangling (whenever possible) of HTML, JavaScript, JSON & CSS files.

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.