Skip to content

Commit

Permalink
Merge pull request #31 from cu-mkp/dev
Browse files Browse the repository at this point in the history
Updates to version and help commands
  • Loading branch information
ajolipa authored Apr 2, 2024
2 parents 9fca64f + 65ff490 commit 8daee0d
Show file tree
Hide file tree
Showing 4 changed files with 153 additions and 11 deletions.
154 changes: 145 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"name": "@cu-mkp/editioncrafter-cli",
"version": "0.2.0",
"version": "0.2.1",
"description": "This is the command line tool to take a TEI XML file and turn it into a IIIF Manifest and the necessary Web Annotations to display the text in EditionCrafter.",
"homepage": "https://cu-mkp.github.io/editioncrafter/",
"main": "src/index.js",
"bin": {
"editioncrafter": "./editioncrafter"
Expand All @@ -10,13 +11,14 @@
"author": "Nick Laiacona <[email protected]>",
"license": "MIT",
"scripts": {
"start": "node_modules/.bin/http-server -c-1 -p 8080 --cors"
"start": "genversion version.js && node_modules/.bin/http-server -c-1 -p 8080 --cors"
},
"dependencies": {
"@ungap/structured-clone": "^1.2.0",
"axios": "^1.4.0",
"cors": "^2.8.5",
"express": "^4.18.2",
"genversion": "^3.2.0",
"jsdom": "^21.1.0",
"prettier": "^2.8.8"
},
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const path = require('path')
const fs = require('fs')
const version = require('../version');

const { renderTEIDocument } = require("./render")
const { serializeTEIDocument } = require("./serialize")
Expand Down Expand Up @@ -94,6 +95,7 @@ function processArguments() {
}

function displayHelp() {
console.log(`EditionCrafter v${version}`)
console.log(`Usage: editioncrafter <command> [-c config_path]|[<tei_path> <output_path> <base_url>]` );
console.log("Edition Crafter responds to the following <command>s:")
console.log("\tiiif: Process the IIIF Manifest into a TEIDocument.")
Expand Down
2 changes: 2 additions & 0 deletions version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8daee0d

Please sign in to comment.