Update build process.

This commit is contained in:
Lars Jung 2014-08-04 14:41:08 +02:00
parent 103824aa89
commit 2668c28737
3 changed files with 14 additions and 4 deletions

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
*.sublime-*
build build
local local
node_modules
test test

View file

@ -36,14 +36,14 @@ module.exports = function (make) {
make.target('check-version', [], 'add git info to dev builds').async(function (done, fail) { make.target('check-version', [], 'add git info to dev builds').async(function (done, fail) {
if (!/\+$/.test(pkg.version)) { if (!pkg.develop) {
done(); done();
return; return;
} }
$.git(root, function (err, result) { $.git(root, function (err, result) {
pkg.version += result.buildSuffix; pkg.version += '+' + result.buildSuffix;
$.info({ method: 'check-version', message: 'version set to ' + pkg.version }); $.info({ method: 'check-version', message: 'version set to ' + pkg.version });
done(); done();
}); });

View file

@ -1,12 +1,22 @@
{ {
"name": "h5ai", "name": "h5ai",
"version": "0.25.2+", "version": "0.25.2",
"develop": true,
"description": "a modern HTTP web server index", "description": "a modern HTTP web server index",
"homepage": "http://larsjung.de/h5ai/", "homepage": "http://larsjung.de/h5ai/",
"bugs": "https://github.com/lrsjng/h5ai/issues",
"author": "Lars Jung <lrsjng@gmail.com> (http://larsjung.de)", "author": "Lars Jung <lrsjng@gmail.com> (http://larsjung.de)",
"license": "MIT", "license": "MIT",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/lrsjng/h5ai.git" "url": "https://github.com/lrsjng/h5ai.git"
},
"scripts": {
"test": "mocha --recursive test"
},
"devDependencies": {
"lodash": "^2.4.1",
"mocha": "^1.21.3",
"zombie": "^2.0.0-alpha31"
} }
} }