-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: run lint:fix on templates package
Signed-off-by: Tierney Cyren <[email protected]>
- Loading branch information
Showing
7 changed files
with
15 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
module.exports = __dirname | ||
module.exports = __dirname |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 5 additions & 7 deletions
12
templates/testUtils/generateRepoInformationFromData.setup.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,24 @@ | ||
const { writeFile } = require('node:fs/promises') | ||
const { resolve } = require('node:path'); | ||
const { resolve } = require('node:path') | ||
const core = require('@retrogen/core') | ||
const generateRepoInformationFromData = require('../tools/generateRepoInformationFromData') | ||
const generateBody = require('../tools/generateBody') | ||
const dir = require('../dir') | ||
const dates = require('./dates.json') | ||
|
||
|
||
async function setup() { | ||
async function setup () { | ||
// configuration variables that we use later | ||
const nodejsReferencePath = resolve(`${dir}/testUtils/reference/generateRepoInformationFromData.nodejs.json`) | ||
const twilioReferencePath = resolve(`${dir}/testUtils/reference/generateRepoInformationFromData.twilio.json`) | ||
|
||
// get data and compose it | ||
const nodejsData = await core('nodejs', dates) | ||
const twilioData = await core('twilio', dates) | ||
const nodejsComposedData = await generateRepoInformationFromData(nodejsData) | ||
const twilioComposedData = await generateRepoInformationFromData(twilioData) | ||
|
||
// write the composed data to its final location | ||
await writeFile(nodejsReferencePath, JSON.stringify(nodejsComposedData, null, 2)) | ||
await writeFile(twilioReferencePath, JSON.stringify(twilioComposedData, null, 2)) | ||
} | ||
|
||
setup() | ||
setup() |