forked from ULL-ESIT-PL-1617/egg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
49 lines (40 loc) · 1.71 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
var gulp = require('gulp');
var shell = require('gulp-shell');
gulp.task("default", ["test"]);
gulp.task('deb', shell.task('node --inspect-brk ./bin/egg.js examples/one.egg'));
gulp.task('run', shell.task('node ./bin/egg.js examples/one.egg'));
gulp.task("test", shell.task("NODE_PATH=lib ./node_modules/mocha/bin/mocha --require should"));
// Remote pl1617 [email protected]:ULL-ESIT-PL-1617/egg.git contains public version of the repo
// Pushes the public version pl1617master
gulp.task("publicpush", shell.task("git push pl1617 pl1617master:master"));
/*
[~/.../crguezl-egg(pl1819-march-public)]$ date
lunes, 1 de abril de 2019, 07:30:14 WEST
[~/.../crguezl-egg(pl1819-march-public)]$ git remote -v
gist [email protected]:2ec9aeb4e3fa512eec26.git (fetch)
gist [email protected]:2ec9aeb4e3fa512eec26.git (push)
pl1617 [email protected]:ULL-ESIT-PL-1617/egg.git (fetch)
pl1819 [email protected]:ULL-ESIT-PL-1819/egg.git (fetch)
private-egg [email protected]:ULL-ESIT-PL-1718/egg.git (fetch)
[~/.../crguezl-egg(pl1819-march-public)]$ pwd -P
/Users/casiano/local/src/javascript/PLgrado/eloquentjsegg
*/
// Pushes pl18-19-march-public to pl1819
gulp.task("push1819", shell.task("git push pl1819 pl1819-march-public:master"));
gulp.task("test-package", shell.task(
[
"rm -fR /tmp/check-egg && "+
"git clone [email protected]:8dfcaa01a0377dead374bc35c462c29d.git /tmp/check-egg && "+
"cd /tmp/check-egg/ && "+
"npm i --no-save && "+
"npm start | grep '395\.5'"
]));
gulp.task("publish", shell.task([
"git ci -am `npm -v '@crguezl/eloquentjsegg'`", // bug. It goes one behind
"npm version patch",
"npm publish --access public",
"git push origin master"
]));
gulp.task("clean", shell.task(
"rm -f *.evm **/*.evm"
));