Git Product home page Git Product logo

kirby-rollup-postcss's Introduction

Kirby + Rollup + PostCSS template

Kirby CMS template adapted to use with modern frontend tools.

How it works?

JavaScript files located in src/js directory and imported to main.js, and CSS files located in src/css directory and imported to main.css get processed and outputted to public/assets/js/main.js and public/assets/css/main.css respectively. JavaScript is processed by Rollup, CSS – by PostCSS. Refer rollup.config.js and postcss.config.js, as well as the "scripts" property of package.json for more information or to customize how the files get processed.

Additionally, the setup employs a "Custom folder setup" and a "Multi-environment setup". To learn more, refer the Kirby guide on Configuration.

Overview

.
├── public
│   ├── assets
│   │   ├── css
│   │   │   └── main.css
│   │   ├── fonts
│   │   ├── icons
│   │   ├── images
│   │   └── js
│   │       └── main.js
│   ├── media
│   └── index.php
├── site
│   ├── blueprints
│   ├── config
│   │   │   # config.{url}.php
│   │   ├── config.kirby-rollup.test.php
│   │   └── config.php
│   ├── plugins
│   │   ├── kirby3-robots-txt
│   │   └── kirby3-xmlsitemap
│   ├── snippets
│   └── templates
├── src
│   ├── css
│   │   ├── main.css
│   │   └── reset.css
│   └── js
│       └── main.js
├── storage
│   ├── accounts
│   ├── cache
│   └── sessions
├── .eslintrc.js
├── .prettierrc.js
├── babel.config.js
├── package.json
├── postcss.config.js
└── rollup.config.js

Prerequisites

Setup

Run in terminal:

composer install
valet link # for Laravel Valet users, otherwise an alternative

npm install
npm run watch # or npm run build

kirby-rollup-postcss's People

Contributors

stuymedova avatar

Watchers

 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.