Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
fix(:pencil:): Improve route handling
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoache1 committed Nov 3, 2022
1 parent b49ac1d commit eed8652
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 19 deletions.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xmartlabs/rnx-cli",
"version": "0.0.1",
"version": "1.0.1",
"private": false,
"description": "rnx-cli CLI",
"types": "build/types/types.d.ts",
Expand Down Expand Up @@ -43,13 +43,13 @@
"execa": "5.1.1",
"figlet": "1.5.2",
"gluegun": "5.1.2",
"pino": "^8.7.0",
"pino-pretty": "^9.1.1"
"pino": "8.7.0",
"pino-pretty": "9.1.1"
},
"devDependencies": {
"@semantic-release/changelog": "6.0.1",
"@semantic-release/commit-analyzer": "9.0.2",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/exec": "6.0.3",
"@semantic-release/git": "10.0.1",
"@semantic-release/npm": "9.0.1",
"@semantic-release/release-notes-generator": "10.0.3",
Expand Down
8 changes: 4 additions & 4 deletions src/tools/githubHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,12 @@ const generateConfigFiles = async (
): Promise<void> => {
await Promise.all([
generate({
template: './githubConfig/pull_request_template.md',
target: `./${projectName}/.github/pull_request_template.md`,
template: 'githubConfig/pull_request_template.md',
target: `${projectName}/.github/pull_request_template.md`,
}),
generate({
template: './githubConfig/pre-push',
target: `./${projectName}/.github/hooks/pre-push`,
template: 'githubConfig/pre-push',
target: `${projectName}/.github/hooks/pre-push`,
}),
])

Expand Down
8 changes: 4 additions & 4 deletions src/tools/initCommandHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const generateConfigurationFiles = async (
await handleOperation(projectName, Operations.Configuration, async () => {
for await (const configFile of config.configurationFiles) {
generate({
template: `./configurationFiles/${configFile.template}`,
template: `configurationFiles/${configFile.template}`,
target: `./${projectName}/${configFile.target}`,
})
}
Expand All @@ -25,11 +25,11 @@ export const generateBaseComponents = async (
handleOperation(projectName, Operations.CreateBaseComponents, async () => {
await Promise.all([
generate({
template: './components/sceneContainer.styles.txt',
template: 'components/sceneContainer.styles.txt',
target: `./${projectName}/src/components/sceneContainer/styles.ts`,
}),
generate({
template: './components/sceneContainer.txt',
template: 'components/sceneContainer.txt',
target: `./${projectName}/src/components/sceneContainer/index.tsx`,
}),
])
Expand Down Expand Up @@ -73,7 +73,7 @@ export const generateBaseProjectStructure = async (
? reactNavigationConfig.structureFolders
: config.structureFolders) {
generate({
template: './components/keep',
template: 'components/keep',
target: `${process.cwd()}/${projectName}${folder}${
folder === '/src' ? '' : '.keep'
}`,
Expand Down
6 changes: 3 additions & 3 deletions src/tools/reactNavigationHelpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const generateReactNavigationBoilerplate = async (

for await (const configFile of reactNavigationConfig.configurationFiles) {
generate({
template: `./reactNavigation/${configFile.template}`,
template: `reactNavigation/${configFile.template}`,
target: `./${projectName}/${configFile.target}`,
})
}
Expand All @@ -72,12 +72,12 @@ const regenerateAppTsxAndAddBaseScene = async (
})

await generate({
template: `./baseScene/index.txt`,
template: `baseScene/index.txt`,
target: `./${projectName}/src/scenes/welcome/index.tsx`,
})

await generate({
template: `./baseScene/styles.txt`,
template: `baseScene/styles.txt`,
target: `./${projectName}/src/scenes/welcome/styles.ts`,
})
}
Expand Down
4 changes: 0 additions & 4 deletions text.txt

This file was deleted.

0 comments on commit eed8652

Please sign in to comment.