-
-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: include
__transpiled
folder in the package (#583)
Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com>
- Loading branch information
Showing
3 changed files
with
20 additions
and
2 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 |
---|---|---|
|
@@ -8,4 +8,5 @@ coverage | |
scripts | ||
sample | ||
vscode | ||
test | ||
test | ||
!__transpiled |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
const { transpileFiles } = require("@asyncapi/generator-react-sdk"); | ||
const path = require("path"); | ||
|
||
async function transpileTemplate() { | ||
try { | ||
const templateContentDir = path.join(__dirname, "../template"); | ||
console.log("Template content directory:", templateContentDir); | ||
const outputDir = path.join(__dirname, "../__transpiled"); | ||
console.log("Output directory for transpiled files:", outputDir); | ||
await transpileFiles(templateContentDir, outputDir, { recursive: true }); | ||
} catch (error) { | ||
console.log("Error during template transpilation:", err) | ||
} | ||
} | ||
|
||
transpileTemplate(); |