All Projects → michaelschwobe → gulp-nunjucks-boilerplate

michaelschwobe / gulp-nunjucks-boilerplate

Licence: MIT License
A scalable Gulp generated Nunjucks boilerplate.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to gulp-nunjucks-boilerplate

Webpack Boilerplate
A minimal webpack 5 boilerplate with only Babel, SASS and lodash (optional) on board
Stars: ✭ 404 (+2785.71%)
Mutual labels:  skeleton, minimal
Stellar
Stellar is completely based on the latest version of Bootstrap 4. Stellar Admin is designed to reflect the simplicity and svelte of the components and UI elements and coded to perfection with well-organized code.
Stars: ✭ 176 (+1157.14%)
Mutual labels:  gulp, minimal
slim-skeleton
Slim Framework skeleton application following MVC construction
Stars: ✭ 18 (+28.57%)
Mutual labels:  gulp, skeleton
middleman-gulp
A Middleman 4 template using Gulp.js via the external pipeline
Stars: ✭ 42 (+200%)
Mutual labels:  gulp
i-Cut
🔨 个人技术栈
Stars: ✭ 18 (+28.57%)
Mutual labels:  gulp
SyntaxNet-Tensorflow
Minimal Tensorflow Docker image with SyntaxNet/DRAGNN based on Alpine linux
Stars: ✭ 35 (+150%)
Mutual labels:  minimal
brage-ghost-theme
A Ghost theme built with Gulp
Stars: ✭ 44 (+214.29%)
Mutual labels:  gulp
navigation-skeleton
This component allows you to show skeletons of pages during navigation process.
Stars: ✭ 16 (+14.29%)
Mutual labels:  skeleton
redmine-theme-minimalflat
Minimal and flat design Redmine theme.
Stars: ✭ 12 (-14.29%)
Mutual labels:  minimal
design-studio one-page-template
Free responsive flat designed one page template
Stars: ✭ 67 (+378.57%)
Mutual labels:  gulp
Magento2-Admin-Module-Sample
Minimal code to create an admin/backend module in Magento2
Stars: ✭ 45 (+221.43%)
Mutual labels:  minimal
landing
This project builds the static and internationalized landing page of Upplication.
Stars: ✭ 26 (+85.71%)
Mutual labels:  gulp
gatsby-starter-landing-page
🖱 A simple, minimal Gatsby starter for quick and easy landing pages
Stars: ✭ 132 (+842.86%)
Mutual labels:  minimal
gulp-webpack-boilerplate
A good foundation for your next frontend project.
Stars: ✭ 56 (+300%)
Mutual labels:  gulp
spring-boot-angular2-starter
Starter application. Spring Boot, Angular 2, TypeScript, Gulp, Gradle, SCSS.
Stars: ✭ 35 (+150%)
Mutual labels:  gulp
web-generator
👑 Gulp based task runner which creates HTML output from Pug HTML templates
Stars: ✭ 13 (-7.14%)
Mutual labels:  gulp
react-flux-gulp-starter
A universal boilerplate for building React/Flux apps using Gulp and ES6.
Stars: ✭ 46 (+228.57%)
Mutual labels:  gulp
sample-ui-react
Material-UI+ React.js + Redux [ Pug / Scss / Babel ]
Stars: ✭ 15 (+7.14%)
Mutual labels:  gulp
generator-espress
an opinionated yeoman generator that scaffolds a mvc express webapp completely in es6
Stars: ✭ 20 (+42.86%)
Mutual labels:  gulp
Fedora-KDE-Minimal-Install-Guide
Guide to install KDE Plasma desktop environment on a minimal Fedora installation
Stars: ✭ 125 (+792.86%)
Mutual labels:  minimal

gulp-nunjucks-boilerplate

A scalable Gulp generated Nunjucks boilerplate.

Includes:

  • Nunjucks/HTML compilation.
  • Image optimization (imagemin).
  • CSS/Sass processing and minification (sourcemaps, autoprefixer, clean-css).
  • JavaScript bundling and minification (webpack, babel-minify).
  • Delivery folder generation - clean and ready for distribution to staging, production, etc.
  • Fully configurable build process.

Installation

Step 1: Add global packages to your computer.

Step 2: Install dependencies:

yarn

Configuration

Default paths and plugin-configurations can be modified to your liking, but anything beyond that may require some Gulp file refactoring. Additional documentation provided via comments within gulpfile.js.

An example file structure with include-media, normalize.css, flexboxgrid, and jQuery (via node_modules) have been added to the project. To reduce build size, feel free to remove these extra files and packages if they go unused.

src/
├── media/
│   └── *.gif, *.jpg, *.png, *.svg
├── public/
│   └── *.ico, *.xml, etc...
├── scripts/
│   └── *.js (or *.module.js - for exports only)
├── styles/
│   └── *.css, *.scss
└── views/
    └── *.html, *.njk, *.nunjucks

Do NOT remove or rename the immediate folders within src unless you plan to modify the gulp configuration.

Development

Default script:

Processes source files, starts a BrowerSync server (defaults to port 3000), and watches for file changes.

yarn start

Other scripts:

Deletes the generated output folder. This is your reset button.

yarn clean

Staging/Production

Default script:

Processes/minifies/moves files to the configured output folder for distribution.

yarn build

Notes:

  • Use a bang to avoid comments from being stripped out of stylesheets, ex: /*! ... */
  • Individual production tasks can be run seperately, ex:
# Move public files and (sub)folders.
yarn build:public

# Nunjucks compilation.
yarn build:views

# Image optimization.
yarn build:media

# CSS/Sass processing and minification.
yarn build:styles

# JavaScript bundling and minification.
yarn build:scripts
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].