Comparing version 0.1.3 to 0.1.4
@@ -43,3 +43,3 @@ 'use strict'; | ||
forwardEvents(ev, updateGraph(data), function (errored, signal) { | ||
if (signal !== 'SIGINT') { | ||
if (signal && signal !== 'SIGINT') { | ||
gz.close() | ||
@@ -46,0 +46,0 @@ return ev.emit('finish', signal) |
{ | ||
"name": "mekano", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "maintain, update and regenerate groups of files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -29,15 +29,15 @@ #  | ||
bin = `node_modules/.bin`; | ||
bin = `node_modules/.bin` ; | ||
Concat: `cat $in > $out`; | ||
Coffee: `$bin/coffee -cp $in > $out`; | ||
Minify: `$bin/uglifyjs < $in > $out`; | ||
Concat: `cat $in > $out` ; | ||
Coffee: `$bin/coffee -cp $in > $out` ; | ||
Minify: `$bin/uglifyjs < $in > $out` ; | ||
src/**/*.coffee | ||
Coffee => build/**/*.js | ||
Concat -> dist/concat.js; | ||
Concat -> dist/concat.js ; | ||
dist/*.js | ||
Minify => dist/*.min.js | ||
:: all `Update all files`; | ||
:: all `Update all files` ; | ||
@@ -201,3 +201,3 @@ In your preferred shell: | ||
unit = { recipe | relation | bind } | ||
unit = { recipe | relation | bind } ; | ||
@@ -217,3 +217,3 @@ The golden rule when writing a mekanofile is that **order does not matter**. | ||
command = interpolation ; | ||
identifier = { ? A-Z, a-z, 0-9, '-' or '_' ? } | ||
identifier = { ? A-Z, a-z, 0-9, '-' or '_' ? } ; | ||
interpolation = "`", ? any character ?, "`" ; | ||
@@ -227,3 +227,3 @@ | ||
Compile: `gcc -c $in -o $out`; | ||
Compile: `gcc -c $in -o $out` ; | ||
@@ -246,10 +246,10 @@ Backticks define an *interpolation*. An interpolation can contain the backtick | ||
relation = ref-list, { transformation }, [ alias ], ";" | ||
transformation = recipe-name, ( "=>" | "->" ), ref-list | ||
alias = "::", alias-name, [ alias-description ] | ||
ref-list = { path | path-glob | alias-name } | ||
alias-name = identifier | ||
alias-description = interpolation | ||
path = { ? alphanumeric character with at least a '.' or a '/' ? } | ||
path-glob = { ? same as path, but with at least a '*', '**' or '{,}' operator ? } | ||
relation = ref-list, { transformation }, [ alias ], ";" ; | ||
transformation = recipe-name, ( "=>" | "->" ), ref-list ; | ||
alias = "::", alias-name, [ alias-description ] ; | ||
ref-list = { path | path-glob | alias-name } ; | ||
alias-name = identifier ; | ||
alias-description = interpolation ; | ||
path = { ? alphanumeric character with at least a '.' or a '/' ? } ; | ||
path-glob = { ? same as path, but with at least a '*', '**' or '{,}' operator ? } ; | ||
@@ -262,3 +262,3 @@ A prerequisite or a target may be either a single file path, a globling pattern, | ||
source/*.c Compile => obj/*.o Link -> ./hello_world | ||
:: all `Build the hello world program`; | ||
:: all `Build the hello world program` ; | ||
@@ -274,9 +274,9 @@ It means: *"takes all the C files in the `source` folder, compile them to object | ||
foo.c Compile -> foo.o Link -> a.out :: all | ||
foo.c Compile -> foo.o Link -> a.out :: all ; | ||
is equivalent to: | ||
foo.c Compile -> foo.o | ||
foo.o Link -> a.out | ||
a.out :: all | ||
foo.c Compile -> foo.o ; | ||
foo.o Link -> a.out ; | ||
a.out :: all ; | ||
@@ -296,8 +296,8 @@ #### Transformations | ||
*.c Compile => *.o *.d | ||
*.c Compile => *.o *.d ; | ||
is interpreted as: | ||
foo.c Compile -> foo.o foo.d | ||
bar.c Compile -> bar.o bar.d | ||
foo.c Compile -> foo.o foo.d ; | ||
bar.c Compile -> bar.o bar.d ; | ||
@@ -333,4 +333,4 @@ #### Patterns | ||
bind = value-name, "=", interpolation, ";" | ||
value-name = identifier | ||
bind = value-name, "=", interpolation, ";" ; | ||
value-name = identifier ; | ||
@@ -340,4 +340,4 @@ A value cannot be unbound or overridden, but can be rebound in inner scopes. | ||
bin = `node_module/.bin`; | ||
coffee = `$bin/coffee`; | ||
bin = `node_module/.bin` ; | ||
coffee = `$bin/coffee` ; | ||
@@ -344,0 +344,0 @@ A bound value is available anywhere in the mekanofile, even before the |
115667