0.2.2 • Published 4 years ago
e1c-repo-tools v0.2.2
1C enterprise repository tools
Tools for 1C enterprise repository
Installation
npm install -D e1c-repo-tools
or
yarn add -D e1c-repo-tools
Config
In the package.json
file, add the e1cRepoConfig
field, which contains the following settings:
pathToExecutable
- (string, required) full path to the executable of 1C enterprisepathToSrcDir
- (string, default:./src
) path to the directory that contains source files of external data processors/reportspathToDistDir
- (string, default:./dist
) path to the directory that contains built external data processors/reportspathToLogsDir
- (string, default:./logs
) path to the directory that contains logsfilesExtensions
- (array of strings, default:["erf", "epf"]
) extensions that used to search for files when they dump into source files
Usage
There are currently three cli utils:
e1c-dump
- dump external reports/processors into the source files based on the settings inpackage.json
. If the directory, where the unloading is performed, contains changes, then before deleting a backup copy of it is createde1c-build
- build source files into external reports/processors based on the settings inpackage.json
. If a file with the corresponding name exists and contains changes, it is backed upe1c-precommit-hook
- script, to be used as a git-hook. It works similarly toe1c-dump
, but only staged files are used to dump them. It also adds the source files to the current commit after they have been stagedSimply install husky and add to your
package.json
"husky": { "hooks": { "pre-commit": "yarn e1c-precommit-hook" // or `npx e1c-precommit-hook` } }