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
local
node_modules
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) {
if (!/\+$/.test(pkg.version)) {
if (!pkg.develop) {
done();
return;
}
$.git(root, function (err, result) {
pkg.version += result.buildSuffix;
pkg.version += '+' + result.buildSuffix;
$.info({ method: 'check-version', message: 'version set to ' + pkg.version });
done();
});

View File

@ -1,12 +1,22 @@
{
"name": "h5ai",
"version": "0.25.2+",
"version": "0.25.2",
"develop": true,
"description": "a modern HTTP web server index",
"homepage": "http://larsjung.de/h5ai/",
"bugs": "https://github.com/lrsjng/h5ai/issues",
"author": "Lars Jung <lrsjng@gmail.com> (http://larsjung.de)",
"license": "MIT",
"repository": {
"type": "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"
}
}