diff --git a/template/editorconfig b/template/editorconfig index cbdac16..47c5c7c 100644 --- a/template/editorconfig +++ b/template/editorconfig @@ -1,24 +1,16 @@ root = true -[*.jsx?] -charset = utf-8 +[*] indent_style = space indent_size = 2 +tab_width = 2 end_of_line = lf -insert_final_newline = true -trim_trailing_whitespace = true - -[*.tsx?] charset = utf-8 -indent_style = space -indent_size = 2 -end_of_line = lf -insert_final_newline = true trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false [Makefile] indent_style = tab - -[*.yaml] -indent_style = space -indent_size = 2 diff --git a/template/eslintignore b/template/eslintignore index 7a84d85..8d7d7c7 100644 --- a/template/eslintignore +++ b/template/eslintignore @@ -7,4 +7,4 @@ node_modules/ jest.config.js babel.config.js .eslintrc.js -locales/ \ No newline at end of file +locales/ diff --git a/template/gitignore b/template/gitignore index cfb3bd6..3f57711 100644 --- a/template/gitignore +++ b/template/gitignore @@ -1,32 +1,50 @@ -# See https://help.github.com/ignore-files/ for more about ignoring files. - -# dependencies -node_modules +# macOS +.DS_Store -# testing -/coverage +# JetBrains +.idea/ -# production -/dist -dist -cjs -esm +# Visual Studio Code +.vscode/* +## Local History for Visual Studio Code +.history/ -# misc -.DS_Store +# Node.js +**/node_modules/ +.yalc/ +yalc.lock -logs/ +# Yarn +.yarn/* +!.yarn/releases +!.yarn/patches +!.yarn/plugins +!.yarn/sdks +!.yarn/versions + +# Logs +logs +*.log npm-debug.log* yarn-debug.log* yarn-error.log* +lerna-debug.log* +.pnpm-debug.log* -.idea/ +# Config +configs/local_config.yaml + +# TypeScript +*.tsbuildinfo + +# Testing +coverage/ -# local config -/configs/local_config.yaml +# Production +**/dist/ +**/cjs/ +**/esm/ +# Cache *.rdb .cache-loader - -.yalc/ -yalc.lock diff --git a/template/package.json b/template/package.json index ea00a2a..5105d96 100644 --- a/template/package.json +++ b/template/package.json @@ -22,13 +22,13 @@ "@ks-console/locales": "^4.1.1", "@ks-console/server": "^4.1.1", "@ks-console/shared": "^4.1.1", - "@kubed/charts": "^0.2.11", - "@kubed/code-editor": "^0.2.11", - "@kubed/components": "^0.2.11", - "@kubed/diff-viewer": "^0.2.11", - "@kubed/hooks": "^0.2.11", - "@kubed/icons": "^0.2.11", - "@kubed/log-viewer": "^0.2.11" + "@kubed/charts": "^0.2.21", + "@kubed/code-editor": "^0.2.21", + "@kubed/components": "^0.2.21", + "@kubed/diff-viewer": "^0.2.21", + "@kubed/hooks": "^0.2.21", + "@kubed/icons": "^0.2.21", + "@kubed/log-viewer": "^0.2.21" }, "devDependencies": { "@babel/cli": "^7.15.7", diff --git a/template/prettierrc.js b/template/prettier.config.cjs similarity index 100% rename from template/prettierrc.js rename to template/prettier.config.cjs diff --git a/template/prettierignore b/template/prettierignore index 386f24a..b0acd8d 100644 --- a/template/prettierignore +++ b/template/prettierignore @@ -1,3 +1,8 @@ -node_modules +.git/ +.history/ +**/node_modules/ +**/dist/ +**/v3dist/ +**/*.tsbuildinfo yarn.lock -package-lock.json \ No newline at end of file +package-lock.json diff --git a/template/tsconfig.base.json b/template/tsconfig.base.json index 0f173b2..89d58bd 100644 --- a/template/tsconfig.base.json +++ b/template/tsconfig.base.json @@ -1,16 +1,9 @@ { - "exclude": [ - "node_modules", - "lib", - "esm", - "cjs", - "**/*.test.ts", - "**/*.test.tsx", - ], + "exclude": ["node_modules", "lib", "esm", "cjs", "**/*.test.ts", "**/*.test.tsx", "**/v3dist"], "compilerOptions": { "strict": true, "target": "ES2015", - "lib": ["DOM", "ESNext", "ES2020.Promise"], + "lib": ["DOM", "ESNext", "ES2020.Promise", "ES2021", "DOM.Iterable"], "module": "ESNext", "moduleResolution": "Node", "allowJs": true, @@ -20,6 +13,6 @@ "resolveJsonModule": true, "esModuleInterop": true, "skipLibCheck": true, - "noEmitOnError": true, + "noEmitOnError": true } } diff --git a/template/tsconfig.json b/template/tsconfig.json index 7a177f6..bd65054 100644 --- a/template/tsconfig.json +++ b/template/tsconfig.json @@ -1,21 +1,13 @@ { "extends": "./tsconfig.base.json", "compilerOptions": { - "lib": [ - "dom", - "es5", - "es2017", - "es2020.promise" - ], + "lib": ["dom", "es5", "es2017", "es2020.promise", "ES2021", "dom.iterable"], "forceConsistentCasingInFileNames": true, "noFallthroughCasesInSwitch": true, "moduleResolution": "node", "resolveJsonModule": true, -// "isolatedModules": false, - "noEmit": false, + // "isolatedModules": false, + "noEmit": false }, - "include": [ - "extensions", - "types" - ] + "include": ["extensions", "types"] }