Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanneculai committed Nov 26, 2018
2 parents 7d66d8d + e049607 commit f476ac5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Over 170 responsive design blocks ready to be used in your web or mobile apps. A
1. **Download Froala Design Blocks.** There are several ways to start using the Froala Design Blocks depending on how you prefer:

- [Use the builder](https://www.froala.com/design-blocks/webpage-builder)
- [Download the latest release](https://github.com/froala/design-blocks/archive/1.0.2.zip) and then read the [What's included](#whats-included) section below.
- [Download the latest release](https://github.com/froala/design-blocks/blob/master/froala-design-blocks.zip?raw=true) and then read the [What's included](#whats-included) section below.
- Clone the repo and run it.
```bash
git clone https://github.com/froala/design-blocks.git
Expand Down
Binary file added froala-design-blocks.zip
Binary file not shown.
7 changes: 7 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ var fs = require('fs');
var path = require('path');
var cssmin = require('gulp-cssmin');
var rename = require('gulp-rename');
var zip = require('gulp-zip');

function getBlocks(dir) {
return fs.readdirSync(dir)
Expand Down Expand Up @@ -85,6 +86,12 @@ gulp.task('watch', [], function() {
});
})

gulp.task('zip', () =>
gulp.src('dist/*')
.pipe(zip('froala-design-blocks.zip'))
.pipe(gulp.dest('./'))
);

gulp.task('connect', function () {
connect.server({
root: ['.tmp', 'node_modules', 'screenshots'],
Expand Down
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,10 @@
}
],
"scripts": {
"start": "gulp",
"screenshots": "gulp screenshots",
"dist": "gulp dist"
"start": "gulp",
"zip": "gulp zip",
"dist": "gulp dist && gulp zip"
},
"devDependencies": {
"del": "^3.0.0",
Expand All @@ -42,6 +43,7 @@
"gulp-sass": "^4.0.2",
"gulp-util": "^3.0.8",
"gulp-watch": "^4.3.11",
"gulp-zip": "^4.2.0",
"node-sass": "^4.9.3",
"puppeteer": "^0.12.0"
},
Expand Down

0 comments on commit f476ac5

Please sign in to comment.