forked from kaleb/js-math
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCakefile
More file actions
28 lines (19 loc) · 671 Bytes
/
Cakefile
File metadata and controls
28 lines (19 loc) · 671 Bytes
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
{exec, spawn} = require 'child_process'
path = require 'path'
repo = 'git' # or 'hg
getVersion = -> spawn 'npm', ['--version'], (err, stdout, stderr) ->
[err, stdout, stderr]
task 'edit', 'Edit the Cakefile', (options) ->
console.log 'Not implemented', options
task 'version', 'Display the package version.', (options) ->
exec 'npm --version', (error, stdout, stderr) ->
version = stdout.split('.')
console.log version[2]
task 'ci', 'commit', (options) ->
console.dir(options)
exec "#{repo} commit", (error, stdout, stderr) ->
console.log stdout
task 'co',
task 'push'
task 'pull'
option '-m', '--message', 'Message'