<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          helloFrontBoilerplate SCSS / PUG / ES6

          聯(lián)合創(chuàng)作 · 2023-09-24 04:10

          1. Hello Front

          Boilerplate SCSS / PUG / ES6 for clean and fast Front-end project.

          Work on src/ folder and gulp build in dist/.

          1.1. Installation

          1.1.1. Node version manager

          Install NVM

          nvm use

          1.1.2. Install Sass

          Go to sass-lang.com/install for installation in command line.

          1.1.3. Install Yarn

          Go to https://yarnpkg.com/docs/install

          1.1.4. Install Gulp

          Go to https://gulpjs.com/

          1.1.5. Download the dependencies NPM

          yarn install

          1.1.6. Install Tooling

          Use Prettier for clean your JS / SCSS files.

          Plugin for IDE :

          1.2. Commands

          1.2.1. Run project

          yarn dev

          1.2.2. Build project

          yarn build

          1.2.3. Optimize SVG

          yarn svg

          1.2.4. Clean project

          yarn reset

          1.3. How it works

          1.3.1. Works with SCSS

          Use atomic design design for orgaznise components

          The SCSS files are located in ./src/assets/scss.

          Example SCSS hierarchy :

          • base/ : Unclassed HTML elements (type selector)
          • atoms/ : Atoms are the basic building blocks of matter (button, input, etc.)
          • molecules/ : Molecules are groups of atoms bonded together and are the smallest fundamental units of a compound (from, cards, etc.)
          • layout/ : Layout are the basic elment for build layout.
          • page/ : Pages are specific instances of templates
          • tools/ : Default mixin and functions
          • utils/ : Helpers and overrides
          • _settings.scss : Global variables
          • app.scss : Main stylesheet

          Use the BEM namming convention.

          1.3.2. Works with Pug templating

          The PUG files are located in ./src/template

          • layout : layout of html files generated
          • mixin : for reusable pattern
          • pages : the content of html files generated
          • partial : includes of html pattern
          • config.pug : global variables

          1.3.3. Works with JavaScript

          The Javascript files are located in ./src/assets/js.

          Use the ES6 syntaxe Babel convert it in ES5 for you via webpack.

          1.3.4. Working with Images

          The Image files are located in ./src/assets/img

          Accepted file formats : - jpg - png - gif - svg

          1.3.5. Working with Fonts

          The font files are located in ./src/assets/font

          1.3.6. Working width SVG Sprite

          The svg files for sprite are located in ./src/assets/icons.

          Uncomment the line 11 of the file ./src/template/layout/base.pug to include them in the basic layout.

          A PUG mixin is planned for use:

            +icon('name-of-file', 'my-css-class')
          瀏覽 15
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  中日亚洲国产特级黄片 | 欧美中文字幕观看 | 欧美日韩在线a | 免费国产网站污污 | 亚州国产三级精品视频 |