Update pake build to keep the composer.json in sync with the git tag and the selfupdate version
This commit is contained in:
parent
6c70c5b8e1
commit
44f3649809
12
README.md
12
README.md
|
@ -1,15 +1,5 @@
|
||||||
# Markdown Resume Generator
|
# Markdown Resume Generator
|
||||||
|
|
||||||
2.0 Work in progress, unstable and not yet ready for use.
|
|
||||||
|
|
||||||
- [x] Update composer for symfony dependencies
|
|
||||||
- [ ] Add pake and phar generator
|
|
||||||
- [ ] Update bin with new generated phar
|
|
||||||
- [x] Convert to new command structure
|
|
||||||
- [ ] Update help files
|
|
||||||
|
|
||||||
## Description
|
|
||||||
|
|
||||||
Turn a simple Markdown document into an elegant resume with both a perfect
|
Turn a simple Markdown document into an elegant resume with both a perfect
|
||||||
pdf printable format, and a responsive css3 html5 file. You can view a sample
|
pdf printable format, and a responsive css3 html5 file. You can view a sample
|
||||||
at the [blog post for the project][blog].
|
at the [blog post for the project][blog].
|
||||||
|
@ -51,7 +41,7 @@ at the [blog post for the project][blog].
|
||||||
html Generate an HTML resume from a markdown file
|
html Generate an HTML resume from a markdown file
|
||||||
list Lists commands
|
list Lists commands
|
||||||
pdf Generate a PDF from a markdown file
|
pdf Generate a PDF from a markdown file
|
||||||
selfupdate Updates fb.phar to the latest version.
|
selfupdate Updates md2resume.phar to the latest version.
|
||||||
templates List available templates
|
templates List available templates
|
||||||
version Show current version information
|
version Show current version information
|
||||||
|
|
||||||
|
|
BIN
bin/md2resume
BIN
bin/md2resume
Binary file not shown.
|
@ -2,7 +2,11 @@
|
||||||
"name": "there4/markdown-resume",
|
"name": "there4/markdown-resume",
|
||||||
"description": "Markdown Resume Generator",
|
"description": "Markdown Resume Generator",
|
||||||
"homepage": "https://github.com/there4/markdown-resume",
|
"homepage": "https://github.com/there4/markdown-resume",
|
||||||
"keywords": ["markdown", "resume", "html5"],
|
"keywords": [
|
||||||
|
"markdown",
|
||||||
|
"resume",
|
||||||
|
"html5"
|
||||||
|
],
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"selfupdatepath": "://github.com/there4/markdown-resume/raw/master/bin/md2resume",
|
"selfupdatepath": "://github.com/there4/markdown-resume/raw/master/bin/md2resume",
|
||||||
|
@ -12,17 +16,21 @@
|
||||||
"name": "Craig Davis",
|
"name": "Craig Davis",
|
||||||
"email": "craig@there4development.com",
|
"email": "craig@there4development.com",
|
||||||
"role": "Developer"
|
"role": "Developer"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"name": "Kaiwen Xu",
|
"name": "Kaiwen Xu",
|
||||||
"email": "kevin@kevxu.net",
|
"email": "kevin@kevxu.net",
|
||||||
"role": "Contributor"
|
"role": "Contributor"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"name": "ishitcno1",
|
"name": "ishitcno1",
|
||||||
"role": "Contributor"
|
"role": "Contributor"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"name": "Roland O'Leary",
|
"name": "Roland O'Leary",
|
||||||
"role": "Contributor"
|
"role": "Contributor"
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
"name": "Abhishek Kandoi",
|
"name": "Abhishek Kandoi",
|
||||||
"email": "abhikandoi2000@gmail.com",
|
"email": "abhikandoi2000@gmail.com",
|
||||||
"role": "Contributor"
|
"role": "Contributor"
|
||||||
|
@ -33,20 +41,20 @@
|
||||||
},
|
},
|
||||||
"minimum-stability": "dev",
|
"minimum-stability": "dev",
|
||||||
"require": {
|
"require": {
|
||||||
"symfony/console": "v2.3.4",
|
"kriswallsmith/assetic": "1.1.2",
|
||||||
"symfony/config": "v2.3.4",
|
|
||||||
"symfony/yaml": "v2.3.4",
|
|
||||||
"leafo/lessphp": "v0.4.0",
|
"leafo/lessphp": "v0.4.0",
|
||||||
"michelf/php-markdown": "1.4.0",
|
"michelf/php-markdown": "1.4.0",
|
||||||
"twig/twig": "v1.13.2",
|
|
||||||
"mustache/mustache": "2.5.1",
|
|
||||||
"michelf/php-smartypants": "1.6.0-beta1",
|
"michelf/php-smartypants": "1.6.0-beta1",
|
||||||
|
"mustache/mustache": "2.5.1",
|
||||||
"simple-html-dom/simple-html-dom": "1.5.0",
|
"simple-html-dom/simple-html-dom": "1.5.0",
|
||||||
"kriswallsmith/assetic": "1.1.2"
|
"symfony/config": "v2.3.4",
|
||||||
|
"symfony/console": "v2.3.4",
|
||||||
|
"symfony/yaml": "v2.3.4",
|
||||||
|
"twig/twig": "v1.13.2"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"classmap": [
|
"classmap": [
|
||||||
"vendor/simple-html-dom/simple-html-dom/"
|
"vendor/simple-html-dom/simple-html-dom/"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
6
pakefile
6
pakefile
|
@ -45,8 +45,14 @@ function run_version() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_version_file() {
|
function run_version_file() {
|
||||||
|
// Find the latest tag
|
||||||
$version = trim(shell_exec('git describe --abbrev=0 --tags'));
|
$version = trim(shell_exec('git describe --abbrev=0 --tags'));
|
||||||
|
// Write it to the version file for the self update command
|
||||||
file_put_contents('./version', $version);
|
file_put_contents('./version', $version);
|
||||||
|
// Write it to the composer.json file as well
|
||||||
|
$config = json_decode(file_get_contents('composer.json'));
|
||||||
|
$config->version = $version;
|
||||||
|
file_put_contents('composer.json', json_encode($config, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES));
|
||||||
}
|
}
|
||||||
|
|
||||||
function run_lint() {
|
function run_lint() {
|
||||||
|
|
Loading…
Reference in New Issue