@postlight/node-typescript-starter-kit
Advanced tools
Comparing version 1.0.0 to 1.0.1
10
cli.js
@@ -37,8 +37,12 @@ #!/usr/bin/env node | ||
const editJson = async projectName => { | ||
const editFiles = async projectName => { | ||
let file = editJsonFile(`${__dirname}/starter-kit/package.json`); | ||
file.set('name', projectName); | ||
file.save(); | ||
file.save(); | ||
fs.rename( | ||
`${__dirname}/starter-kit/gitignore`, | ||
`${__dirname}/starter-kit/.gitignore` | ||
); | ||
}; | ||
@@ -90,3 +94,3 @@ | ||
await editJson(projectName); | ||
await editFiles(projectName); | ||
@@ -93,0 +97,0 @@ await asyncMkdir(`${CURR_DIR}/${projectName}`); |
{ | ||
"name": "@postlight/node-typescript-starter-kit", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "NodeJS - TypeScript Starter Kit", | ||
@@ -5,0 +5,0 @@ "author": "Postlight", |
@@ -6,2 +6,10 @@ # NodeJS - TypeScript Starter Kit | ||
This NodeJS + TypeScript starter kit is a zero-config codebase that lets you start writing code immediately. Includes: | ||
* TypeScript or just regular ol' JavaScript | ||
* Jest for testing | ||
* Prettier for formatting | ||
* ESLint for linting | ||
* Basic config and build scripts | ||
## Creating a project | ||
@@ -8,0 +16,0 @@ |
{ | ||
"name": "test-kit", | ||
"name": "node-typescript-starter-kit", | ||
"version": "1.0.0", | ||
@@ -55,2 +55,2 @@ "main": "dist/index.js", | ||
} | ||
} | ||
} |
@@ -1,3 +0,13 @@ | ||
# NodeJS + Typescript Starter Kit | ||
# NodeJS - TypeScript Starter Kit | ||
[](https://github.com/prettier/prettier) | ||
This NodeJS + TypeScript starter kit is a zero-config codebase that lets you start writing code immediately. Includes: | ||
* TypeScript or just regular ol' JavaScript | ||
* Jest for testing | ||
* Prettier for formatting | ||
* ESLint for linting | ||
* Basic config and build scripts | ||
## Creating a project | ||
@@ -10,3 +20,3 @@ | ||
```bash | ||
npx node-typescript-starter-kit my-awesome-project | ||
npx @postlight/node-typescript-starter-kit my-awesome-project | ||
@@ -107,1 +117,5 @@ cd my-awesome-project | ||
- Pre-commit hooks | ||
*** | ||
A micro project from your friends at [Postlight Labs](https://postlight.com/labs) |
Sorry, the diff of this file is not supported yet
275672
22
140
121