All Projects → marianzburlea → Pug Starter

marianzburlea / Pug Starter

Licence: gpl-3.0
Simple pug (jade) starter [framework] enabling faster delivery of HTML & CSS projects to a private server and/or automatic deployment of GitHub pages.

Programming Languages

javascript
184084 projects - #8 most used programming language
js
455 projects

Projects that are alternatives of or similar to Pug Starter

Gulp Pug Starter
Frontend development with pleasure. Pug + SCSS version
Stars: ✭ 228 (-30.49%)
Mutual labels:  starter-kit, starter, development-environment, web-development, development-tools, scss, sass, pug, bem
Gulp Scss Starter
Frontend development with pleasure. SCSS version
Stars: ✭ 339 (+3.35%)
Mutual labels:  starter-kit, starter, development-environment, web-development, development-tools, scss, sass, bem
Nth Start Project
Startkit for HTML / CSS / JS pages layout.
Stars: ✭ 578 (+76.22%)
Mutual labels:  starter-kit, starter, scss, pug, bem
Compile Hero
🔰Visual Studio Code Extension For Compiling Language
Stars: ✭ 169 (-48.48%)
Mutual labels:  json, scss, sass, pug
Wordpress Starter
📦 A starter template for WordPress websites
Stars: ✭ 26 (-92.07%)
Mutual labels:  starter-kit, starter, starter-template, sass
Bootstrap 4 Sass Gulp 4 Boilerplate
A Bootstrap 4.5.2 boilerplate with font-awesome, sass, gulp 4 tasks
Stars: ✭ 103 (-68.6%)
Mutual labels:  starter, starter-template, scss, sass
Primitive
⛏️ ‎ A front-end design toolkit for developing web apps.
Stars: ✭ 783 (+138.72%)
Mutual labels:  starter-kit, scss, sass
Niklick
Rails Versioned API solution template for hipsters! (Ruby, Ruby on Rails, REST API, GraphQL, Docker, RSpec, Devise, Postgress DB)
Stars: ✭ 39 (-88.11%)
Mutual labels:  starter-kit, starter, starter-template
Generator Jekyll Starter Kit
🚀 Jekyll Progressive Web App Generator.
Stars: ✭ 139 (-57.62%)
Mutual labels:  starter-kit, scss, pug
Webpack Starter Basic
A simple webpack starter project for your basic modern web development needs.
Stars: ✭ 552 (+68.29%)
Mutual labels:  starter-kit, starter, sass
Sass Vars Loader
Use Sass variables defined in Webpack config or in external Javascript or JSON files
Stars: ✭ 112 (-65.85%)
Mutual labels:  json, scss, sass
sass-starter-pack
Sass starter files using Gulp v4.0.0 🔥
Stars: ✭ 34 (-89.63%)
Mutual labels:  starter-template, starter, starter-kit
example-typescript-package
Example TypeScript Package ready to be published on npm & Tutorial / Instruction / Workflow for 2021
Stars: ✭ 71 (-78.35%)
Mutual labels:  starter-template, starter, starter-kit
Next Js Blog Boilerplate
🚀 Nextjs Blog Boilerplate is starter code for your blog based on Next framework. ⚡️ Made with Nextjs, TypeScript, ESLint, Prettier, PostCSS, Tailwind CSS.
Stars: ✭ 134 (-59.15%)
Mutual labels:  starter-kit, starter, starter-template
Redux Webpack Es6 Boilerplate
A starter project for modern React apps with Redux
Stars: ✭ 566 (+72.56%)
Mutual labels:  starter-kit, starter-template, sass
botfuel-sample-starter
Starter bot using Botfuel Dialog
Stars: ✭ 24 (-92.68%)
Mutual labels:  starter-template, starter, starter-kit
noise-php
A starter-kit for your PHP project.
Stars: ✭ 52 (-84.15%)
Mutual labels:  starter-template, starter, starter-kit
node-starter-kit
Node.js / GraphQL project template pre-configured with TypeScript, PostgreSQL, login flow, transactional emails, unit tests, CI/CD workflow.
Stars: ✭ 76 (-76.83%)
Mutual labels:  website, starter, starter-kit
Hartija Css Print Framework
Universal CSS for web printing
Stars: ✭ 509 (+55.18%)
Mutual labels:  starter-kit, starter, starter-template
gw-starter-kit
PEPELAC - Современный инструментарий для вёрстки и создания статичных сайтов с использованием Webpack
Stars: ✭ 30 (-90.85%)
Mutual labels:  web-development, starter, starter-kit

