Skip to content

Commit ce1453f

Browse files
author
alexlee-dev
committed
✏️ Update README and Changelog and add message about TS/JS Support
1 parent 3749ffe commit ce1453f

3 files changed

Lines changed: 18 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12+
- Support for both JS (deafult language) and TS (passed as '--typescript' option)
13+
1214
### Changed
1315

1416
### Removed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,14 @@ I generally use a template when developing CLI applications for myself. I want t
4848

4949
`create-cli-application cool-app-name`
5050

51+
### Changing the Source Language
52+
53+
By deafault, **create-cli-application** will create your application as a JavaScript project. You can pass the `--typescript` flag to create a TypeScript project instead.
54+
55+
`create-cli-application cool-app-name --typescript`
56+
57+
Want support for an additional language? Feel free to open a [new issue](https://github.com/alexlee-dev/create-cli-application/issues/new).
58+
5159
## ⛏️ Built Using <a name = "built_using"></a>
5260

5361
- [@sentry/node](https://sentry.io/welcome/) - Sentry is cross-platform application monitoring, with a focus on error reporting.

src/init.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,20 @@ export const createProjectDirectory = async (
1212
language: "js" | "ts"
1313
): Promise<void> => {
1414
const root = path.resolve(applicationName);
15-
// const originalDirectory = process.cwd();
1615

1716
fs.ensureDirSync(root);
1817

1918
console.log();
2019
console.log(`Creating a new CLI app in ${chalk.yellowBright(root)}.`);
2120
console.log();
21+
console.log(
22+
`Source Language: ${
23+
language === "js"
24+
? chalk.yellowBright("JavaScript")
25+
: chalk.yellowBright("TypeScript")
26+
}`
27+
);
28+
console.log();
2229

2330
// TODO - Interactive mode to fill in some of these values
2431

0 commit comments

Comments
 (0)