Giter Site home page Giter Site logo

kirby-starterkit's Introduction

Kirby Starterkit

This repo is my own starterkit for Kirby 3 projects. It works with Webpack and BrowserSync and allows to work with SCSS and ES6. Featuring Kirby CMS and SCSS Starterkit.

Requirements

Installation

  1. In Terminal, go to your production folder:
cd path/to/my/folder
  1. Clone this repository with the submodules
git clone https://github.com/sinanatra/kirby-starterkit NAME-OF-MY-FOLDER
cd NAME-OF-MY-FOLDER
git clone --depth=1 https://github.com/sinanatra/scss-starterkit.git src/scss
rm -rf ./src/scss/.git
  1. Install and update Kirby
composer install
cd www/kirby
composer update
cd ../..
  1. Install dependencies with npm
npm install
  1. Type npm run start now, open http://localhost:3000 and to start coding. The browser will reload at every saved change.

  2. At the end of your coding process, you can run the npm run build command.

Folder structure

After the installation, your folder will more or less look like that:

node_modules/
src/
vendor/
www/
.babelrc
.browserslistrc
CHANGELOG.md
composer.json
composer.lock
LICENCE
package-lock.json
package.json
postcss.config.js
README.md
webpack.config.js

You will apply the changes to the following files/folders:

  • www folder and its subfolders: the main folder for Kirby coding. Kirby documentation will be really useful to help you here.
  • src folder and its subfolders: every file that is here will be compile to the www/assets folder. You will already find scss and js folders where you can code your stylesheets (with SCSS/CSS) and your scripts (with JS). You might have to add fonts and images folders for font and image files that are linked to your CSS files. In scss folder, you will already find my SCSS Starterkit, very useful if you want to configure your website easily.

kirby-starterkit's People

Contributors

dependabot[bot] avatar sinanatra avatar

Stargazers

 avatar  avatar  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.