Greenkeeper badge

Pug starter

Table of contents

baseUrl

Note: inline attribute has been updated to embed

Old way:

if config.entry.css.embed
  link(rel="stylesheet" href=`${embedPath}` inline)

New way:

if config.entry.css.embed
  link(rel="stylesheet" href=`${embedPath}` embed)

add modularCss support. When enabled in the config of package.json it will convert all SCSS/SASS files to its correspondent CSS path.

add baseurl support which can be configured for GitHub.io and custom domain. Check package.json config section for

  • deployToGithubIo - (true|false) by default it is set to true and will affect the value of baseUrl when you want to deploy to GitHub.io; You want to set it to false if you want to use customUrl as the value of baseUrl
  • customUrl - if you want baseUrl to have a value like http://my-project.codetap.io or any other one;
  • githubUrl - if you want baseUrl to have a value like http://github.com/marianzburlea/pug-starter.git or any other one;

In the end you can use baseUrl to prefix your paths like:

link(rel="stylesheet", href=`${baseUrl}/style.css`)

or

a(
  title="Is it possible?"
  target="_blank"
  href=`${baseUrl}/article/nice-weather`
)

or

img(alt="Awesome dog" width="100" href=`${baseUrl}/image/cool-dog.jpg`)

YouTube video tutorials

I want to change those tutorials to new ones using the new techniques.

To help you out even more I've put together some YouTube tutorials:

  • Install nodejs, git and github

Install nodejs, git and github

  • How to make a website for free in 3 easy steps 2017

How to make a website for free in 3 easy steps 2017 - CodeTap

  • The nightmare is finally over! HTML5 tutorial on how to build a webpage layout 2017

The nightmare is finally over! HTML5 tutorial on how to build a webpage layout 2017 - CodeTap

  • Build HTML5 website pain free tutorial for beginners 2017

Build HTML5 website pain free tutorial for beginners 2017

Starter package for pug (former jade) template based projects.

Note: an boolean option config.render.sourceFileChange has been added to the package.json. The behaviour differs based on the value:

  1. true - it renders if the source file (pug file) has been changed; This has a much much greater speed when rendering compared to the other option however it's only relevant if you make change to the current file watched by PUG. If you make a change to a file that's extended and resides in a path that contains "_", like a layout one, the change won't be reflected.
  2. false - it renders if any pug file has been changed and compares the output with the destination file (the HTML generated now with the previous generated HTML). This can be slower when the number of files increases.

Live projects built with pug-starter

If you want your project to be listed here leave a message on CodeTap on FaceBook. You're project needs to be at least version one final (no beta / alpha or work in progress) will be accepted.

Prerequisites

The project requires NodeJS v.4+

To install NodeJS visit nodejs download page download the appropiate package for your operatin system, click on the downloaded file, open it and follow the installation procees. If you don't know much about it, just click ALL the NEXT and or INSTALL buttons and choose "I agree" when prompted and you should be fine.

Installation

BEFORE YOU INSTALL: please read the prerequisites

$ npm i

or

$ npm install

Note: if you run into an pngquant-bin error on Windows try running:

npm install [email protected] -D
npm install [email protected] -D

before you run npm start

Usage

To run the project in development mode and open a local server that synchronizes across multiple devices use:

npm start

or

npm run dev

To build the project for production use:

npm run prod

To automatically deploy your project to GitHub pages and make it available at https://[your-username].github.io/[your-project-name] use:

npm run deploy

Style

The project supports both embed and external style sheets. You can have none, one or the other, or both of them.

Single page application style

When you're building a single page app or website, there is no point in having the style sheets loaded from an external file and I'll explain why: the point of loading external style sheets is to allow the browser to cache those files and once you visit another web page of the same website, instead of making another request(s) for the style sheet file(s) to the server and having to download them, if there is no change, the browser will load them from the local drive. In a single page, there is no other page to go to therefore the external file technique doesn't apply.

Multi page application style

In this scenario you can have either both embed and external or just external. The most common scenario is to have only one external style sheet file to be loaded and most of the time that's just fine.

If you want to improve your SEO and user experience even further, I strongly recommend to use a combination of both embed and external. The embed style sheet should only contain the minimum amount of styles for the initial visible part of the page to render. The rest of the styles can be put in the external CSS file.

Auto reset git

If you run npm i, the git history will get reset.

To avoid resetting the git history run npm i --ignore-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].