Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

pudl

MaedahBatool2MIT0.4.0

A JavaScript-based static site generator for quick-prototyping of awesome little static demos while teaching/presenting

pug, scss, gulp, sass

readme

pudl

npm npm npm npm npm

🎯 pudl is a JavaScript-based static site generator for quick-prototyping of awesome little static demos while teaching/presenting.
A FOSS (Free & Open Source Software) project. Maintained by @MaedahBatool.

🐶 What Can pudl Do?

  1. Live reloads browser with BrowserSync.
  2. CSS: Sass to CSS conversion, error catching, Autoprefixing and CSS minification.
  3. Watches files for changes in CSS.
  4. Corrects the line endings.
  5. InjectCSS instead of browser page reload
  6. Sends message notification to you.
  7. Prevents pipe breaking caused by errors.

🔥 Getting Started?

<summary> STEP #0 — Don't have Node.js + npm installed? Read this. (CLICK TO EXPAND!)</summary>

In case you are an absolute beginner to the world of Node.js, JavaScript, and npm packages — all you need to do is go to the Node's site download + install Node on your system. This will install both Node.js and npm, i.e., node package manager — the command line interface of Node.js.

You can verify the install by opening your terminal app and typing...

node -v
# Results into v9.11.2 — make sure you have Node >= 8 installed.

npm -v
# Results into v6.2.0 — make sure you have npm >= 5.3 installed.

➡️ Step #1. Download the Required Files

Download gulpfile.js, package.json, .gitignore and config.js files inside the root folder of your project.

OR use your terminal to browse your desired folder and run the following command which will download all the required files for you via cURL.

curl -L https://git.io/pudlgfl -o "gulpfile.js" && curl -L https://git.io/pudlpkjs -o "pacakge.json" && curl -L https://git.io/pudlgig -o ".gitignore" && curl -L https://git.io/pudlcg -o "config.js"

➡️ STEP #2: Editing the Project Variables

Change the project variables in the config.js file according to your folder structure.

// Project Variables.
module.exports = {
    viewSrc: './views/**/*.pug',
    viewDst: './',
    styleSrc: './css/style.scss',
    styleDst: './',
    outputStyle: 'compressed',
    viewWatchFiles: './views/**/*.pug',
    styleWatchFiles: './css/**/*.scss',
    browserAutoOpen: false,
    injectChanges: true
};

➡️ STEP #3: Installing Node Dependencies

In the root folder install the Node Dependencies. In the terminal run this command and wait for it to download all the node.js dependencies. It's a one-time process and can take about 5 minutes depending on the speed of your internet connection.

# For MAC OS X run the following command with super user.
sudo npm install

# For Linux run the following command.
npm install

➡️ STEP #4: Just run npm start

Finally run the following command to get up and running with pudl.

# To start pudl
npm start

# To stop pudl press CTRL (⌃) + C

Now gulp will start watching your pug and sass files for any changes and provides you with a link through which you can access your site locally.

— Feel free to tweet and say 👋 at me @MaedahBatool

changelog

Changelog: pudl

All notable changes in this project's released versions are documented in this file.

Maedah on Twitter


hr


RELEASE: 0.4.0

IMPROVEMENT

👌 Docs and Featured Image e6d5227
👌 release must be a poodle 00af287
👌 No commands e2be33c
👌 Improve cURL Commands 27a3e5b
👌 Docs eee43d9
👌 release must be a poodle 7f176bc

FIX

🐛 Docs Downloadable Links 905594c


hr


RELEASE: 0.3.0

NEW

📦 Auto release and changelog workflows 08d8ba9
📦 BrowserSync Plumber and Notify are here. b37aa0c
📦 BrowserSync c64cca1
📦 Improved codebase 9a948be
📦 Add README.md file 49ec96c
📦 Syntax fd136ef
📦 Add Featured Image 843d3d4

IMPROVEMENT

👌 pudl architechture 6b2e70c
👌 Keywords/Desc 9778419
👌 Defaults 82c0ab8

FIX

🐛 Typo f9608e9


hr


RELEASE: 0.2.0

NEW

📦 releaseit 2700300
📦 Add Keywords c62c9f9
📦 Add Author 7c4bd86
📦 First draft ef78a77
📦 First Commit 8c8e9ac

IMPROVEMENT

👌 Default Task f580b06

DOCS

📖 shields 0a16d94