This commit is contained in:
Benjamin Gamard 2018-03-01 14:18:23 +01:00
parent f70cded634
commit ea210d6aac
7 changed files with 21 additions and 13 deletions

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.sismics.docs</groupId>
<artifactId>docs-parent</artifactId>
<version>1.5-SNAPSHOT</version>
<version>1.5</version>
<relativePath>..</relativePath>
</parent>

View File

@ -3,16 +3,16 @@ File Importer
This tool can be used to do a single import of files or to periodically scan for files in an input folder.
Requirements
------------
- NodeJS 9
- NPM
Downloads
---------
Built binaries for Windows/Linux/MacOSX can be found at <https://github.com/sismics/docs/releases>
Usage
-----
```console
npm install
node main.js
./docs-importer-macos (for MacOSX)
./docs-importer-linux (for Linux)
docs-importer-win.exe (for Windows)
```
A wizard will ask you for the import configuration and write it in `~/.config/preferences/com.sismics.docs.importer.pref`
@ -20,3 +20,11 @@ A wizard will ask you for the import configuration and write it in `~/.config/pr
Daemon mode
-----------
The daemon mode scan the input directory every 30 seconds for new files. Once a file is found and imported, it is **deleted**.
Build from sources
------------------
```console
npm install
npm install -g pkg
pkg .
```

View File

@ -2,7 +2,7 @@
"name": "docs-importer",
"version": "1.0.0",
"description": "Import files to Sismics Docs",
"main": "main.js",
"bin": "main.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.sismics.docs</groupId>
<artifactId>docs-parent</artifactId>
<version>1.5-SNAPSHOT</version>
<version>1.5</version>
<relativePath>..</relativePath>
</parent>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.sismics.docs</groupId>
<artifactId>docs-parent</artifactId>
<version>1.5-SNAPSHOT</version>
<version>1.5</version>
<relativePath>..</relativePath>
</parent>

View File

@ -5,7 +5,7 @@
<parent>
<groupId>com.sismics.docs</groupId>
<artifactId>docs-parent</artifactId>
<version>1.5-SNAPSHOT</version>
<version>1.5</version>
<relativePath>..</relativePath>
</parent>

View File

@ -6,7 +6,7 @@
<groupId>com.sismics.docs</groupId>
<artifactId>docs-parent</artifactId>
<packaging>pom</packaging>
<version>1.5-SNAPSHOT</version>
<version>1.5</version>
<name>Docs Parent</name>