• Stars
    star
    311
  • Rank 134,521 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 9 years ago
  • Updated 12 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

🔥 A simple boilerplate for creating statics PWA using Webpack, Pug, PostCSS and CSS Modules

Kratos Boilerplate

A simple boilerplate for creating a static PWA using Webpack, Pug, PostCSS and CSS Modules

license GitHub contributors

Generate a new project with Yeoman

To make easy create a new projects, Kratos has a generator using Yeoman

To use it:

# install yeoman
$ npm install -g yo

# install kratos generator
$ npm install -g generator-kratos-boilerplate

# generate a new project
$ yo kratos-boilerplate

Getting Started

# install dependencies
$ npm i

# run the project
$ npm start

With the commands above, you have everything to start.

The app.config.json file has all minimal config to create your scaffolding.

About CSS

This project use Sass as CSS preprocessor 😁

Post CSS libs

For grid system uses Autoprefixer to make easy use browser prefixes, Lost with some help from, Rucksack for animations, reset and a lot of great mixins, Rupture for responsive utilities. And Font Magician to get the webfonts.

CSS Modules

To make easier create your components and avoid a lot of problems, it boilerplate use CSS Modules.

Example

.host text-align center .title font-size 4rem .description font-size 2rem;

After the transformation it will become like this

._host_4897k_1 {
  text-align: center;
}

._title_4897k_9 {
  font-size: 4rem;
}

._description_4897k_12 {
  font-size: 2rem;
}

Tasks

  • npm start: run all tasks and initialize watch for changes and a server
  • npm run build: run all production tasks create a dist folder to deploy
  • npm run lint: lint javascript and css
  • npm run fix: command to fix all eslint errors
  • npm run deploy: run all tasks to build and deploy on gh-pages

License

MIT License © Felipe Fialho

More Repositories

1

frontend-challenges

A public list of open-source challenges from companies around the world
13,883
star
2

awesome-made-by-brazilians

🇧🇷 A collection of amazing open source projects built by brazilian developers
1,516
star
3

css-components

☕ A set of common UI Components using just the power of CSS and without JavaScript.
HTML
693
star
4

frontend-tools

🚒 Useful tools to frontenders
474
star
5

frontend-feed

🇧🇷 Lista de blogs e sites úteis para frontenders
454
star
6

coding-style

[outdated/deprecated] My rules coding for HTML, CSS and JavaScript development
356
star
7

piano

🎹 To play piano using CSS and JavaScript
JavaScript
336
star
8

felipefialho.com

😺 My personal website
JavaScript
268
star
9

felipefriends

[stopped 🚧] Instruções iniciais e desafios do @training-center
56
star
10

chess

A modern and light chess game developed with HTML, CSS and Javascript.
CSS
52
star
11

felipefialho

About me
46
star
12

dailylog

🚧 [PAUSED] Day after day
39
star
13

old-felipefialho.github.io

[deprecated] My personal website
HTML
30
star
14

grunt-boilerplate

Base files for use of Grunt
JavaScript
23
star
15

my-first-website-in-2007

My first experimental website made in 2007 😱
HTML
19
star
16

survey

Pesquisa salarial entre frontenders do Brasil
HTML
18
star
17

Website

[DEPRECATED] A new version is managed here
CoffeeScript
12
star
18

sublime.config

My packages and settings for SublimeText 3
Python
11
star
19

newsletter-boilerplate

A boilerplate for quick newsletters templates.
HTML
8
star
20

generator-kratos-boilerplate

Yeoman generator for Kratos Boilerplate.
JavaScript
7
star
21

1500-translator

[deprecated]
HTML
4
star
22

whatiwatchtoday

What I Watch Today?
2
star
23

talk-css-components-14-08-08

Apresentação da talk do CSS Meetup do dia 08/08/2014
JavaScript
2
star