-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
99 lines (94 loc) · 2.11 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
'use strict';
var gulp = require('gulp');
var begin = require('gulp-begin');
/**
* ## Build
* ### Requirements
* - [Postgresql](http://www.postgresql.org/)
*
* #### Setup
* ```bash
* $ npm run setup
* ```
*
* This installs the following globally:
* - [Gulp](http://gulpjs.com/)
* - [Bower](http://bower.io/)
* - [Node Foreman](http://strongloop.github.io/node-foreman/)
* - [Node Inspector](https://github.com/node-inspector/node-inspector)
*
* Then install the required Node dependencies with:
* ```bash
* $ npm install
* ```
*
* Add a file called `.env` to the root of the project with the following contents:
* ```json
* {
* "node": {
* "env": "dev"
* }
* }
* ```
* You can now run the development server by running the following commands:
* ```bash
* $ npm start
* ```
*
* - You can now visit [http://localhost:8081/](http://localhost:8081/) to view changes live.
*
* #### Serverside runtime
* - Uses dependency injection from [Nodep](http://nodep.org)
*
* ### Running the test suite
* #### Single Run:
* ```bash
* $ gulp test
* ```
* #### Continuous testing when files are changed:
* ```bash
* $ gulp autotest
* ```
* ### Generating README.md
* ```bash
* $ gulp docs
* ```
* ### Generating CHANGELOG.md
* ```bash
* $ gulp changelog
* ```
* ### Notes
* - jshint is part of the test suite and should be kept clean
* - Commits should have high test coverage
* - Docs should be kept up to date
* - Additions should come with documentation
* - commit messages should follow [Angular conventional format](https://github.com/stevemao/conventional-changelog-angular/blob/master/convention.md)
* @module contributing
*/
begin(gulp, {
prefix: 'example',
server: {
main: 'example/index.js',
cwd: 'example/src/server'
},
client: {
cwd: 'example/src/client',
dest: 'example/public'
}
});
begin(gulp, {
server: {
cwd: 'src'
},
exclude: [
'html',
'styles',
'scripts',
'images',
'build',
'server',
'demon',
'dev'
]
});
gulp.task('default', ['dev']);