mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-05-28 14:04:45 -04:00
Update build process.
This commit is contained in:
parent
103824aa89
commit
2668c28737
3 changed files with 14 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
*.sublime-*
|
|
||||||
build
|
build
|
||||||
local
|
local
|
||||||
|
node_modules
|
||||||
test
|
test
|
||||||
|
|
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
12
package.json
12
package.json
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue