Skip to content

Commit 132c3e2

Browse files
authored
feat: update to latest best practice + tests (#25)
* feat: update to latest best practice + tests * chore: fixed review comments * chore: cleanup and removal of app name * chore: fix readme * fix: add missing dependency to semver * chore: default theme based on version * chore: no trailing commas * chore: adopt app id question * chore: update scripts * fix: ensure Git repo init works
1 parent cdbe14c commit 132c3e2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+17436
-16936
lines changed

.editorconfig

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ root = true
66

77
[*]
88
# We recommend you to keep these unchanged
9+
max_line_length = 200
910
end_of_line = lf
1011
charset = utf-8
1112
trim_trailing_whitespace = true
1213
insert_final_newline = true
1314

1415
# Change these settings to your own preference
1516
indent_style = tab
16-
17-
[*.{yaml,yml,md,json,xml,properties}]
1817
indent_size = 2
18+
19+
[*.{yaml,yml}]
1920
indent_style = space
2021

2122
[*.md]
23+
indent_style = unset
2224
trim_trailing_whitespace = false

.eslintignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Ignore node_files
2+
node_modules/
3+
4+
# Ignore templates
5+
generators/*/templates/
6+
7+
# Ignore test files
8+
test/

.eslintrc.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true,
5+
"es6": true
6+
},
7+
"parserOptions": {
8+
"ecmaVersion": 2022,
9+
"sourceType": "module"
10+
},
11+
"extends": ["eslint:recommended", "plugin:jsdoc/recommended"],
12+
"plugins": ["jsdoc"]
13+
}

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npm run hooks:pre-commit

.husky/skip.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
if (process.env.HUSKY_SKIP || process.env.NODE_ENV === "production") {
2+
process.exit(0);
3+
} else {
4+
process.exit(1);
5+
}

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"**/*.js": "eslint"
3+
}

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Ignore test files
2+
test/*/
3+
4+
# Ignore all source files using the placeholders to kill the syntax
5+
generators/app/templates/webapp/Component.ts
6+
generators/app/templates/webapp/model/models.ts
7+
generators/app/templates/webapp/view/*.xml

.prettierrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"singleQuote": false,
3+
"trailingComma": "none",
4+
"overrides": [
5+
{
6+
"files": ["*.xml"],
7+
"options": {
8+
"xmlWhitespaceSensitivity": "ignore"
9+
}
10+
},
11+
{
12+
"files": ["*.properties"],
13+
"options": {
14+
"keySeparator": "="
15+
}
16+
}
17+
]
18+
}

.vscode/launch.json

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,17 @@
11
{
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
"version": "0.2.0",
6-
"configurations": [
7-
{
8-
"name": "Test",
9-
"request": "launch",
10-
"runtimeArgs": [
11-
"run-script",
12-
"test"
13-
],
14-
"runtimeExecutable": "npm",
15-
"skipFiles": [
16-
"<node_internals>/**"
17-
],
18-
"type": "pwa-node",
19-
"console": "integratedTerminal"
20-
}
21-
]
22-
}
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Test",
9+
"request": "launch",
10+
"runtimeArgs": ["run-script", "test"],
11+
"runtimeExecutable": "npm",
12+
"skipFiles": ["<node_internals>/**"],
13+
"type": "pwa-node",
14+
"console": "integratedTerminal"
15+
}
16+
]
17+
}

.vscode/settings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)