Skip to content

Commit

Permalink
📦 NEW: Add README.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
MaedahBatool committed Aug 8, 2018
1 parent 1756c93 commit 49ec96c
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 6 deletions.
89 changes: 86 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,97 @@
<h1 align="center">
<img src="https://on.ahmda.ws/sjK6/c" />

gulp-poodle
pudl

</h1>

[![npm](https://img.shields.io/npm/v/gulp-poodle.svg?style=flat-square)](https://www.npmjs.com/package/gulp-poodle) [![npm](https://img.shields.io/npm/dt/gulp-poodle.svg?style=flat-square&label=downloads)](https://www.npmjs.com/package/gulp-poodle)

> A gulp static site builder with Pug and SCSS.
# pudl

---
> **pudl** is a JavaScript-based static site generator for quick-prototyping of awesome little static demos while teaching/presenting.
## ⚡️ 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?

<details>
<summary><strong> STEP #0</strong> — Don't have <code>Node.js</code> + <code>npm</code> 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](https://nodejs.org/en/download/) 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...

```sh
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.
```

</details>

### → Step #1. Download the Required Files

Download [`gulpfile.js`](https://raw.githubusercontent.com/MaedahBatool/pudl/master/gulpfile.js), [`package.json`](https://raw.githubusercontent.com/MaedahBatool/pudl/master/package.json), [`.gitignore`](https://raw.githubusercontent.com/MaedahBatool/pudl/master/.gitignore) and [`config.js`](https://raw.githubusercontent.com/MaedahBatool/pudl/master/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._

```bash
curl -L https://git.io/pudlgf -o "gulpfile.js" && curl -L https://git.io/pudlpkg -o "pacakge.json" && curl -L https://git.io/pudlgi -o ".gitignore" && curl -L https://git.io/pudlcfg -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.

```bash
# 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.

```bash
# 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](https://twitter.com/MaedahBatool/)
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
* In paths you can add <<glob or array of globs>>. Edit the variables as per your project requirements.
*/

// Project options.
module.exports = {
viewSrc: './views/**/*.pug',
viewDst: './',
Expand Down
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ gulp.task('bSync', function() {
// Serve files from the current directory.
server: true
});
});˙
});

/**
* Default
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "gulp-poodle",
"name": "pudl",
"version": "0.2.0",
"author": "Maedah Batool (https://MaedahBatool.com/)",
"devDependencies": {
Expand Down

0 comments on commit 49ec96c

Please sign in to comment.