Skip to content

olegkarun/grunt-bootstrap-typo3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

https://github.com/manchenkoff/webpack-bootstrap

Webpack Bootstrap 4 template

Description

This project contains preconfigured Webpack 5 to work with the following tasks:

  • Compile SCSS to CSS
  • Create SVG Sprite (js)
  • Production optimization (styles, JavaScript)
  • Build source maps

This build need copy to public/typo3conf/ext/theme/Resources/Public/assets and work as normal from this directory Backend will be include assets from this folder

Includes

  • Bootstrap 4 (SCSS, JS)
  • jQuery
  • Popper

Custom Includes

  • img.lazyload
  • lightbox @todo
  • aos.next (css3 animation)
  • video.js
  • fontAwesome

Installation

  • Execute a command from the root directory
npm install
  • Use 'html/index.html' as home page
  • Write Your own JavaScript in the file: src/js/app.js
  • Also Your styles may be placed in the SCSS file: src/scss/app.scss
  • Then run the following command to build dev bundle:
npm run build

Project structure

  • src: Project sources root
    • js: JavaScript code-base for your application
    • scss: Styles sources (may contain structure what you like)
    • svg: Drop svg icon here to get in svg sprite <svg><use xlink:href="#icon-%filename%"></use></svg>
    • static: Images and media-files which uses statically (will be copied to the dist directory), ex: uses in the HTML

Usage

npm install
npm run build
npm run start

Tasks

  • Build sources - npm run build
  • Create an html sprite for SVG - npm run sprite
  • Start file watcher for recompiling - npm run watch
  • Start grunt dev server - npm run server
  • Build sources for production (with optimization) - npm run build
  • @todo Clean 'dist' folder - npm run clear

Configs

  • grunt/* - main configs

JS Components

For customization please use src/sass/_components and src/js/services

About

Frontend build for TYPO3 projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published