Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kflorence/gulp-pretty-url
Simple gulp-rename wrapper to generate pretty URLs
https://github.com/kflorence/gulp-pretty-url
Last synced: 7 days ago
JSON representation
Simple gulp-rename wrapper to generate pretty URLs
- Host: GitHub
- URL: https://github.com/kflorence/gulp-pretty-url
- Owner: kflorence
- License: mit
- Created: 2014-12-07T07:30:21.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-09T22:04:23.000Z (almost 10 years ago)
- Last Synced: 2024-10-14T13:36:51.300Z (25 days ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 2
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gulp-pretty-url
A simple [https://github.com/hparra/gulp-rename](gulp-rename) wrapper to generate pretty URLs.
## Install
`npm install gulp-pretty-url --save-dev`
## Example
```javascript
var gulp = require("gulp");
var prettyUrl = require("gulp-pretty-url");gulp.task("pretty-urls", function() {
return gulp.src("src/**/*.hbs")
.pipe(prettyUrl())
.pipe(gulp.dest("dest"))
});
```Given the following file structure:
```
.
├── index.hbs
├── qux.hbs
└── foo
├── bar.hbs
└── baz.hbs
```The result would be:
```
.
├── index.html
├── qux
│ ├── index.html
└── foo
├── bar
│ └── index.html
└── baz
└── index.html
```## License
MIT