Skip to content

Commit 010f831

Browse files
committed
➕ added 🎂 🍰 😁
1 parent 97f011f commit 010f831

10 files changed

+243
-59
lines changed

.jsbeautifyrc

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"html": {
3+
"indent_char": "\t",
4+
"indent_size": 1
5+
},
6+
"js": {
7+
"indent_char": "\t",
8+
"indent_size": 1
9+
},
10+
"css": {
11+
"indent_char": "\t",
12+
"indent_size": 1
13+
}
14+
}

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@
77

88
* feature: added home hero section
99
* feature: added home about section
10+
11+
12+
### 0.0.2
13+
14+
* feature: added :birthday: cake

gulpfile.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
const del = require('del');
33
const gulp = require('gulp');
4+
const yargs = require("yargs").argv;
45
const wiredep = require('wiredep').stream;
56
const runSequence = require('run-sequence');
67
const browserSync = require('browser-sync');
@@ -9,7 +10,7 @@ const gulpLoadPlugins = require('gulp-load-plugins');
910

1011
const $ = gulpLoadPlugins();
1112
const reload = browserSync.reload;
12-
13+
const PRODUCTION = yargs.production;
1314

1415

1516
gulp.task('styles', () => {
@@ -75,6 +76,8 @@ gulp.task('html', ['styles', 'scripts'], () => {
7576
}))
7677
.pipe($.if('*.js', $.uglify()))
7778
.pipe($.if('*.css', $.cssnano({safe: true, autoprefixer: false})))
79+
.pipe($.if('*.html',
80+
( $.if( PRODUCTION , $.htmlmin({collapseWhitespace: true})))))
7881
.pipe(gulp.dest('public'));
7982
})
8083

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tehranjs-website-html-template",
3-
"version": "0.0.12",
3+
"version": "0.0.2",
44
"description": "HTML template of tehranjs.com website",
55
"main": "site/index.html",
66
"author": "Seyed Naser Hassani <[email protected]>",
@@ -34,6 +34,7 @@
3434
"gulp-cssnano": "^2.1.2",
3535
"gulp-eslint": "^3.0.1",
3636
"gulp-gh-pages": "^0.5.4",
37+
"gulp-htmlmin": "^3.0.0",
3738
"gulp-if": "^2.0.2",
3839
"gulp-imagemin": "^3.1.1",
3940
"gulp-load-plugins": "^1.5.0",
@@ -50,7 +51,8 @@
5051
"run-sequence": "^1.2.2",
5152
"surge": "^0.18.0",
5253
"webpack-stream": "^3.2.0",
53-
"wiredep": "^4.0.0"
54+
"wiredep": "^4.0.0",
55+
"yargs": "^7.0.1"
5456
},
5557
"eslintConfig": {
5658
"env": {

public/index.html

+2-52
Large diffs are not rendered by default.

public/styles/tehranjs.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)