Code Monkey home page Code Monkey logo

webpack-styleguide-builder's Introduction

About

This is a Kss-node Style-Guide builder bundeled with webpack 4. Note: This is currently a WIP.

Requirements

  • node ^8.9.4

Get started

Clone the project directory and npm install.

Now, you can generate the Style guide :

npm run kss

This will read the scss comments at the assets files and generate statics html files in styleguide folder. For more informations visit the KSS documentation The base theme used is : Michelangelo Styleguide

Then you can update your css & js in the assets folder.

Console Commands

npm run <script> Description
dev Compile files with a simple watch
dev:start Serves your app at localhost:8080. HMR will be enabled in development.
prod Compiles the styleguide to ~/public/dist by default).

Application Structure

├── public                   # Static public assets, the folder for the compiled output (ignored by git)
├── styleguide               # Html generated with the kss run command
├── templates                # Custom templates
├── assets                   # Application source code
│   ├── css                  
│   ├── js                   
│   ├── img                  
│── webpack.config.js        # Webpack configuration
└── package.json             # The list of 3rd party libraries and utilities

Critical CSS

If you want critical css that extract code in a new generated css file, use the comment below between your declaration

/*!critical:start */
div {
  ...
}
/*!critical:end */

This use postcss-critical-split and postcss-pipeline-webpack-plugin

Read more about :

Change log

1.0.0

2018-11-06

  • initial release

webpack-styleguide-builder's People

Contributors

licoti avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.