Skip to content
This repository was archived by the owner on Oct 20, 2020. It is now read-only.

Commit 9405211

Browse files
committed
Merge branch 'hotfix-automation'
2 parents c38c41b + d70bebf commit 9405211

4 files changed

Lines changed: 37 additions & 22 deletions

File tree

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
<a name="3.0.2"></a>
2+
## [3.0.2](https://github.com/GuildWars2Brasil/nodeclube/compare/3.0.1...v3.0.2) (2016-01-28)
3+
4+
5+
### Bug Fixes
6+
7+
* **automation:** gulp e task build agora disponíveis no servidor em produção ([936854c](https://github.com/GuildWars2Brasil/nodeclube/commit/936854c))
8+
9+
10+
111
<a name="3.0.1"></a>
212
## 3.0.1 (2016-01-27)
313

gulpfile.js

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,25 @@
11
'use strict';
22

3-
require('gulp-load-tasks')();
3+
var spawn = require('child_process').spawn;
4+
var gulp = require('gulp');
5+
var gutil = require('gulp-util');
6+
7+
// We only need build task on production enviroment
8+
if(process.env.NODE_ENV !== 'production') {
9+
require('gulp-load-tasks')();
10+
} else {
11+
gulp.task('default', ['build']);
12+
}
13+
14+
gulp.task('build', function (done) {
15+
var command = './node_modules/loader-builder/bin/builder',
16+
params = ['views', '.'],
17+
child = spawn(command, params);
18+
19+
gutil.log('Running', gutil.colors.cyan(command, params.join(' ')));
20+
21+
child.stdout.pipe(process.stdout);
22+
child.stderr.pipe(process.stderr);
23+
24+
child.on('exit', done);
25+
});

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nodeclube",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"private": false,
55
"main": "app.js",
66
"description": "A Node.js bbs using MongoDB",
@@ -53,14 +53,15 @@
5353
"utility": "1.6.0",
5454
"validator": "4.5.1",
5555
"xmlbuilder": "4.2.1",
56-
"xss": "0.2.10"
56+
"xss": "0.2.10",
57+
"gulp": "^3.9.0",
58+
"gulp-util": "^3.0.7"
5759
},
5860
"devDependencies": {
5961
"conventional-github-releaser": "^0.5.1",
6062
"conventional-recommended-bump": "0.0.3",
6163
"coveralls": "2.11.6",
6264
"errorhandler": "1.4.3",
63-
"gulp": "^3.9.0",
6465
"gulp-bump": "^1.0.0",
6566
"gulp-conventional-changelog": "^0.7.0",
6667
"gulp-git": "^1.6.1",
@@ -69,7 +70,6 @@
6970
"gulp-load-tasks": "^0.8.4",
7071
"gulp-mocha": "^2.2.0",
7172
"gulp-nodemon": "^2.0.6",
72-
"gulp-util": "^3.0.7",
7373
"istanbul": "0.4.2",
7474
"loader-connect": "1.0.0",
7575
"mm": "1.3.5",

tasks/build.js

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)