Skip to content

Commit b6d82f9

Browse files
committed
feat(cli): add EditorConfig files to project template
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
1 parent e32c050 commit b6d82f9

34 files changed

Lines changed: 261 additions & 1 deletion

File tree

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
max_line_length = 80

docs/site/Application-generator.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ lb4 [app] [options] [<name>]
3131
`--loopbackBuild` : Add @loopback/build module's script set to LoopBack4
3232
application project.
3333

34+
`--editorconfig` : Add EditorConfig config files to the LoopBack4 application
35+
project.
36+
3437
`--vscode`: Add VSCode config files to LoopBack4 application project
3538

3639
`--docker`: Generate Dockerfile and add npm scripts to build/run the project in
@@ -70,6 +73,7 @@ The tool will prompt you for:
7073
- [`prettier`](https://www.npmjs.com/package/prettier)
7174
- [`mocha`](https://www.npmjs.com/package/mocha)
7275
- [`@loopback/build`](https://www.npmjs.com/package/@loopback/build)
76+
- [`editorconfig`](https://editorconfig.org/)
7377
- [`vscode`](https://code.visualstudio.com/)
7478

7579
### Output

docs/site/Getting-started.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ Answer the prompts as follows:
4949
◉ Enable prettier: install prettier to format code conforming to rules
5050
◉ Enable mocha: install mocha to run tests
5151
◉ Enable loopbackBuild: use @loopback/build helpers (e.g. lb-eslint)
52+
◉ Enable editorconfig: add EditorConfig files
5253
◉ Enable vscode: add VSCode config files
5354
◉ Enable docker: include Dockerfile and .dockerignore
5455
◉ Enable repositories: include repository imports and RepositoryMixin

docs/site/deployment/Deploying_to_ibm_cloud_kubernetes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ $ lb4 app
5050
◉ Enable prettier: install prettier to format code conforming to rules
5151
◉ Enable mocha: install mocha to run tests
5252
◉ Enable loopbackBuild: use @loopback/build helpers (e.g. lb-eslint)
53+
◉ Enable editorconfig: add EditorConfig files
5354
◉ Enable vscode: add VSCode config files
5455
◉ Enable docker: include Dockerfile and .dockerignore
5556
◉ Enable repositories: include repository imports and RepositoryMixin

docs/site/tutorials/connectors/Mysql-tutorial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ le all, <i> to invert selection)
4141
◉ Enable prettier: install prettier to format code conforming to rules
4242
◉ Enable mocha: install mocha to run tests
4343
◉ Enable loopbackBuild: use @loopback/build helpers (e.g. lb-eslint)
44+
◉ Enable editorconfig: add EditorConfig files
4445
◉ Enable vscode: add VSCode config files
4546
◉ Enable docker: include Dockerfile and .dockerignore
4647
◉ Enable repositories: include repository imports and RepositoryMixin

docs/site/tutorials/connectors/Postgresql-tutorial.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ le all, <i> to invert selection)
4141
◉ Enable prettier: install prettier to format code conforming to rules
4242
◉ Enable mocha: install mocha to run tests
4343
◉ Enable loopbackBuild: use @loopback/build helpers (e.g. lb-eslint)
44+
◉ Enable editorconfig: add EditorConfig files
4445
◉ Enable vscode: add VSCode config files
4546
◉ Enable docker: include Dockerfile and .dockerignore
4647
◉ Enable repositories: include repository imports and RepositoryMixin

docs/site/tutorials/soap-calculator/soap-calculator-tutorial-scaffolding.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ Enable all options besides `docker`, unless you know what you are doing, see
4848
◉ Enable prettier: install prettier to format code conforming to rules
4949
◉ Enable mocha: install mocha to run tests
5050
◉ Enable loopbackBuild: use @loopback/build helpers (e.g. lb-eslint)
51+
◉ Enable editorconfig: add EditorConfig files
5152
◉ Enable vscode: add VSCode config files
5253
❯◯ Enable docker: include Dockerfile and .dockerignore
5354
◉ Enable repositories: include repository imports and RepositoryMixin

docs/site/tutorials/todo/todo-tutorial-scaffolding.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ $ lb4 app
2727
◉ Enable prettier: install prettier to format code conforming to rules
2828
◉ Enable mocha: install mocha to run tests
2929
◉ Enable loopbackBuild: use @loopback/build helpers (e.g. lb-eslint)
30+
◉ Enable editorconfig: add EditorConfig files
3031
◉ Enable vscode: add VSCode config files
3132
◉ Enable docker: include Dockerfile and .dockerignore
3233
◉ Enable repositories: include repository imports and RepositoryMixin
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
max_line_length = 80
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
charset = utf-8
7+
indent_style = space
8+
indent_size = 2
9+
max_line_length = 80

0 commit comments

Comments
 (0)