@wesym/pld-generator
v1.0.0
Published
Wesym PLD generator
Readme
Wesym PLD generator
Requirements
You'll need:
- A configuration file
- The PLD template file
- An output directory
Example
const path = require('path')
const generator = require('@wesym/pld-generator')
const config = require('./config/pld.json') // This is the configuration file
generator.config({
spreadsheetId : config.SHEET_ID,
meta : config.PLD_META,
templatePath : path.join(__dirname, 'template', 'wesym_pld.odt') // The template file
})
generator.generate()
.then(() => generator.write(path.join(__dirname, 'plds'))) // And the output directoryConfiguring
The configuration file you must have should be like this
{
"SHEET_ID": "1CrIrRcTcH1wBvcDty5ABNyEkMu9iCt82f3IpwTsO2CY",
"PLD_META": {
"title": "Project Log Document",
"object": "Document PLD",
"author": "Wesym",
"responsible": "Vincent BERTIN",
"email": "[email protected]",
"keywords": "Fonctionnalités, déploiement, outils",
"promotion": "2021",
"majDate": "11 décembre 2019",
"version": "1.1",
"revisions": [
{
"date": "13/11/2019",
"version": "1.0",
"author": "Vincent BERTIN",
"sections": "-",
"note": "Première version du PLD"
}
]
}
}This is an example, change the value as you need.
DON'T FORGET TO CHANGE THE SHEET_ID IN ORDER TO USE THE RIGHT GOOGLE SHEET.
