Giter VIP home page Giter VIP logo

simple-frontend-boilerplate's Introduction

Simple Frontend Boilerplate

Settings for launch

  1. Install package manager yarn. npm install -g yarn
  2. Run the command in the console yarn install
  3. Run the command in the console yarn start
  4. Open the project in browser

Main command

lint-js - check correct js code
lint-css - check correct css code
lint - base command wich combine lint-js and lint-css
fix-js - formatting your js code
fix-css - formatting your css code
fix - base command wich combine fix-js and fix-css
start - command to start development server
build - build project

For example yarn start - launch server It's not necessary to reload the page because we use Hot Module Replacement (HMR)

Main libraries

  • Twig
  • postcss
  • babel
  • ES modules
  • prettier
  • eslint
  • stylelint
  • HMR
  • Webpack 5

Structure folders

For layout is used Twig template engine

src
    /html - all templates
        /components - main components in a project
        /layout - base layout
        /pages - pages site

    /images - folder with images

    /js - folder with scripts
     /app.js - main file for build

    /styles - folder with styles
        /components - main style components
        /includes - folder with base style project

        /index.css - file that includes all settings and styles

simple-frontend-boilerplate's People

Contributors

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