Publish utilities

This commit is contained in:
Johannes Zillmann 2021-01-03 14:10:02 +01:00
parent a3695a4a56
commit 0aa56386c7
6 changed files with 28 additions and 3 deletions

View File

@ -18,6 +18,11 @@ Use the [issue tracker](https://github.com/jzillmann/pdf-to-markdown/issues) and
- `npm run format` Run the prettier formatter
- `npm run build` Compile the typescript files to the `lib` folder
### Test Release locally and use in other projects
- `npm link` in the core project
- `npm link pdf-to-markdown-core` in the target project
## Release
//TBD

View File

@ -1,6 +1,6 @@
{
"name": "pdf-to-markdown-core",
"version": "1.0.0",
"version": "0.5.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

View File

@ -13,7 +13,8 @@
"type": "git",
"url": "https://github.com/jzillmann/pdf-to-markdown"
},
"main": "index.js",
"main": "lib/src/index.js",
"types": "lib/src/index.d.ts",
"files": [
"lib/src/**/*"
],
@ -21,7 +22,12 @@
"test": "jest",
"build": "tsc",
"format": "prettier --write \"src/**/*.ts\"",
"lint": "tslint -p tsconfig.json"
"lint": "tslint -p tsconfig.json",
"prepare": "npm run build",
"prepublishOnly": "npm test && npm run lint",
"preversion": "npm run lint",
"version": "npm run format && git add -A src",
"postversion": "git push && git push --tags"
},
"devDependencies": {
"@types/jest": "^26.0.19",

4
ui/.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.build
build
web_modules
node_modules

2
ui/.prettierignore Normal file
View File

@ -0,0 +1,2 @@
package-lock.json
public/build/

8
ui/.prettierrc Normal file
View File

@ -0,0 +1,8 @@
{
"svelteSortOrder": "scripts-markup-styles",
"printWidth": 120,
"tabWidth": 4,
"semi": true,
"singleQuote": true,
"endOfLine": "lf"
}