Skip to content

Commit e7a8b7d

Browse files
authored
Merge pull request #2 from taedmonds/dev
comments bug fix
2 parents ef1845b + 7f2dd83 commit e7a8b7d

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

ReadMe.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
# LightTs
22

3-
<center>
43
<pre>
54
__ _ __ __ ______
65
/ / (_)__ _/ / / //_ __/__
76
/ /__/ / _ / _ \/ __// / (_-<
87
/____/_/\_, /_//_/\__//_/ /___/
98
/___/
109
</pre>
11-
</center>
1210

1311
A lightweight, native Node.js framework inspired by NestJS, designed to keep things simple, transparent, and customizable. LightTs (also usable via the `lts` command) leverages the power of Node.js and Express while providing a CLI tool to streamline project setup and feature integration, without hiding code behind complex abstractions like decorators. With LightTs, you get clean, editable code that you can tweak to your heart's content.
1412

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lightts",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "A lightweight, native Node.js framework with typescript, designed to keep things simple, transparent, and customizable",
55
"keywords": [
66
"express",

src/commands/add/cors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export const addCorsFeature = (project: Project, data: AddCommandProps) => {
6262
// add cors origin checkCorsOrigin
6363
const corsStatements = [
6464
'\n',
65-
'# cors',
65+
'// cors',
6666
'app.use(cors());',
6767
'app.use(',
6868
'cors({',

src/commands/add/database.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ export const addDatabaseFeature = async (project: Project, data: AddCommandProps
163163

164164
const connectionStatements = [
165165
'\n',
166-
'# database connection',
166+
'// database connection',
167167
'createConnection()',
168168
'.then(() => {',
169169
"log.info('Connected to database');",

src/init/templates/root.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ export const generateIndexFile = (project: Project, data: PromptConfig) => {
6767

6868
sourceFile.addStatements([
6969
'\n',
70-
'# express configurations',
70+
'// express configurations',
7171
'app.use(express.json());',
7272
'app.use(express.urlencoded({ extended: true }));'
7373
]);
@@ -78,7 +78,8 @@ export const generateIndexFile = (project: Project, data: PromptConfig) => {
7878

7979
sourceFile.addStatements((writer) => {
8080
writer
81-
.write('# cors')
81+
.write('// cors')
82+
.newLine()
8283
.write('app.use(')
8384
.newLine()
8485
.write('cors({')
@@ -98,7 +99,8 @@ export const generateIndexFile = (project: Project, data: PromptConfig) => {
9899
sourceFile.addStatements((writer) => {
99100
writer
100101
.write('\n')
101-
.write('# database connection')
102+
.write('// database connection')
103+
.newLine()
102104
.write('createConnection()')
103105
.newLine()
104106
.write('.then(() => {')
@@ -120,10 +122,10 @@ export const generateIndexFile = (project: Project, data: PromptConfig) => {
120122
// api routes and error handler
121123
sourceFile.addStatements([
122124
'\n',
123-
'# http routes',
125+
'// http routes',
124126
'app.use(`/api/${api.version}`, routes);',
125127
'\n',
126-
'# http error class handler',
128+
'// http error class handler',
127129
'app.use(HttpError.middleware);'
128130
]);
129131
// express listner

0 commit comments

Comments
 (0)