@vc-shell/create-vc-app 1.2.4-beta.8 → 2.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +44 -74
- package/dist/commands/add-module.d.ts +2 -0
- package/dist/commands/add-module.d.ts.map +1 -0
- package/dist/commands/init.d.ts +2 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/engine/codegen.d.ts +9 -0
- package/dist/engine/codegen.d.ts.map +1 -0
- package/dist/engine/helpers.d.ts +19 -0
- package/dist/engine/helpers.d.ts.map +1 -0
- package/dist/engine/template.d.ts +21 -0
- package/dist/engine/template.d.ts.map +1 -0
- package/dist/index.js +355 -526
- package/dist/output.d.ts +4 -0
- package/dist/output.d.ts.map +1 -0
- package/dist/templates/dynamic-module/_gitignore +4 -0
- package/dist/templates/dynamic-module/_package.json.ejs +26 -0
- package/dist/templates/dynamic-module/src/modules/index.ts.ejs +5 -0
- package/dist/templates/dynamic-module/tsconfig.json +14 -0
- package/dist/templates/dynamic-module/vite.config.mts.ejs +3 -0
- package/dist/templates/{base/_env → host-app/_env.ejs} +1 -1
- package/dist/templates/{base/_package.json → host-app/_package.json.ejs} +7 -7
- package/dist/templates/{base/index.html → host-app/index.html.ejs} +1 -1
- package/dist/templates/{base/src/bootstrap.ts → host-app/src/bootstrap.ts.ejs} +6 -3
- package/dist/templates/{base/src/main.ts → host-app/src/main.ts.ejs} +7 -5
- package/dist/templates/{base/src/pages/App.vue → host-app/src/pages/App.vue.ejs} +1 -1
- package/dist/templates/host-app/src/pages/Platform.vue +19 -0
- package/dist/templates/host-app/src/router/routes.ts.ejs +107 -0
- package/dist/templates/host-app/vite.config.mts.ejs +7 -0
- package/dist/templates/module/composables/index.ts.ejs +2 -0
- package/dist/templates/module/composables/useDetails.ts.ejs +38 -0
- package/dist/templates/module/composables/useList.ts.ejs +43 -0
- package/dist/templates/module/locales/en.json.ejs +22 -0
- package/dist/templates/module/pages/details.vue.ejs +111 -0
- package/dist/templates/module/pages/index.ts.ejs +2 -0
- package/dist/templates/module/pages/list.vue.ejs +117 -0
- package/dist/templates/{sample/classic-module → sample-module}/pages/details.vue +2 -2
- package/dist/templates/{sample/classic-module → sample-module}/pages/list.vue +3 -3
- package/dist/templates/standalone/LICENSE +12 -0
- package/dist/templates/standalone/README.md +54 -0
- package/dist/templates/standalone/_browserslistrc +3 -0
- package/dist/templates/standalone/_commitlintrc.json +3 -0
- package/dist/templates/standalone/_editorconfig +22 -0
- package/dist/templates/standalone/_env.ejs +3 -0
- package/dist/templates/standalone/_env.local.ejs +1 -0
- package/dist/templates/standalone/_eslintignore +3 -0
- package/dist/templates/standalone/_eslintrc.js +41 -0
- package/dist/templates/standalone/_github/COMMIT_CONVENTION.md +91 -0
- package/dist/templates/standalone/_github/PULL_REQUEST_TEMPLATE.md +8 -0
- package/dist/templates/standalone/_gitignore +71 -0
- package/dist/templates/standalone/_package.json.ejs +0 -0
- package/dist/templates/standalone/_prettierignore +4 -0
- package/dist/templates/standalone/_prettierrc +4 -0
- package/dist/templates/standalone/_vscode/extensions.json +14 -0
- package/dist/templates/standalone/_vscode/settings.json +14 -0
- package/dist/templates/standalone/_yarn/releases/yarn-4.9.1.cjs +948 -0
- package/dist/templates/standalone/_yarnrc.yml +7 -0
- package/dist/templates/standalone/index.html.ejs +26 -0
- package/dist/templates/standalone/postcss.config.cjs +6 -0
- package/dist/templates/standalone/public/assets/1.jpeg +0 -0
- package/dist/templates/standalone/public/assets/2.jpg +0 -0
- package/dist/templates/standalone/public/assets/3.jpg +0 -0
- package/dist/templates/standalone/public/assets/app-select.svg +11 -0
- package/dist/templates/standalone/public/assets/avatar.jpg +0 -0
- package/dist/templates/standalone/public/assets/background.jpg +0 -0
- package/dist/templates/standalone/public/assets/empty.png +0 -0
- package/dist/templates/standalone/public/assets/logo-white.svg +21 -0
- package/dist/templates/standalone/public/assets/logo.svg +8 -0
- package/dist/templates/standalone/public/assets/welcome.png +0 -0
- package/dist/templates/standalone/public/img/icons/apple-touch-icon.png +0 -0
- package/dist/templates/standalone/public/img/icons/favicon-16x16.png +0 -0
- package/dist/templates/standalone/public/img/icons/favicon-32x32.png +0 -0
- package/dist/templates/standalone/public/img/icons/favicon.ico +0 -0
- package/dist/templates/standalone/public/img/icons/mstile-150x150.png +0 -0
- package/dist/templates/standalone/public/img/icons/safari-pinned-tab.svg +32 -0
- package/dist/templates/standalone/src/api_client/README.md +199 -0
- package/dist/templates/standalone/src/bootstrap.ts.ejs +26 -0
- package/dist/templates/standalone/src/components/dashboard-widgets/Welcome.vue +51 -0
- package/dist/templates/standalone/src/composables/index.ts +1 -0
- package/dist/templates/standalone/src/env.d.ts +9 -0
- package/dist/templates/standalone/src/locales/en.json +16 -0
- package/dist/templates/standalone/src/locales/index.ts +2 -0
- package/dist/templates/{sample/overrides/main.ts → standalone/src/main.ts.ejs} +22 -9
- package/dist/templates/standalone/src/pages/App.vue.ejs +38 -0
- package/dist/templates/standalone/src/pages/Dashboard.vue.ejs +7 -0
- package/dist/templates/standalone/src/router/index.ts +10 -0
- package/dist/templates/{base/src/router/routes.ts → standalone/src/router/routes.ts.ejs} +27 -7
- package/dist/templates/standalone/src/shims-vue.d.ts +27 -0
- package/dist/templates/standalone/src/styles/custom.scss +116 -0
- package/dist/templates/standalone/src/styles/index.scss +8 -0
- package/dist/templates/standalone/src/vue-i18n.d.ts +10 -0
- package/dist/templates/standalone/tailwind.config.ts +7 -0
- package/dist/templates/standalone/tsconfig.json +16 -0
- package/dist/templates/standalone/yarn.lock +0 -0
- package/dist/types.d.ts +23 -0
- package/dist/types.d.ts.map +1 -0
- package/package.json +7 -4
- package/dist/templates/modules/classic-module/composables/index.ts +0 -2
- package/dist/templates/modules/classic-module/composables/use{{ModuleNamePascalCase}}Details/index.ts +0 -24
- package/dist/templates/modules/classic-module/composables/use{{ModuleNamePascalCase}}List/index.ts +0 -47
- package/dist/templates/modules/classic-module/locales/en.json +0 -37
- package/dist/templates/modules/classic-module/pages/details.vue +0 -87
- package/dist/templates/modules/classic-module/pages/list.vue +0 -257
- package/dist/templates/sample/classic-module/pages/index.ts +0 -2
- /package/dist/templates/{base → host-app}/LICENSE +0 -0
- /package/dist/templates/{base → host-app}/README.md +0 -0
- /package/dist/templates/{base → host-app}/_browserslistrc +0 -0
- /package/dist/templates/{base → host-app}/_commitlintrc.json +0 -0
- /package/dist/templates/{base → host-app}/_editorconfig +0 -0
- /package/dist/templates/{base/_env.local → host-app/_env.local.ejs} +0 -0
- /package/dist/templates/{base → host-app}/_eslintignore +0 -0
- /package/dist/templates/{base → host-app}/_eslintrc.js +0 -0
- /package/dist/templates/{base → host-app}/_github/COMMIT_CONVENTION.md +0 -0
- /package/dist/templates/{base → host-app}/_github/PULL_REQUEST_TEMPLATE.md +0 -0
- /package/dist/templates/{base → host-app}/_gitignore +0 -0
- /package/dist/templates/{base → host-app}/_prettierignore +0 -0
- /package/dist/templates/{base → host-app}/_prettierrc +0 -0
- /package/dist/templates/{base → host-app}/_vscode/extensions.json +0 -0
- /package/dist/templates/{base → host-app}/_vscode/settings.json +0 -0
- /package/dist/templates/{base → host-app}/_yarn/releases/yarn-4.9.1.cjs +0 -0
- /package/dist/templates/{base → host-app}/_yarnrc.yml +0 -0
- /package/dist/templates/{base → host-app}/postcss.config.cjs +0 -0
- /package/dist/templates/{base → host-app}/public/assets/1.jpeg +0 -0
- /package/dist/templates/{base → host-app}/public/assets/2.jpg +0 -0
- /package/dist/templates/{base → host-app}/public/assets/3.jpg +0 -0
- /package/dist/templates/{base → host-app}/public/assets/app-select.svg +0 -0
- /package/dist/templates/{base → host-app}/public/assets/avatar.jpg +0 -0
- /package/dist/templates/{base → host-app}/public/assets/background.jpg +0 -0
- /package/dist/templates/{base → host-app}/public/assets/empty.png +0 -0
- /package/dist/templates/{base → host-app}/public/assets/logo-white.svg +0 -0
- /package/dist/templates/{base → host-app}/public/assets/logo.svg +0 -0
- /package/dist/templates/{base → host-app}/public/assets/welcome.png +0 -0
- /package/dist/templates/{base → host-app}/public/img/icons/apple-touch-icon.png +0 -0
- /package/dist/templates/{base → host-app}/public/img/icons/favicon-16x16.png +0 -0
- /package/dist/templates/{base → host-app}/public/img/icons/favicon-32x32.png +0 -0
- /package/dist/templates/{base → host-app}/public/img/icons/favicon.ico +0 -0
- /package/dist/templates/{base → host-app}/public/img/icons/mstile-150x150.png +0 -0
- /package/dist/templates/{base → host-app}/public/img/icons/safari-pinned-tab.svg +0 -0
- /package/dist/templates/{base → host-app}/src/api_client/README.md +0 -0
- /package/dist/templates/{base → host-app}/src/components/dashboard-widgets/Welcome.vue +0 -0
- /package/dist/templates/{base → host-app}/src/composables/index.ts +0 -0
- /package/dist/templates/{base → host-app}/src/env.d.ts +0 -0
- /package/dist/templates/{base → host-app}/src/locales/en.json +0 -0
- /package/dist/templates/{base → host-app}/src/locales/index.ts +0 -0
- /package/dist/templates/{base/src/pages/Dashboard.vue → host-app/src/pages/Dashboard.vue.ejs} +0 -0
- /package/dist/templates/{base → host-app}/src/router/index.ts +0 -0
- /package/dist/templates/{base → host-app}/src/shims-vue.d.ts +0 -0
- /package/dist/templates/{base → host-app}/src/styles/custom.scss +0 -0
- /package/dist/templates/{base → host-app}/src/styles/index.scss +0 -0
- /package/dist/templates/{base → host-app}/src/vue-i18n.d.ts +0 -0
- /package/dist/templates/{base → host-app}/tailwind.config.ts +0 -0
- /package/dist/templates/{base → host-app}/tsconfig.json +0 -0
- /package/dist/templates/{base → host-app}/yarn.lock +0 -0
- /package/dist/templates/{modules/classic-module/index.ts → module/index.ts.ejs} +0 -0
- /package/dist/templates/{modules/classic-module → module}/locales/index.ts +0 -0
- /package/dist/templates/{sample/classic-module → sample-module}/composables/index.ts +0 -0
- /package/dist/templates/{sample/classic-module → sample-module}/composables/useDetails/index.ts +0 -0
- /package/dist/templates/{sample/classic-module → sample-module}/composables/useList/index.ts +0 -0
- /package/dist/templates/{sample/classic-module → sample-module}/index.ts +0 -0
- /package/dist/templates/{sample/classic-module → sample-module}/locales/en.json +0 -0
- /package/dist/templates/{sample/classic-module → sample-module}/locales/index.ts +0 -0
- /package/dist/templates/{modules/classic-module → sample-module}/pages/index.ts +0 -0
- /package/dist/templates/{mocks → sample-module}/sample-data/constants.ts +0 -0
- /package/dist/templates/{mocks → sample-module}/sample-data/index.ts +0 -0
- /package/dist/templates/{mocks → sample-module}/sample-data/methods.ts +0 -0
- /package/dist/templates/{base/vite.config.mts → standalone/vite.config.mts.ejs} +0 -0
|
@@ -187,7 +187,7 @@ const title = computed(() => {
|
|
|
187
187
|
const bladeToolbar = ref<IBladeToolbar[]>([
|
|
188
188
|
{
|
|
189
189
|
id: "save",
|
|
190
|
-
icon: "
|
|
190
|
+
icon: "lucide-save",
|
|
191
191
|
title: "Save",
|
|
192
192
|
async clickHandler() {
|
|
193
193
|
await saveItem(item.value);
|
|
@@ -201,7 +201,7 @@ const bladeToolbar = ref<IBladeToolbar[]>([
|
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
203
|
id: "delete",
|
|
204
|
-
icon: "
|
|
204
|
+
icon: "lucide-trash-2",
|
|
205
205
|
title: "Delete",
|
|
206
206
|
async clickHandler() {
|
|
207
207
|
if (await showConfirmation(t(`SAMPLE_APP.PAGES.ALERTS.DELETE`))) {
|
|
@@ -171,14 +171,14 @@ const bladeToolbar = ref<IBladeToolbar[]>([
|
|
|
171
171
|
{
|
|
172
172
|
id: "refresh",
|
|
173
173
|
title: computed(() => t("SAMPLE_APP.PAGES.LIST.TOOLBAR.REFRESH")),
|
|
174
|
-
icon: "
|
|
174
|
+
icon: "lucide-refresh-cw",
|
|
175
175
|
async clickHandler() {
|
|
176
176
|
await reload();
|
|
177
177
|
},
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
id: "remove",
|
|
181
|
-
icon: "
|
|
181
|
+
icon: "lucide-trash-2",
|
|
182
182
|
title: computed(() => t("SAMPLE_APP.PAGES.LIST.TOOLBAR.REMOVE")),
|
|
183
183
|
async clickHandler() {
|
|
184
184
|
await remove(selectedIds.value);
|
|
@@ -254,7 +254,7 @@ const onSelectionChanged = (items: MockedItem[]) => {
|
|
|
254
254
|
const actionBuilder = (): IActionBuilderResult[] => {
|
|
255
255
|
const result: IActionBuilderResult[] = [];
|
|
256
256
|
result.push({
|
|
257
|
-
icon: "
|
|
257
|
+
icon: "lucide-trash-2",
|
|
258
258
|
title: computed(() => t("SAMPLE_APP.PAGES.LIST.TABLE.ACTIONS.DELETE")),
|
|
259
259
|
type: "danger",
|
|
260
260
|
async clickHandler(_item: MockedItem) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Copyright (c) Virto Solutions LTD. All rights reserved.
|
|
2
|
+
|
|
3
|
+
Licensed under the Virto Commerce Open Software License (the "License"); you
|
|
4
|
+
may not use this file except in compliance with the License. You may
|
|
5
|
+
obtain a copy of the License at
|
|
6
|
+
|
|
7
|
+
https://virtocommerce.com/open-source-license
|
|
8
|
+
|
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
12
|
+
implied.
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# VirtoCommerce Vue3 Frontend for specialized back-office applications
|
|
2
|
+
|
|
3
|
+
## Technologies used
|
|
4
|
+
|
|
5
|
+
- **Vue3.** Progressive frontend framework with its key features allows to build fast applications.
|
|
6
|
+
- **Typescript.** All components and composables have type definitions, so IDE can help you to build clean and working code.
|
|
7
|
+
- **TailwindCSS.** The most popular and growing CSS framework providing wonderful flexible structure to speed up styling.
|
|
8
|
+
- **Husky + ESLint + Prettier.** Autoformat, check and fix your code and prevent ugly codestyle within repository.
|
|
9
|
+
- **Vite.** It is faster than Webpack. Really FASTER. Use it to develop with HMR benefits and to build for production.
|
|
10
|
+
|
|
11
|
+
## Architecture
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
├─ public // Static assets
|
|
15
|
+
│ ├─ assets // Static images used inside the application.
|
|
16
|
+
│ └─ img
|
|
17
|
+
│ └─ icons // Icons used for favicons, PWA, etc.
|
|
18
|
+
├─ src
|
|
19
|
+
│ ├─ api_client // Generated API clients folder
|
|
20
|
+
│ │ └─...
|
|
21
|
+
│ ├─ components // Universal Vue components
|
|
22
|
+
│ │ └─...
|
|
23
|
+
│ ├─ config // Application extras config files
|
|
24
|
+
│ │ └─ push-hub.ts // SignalR config file
|
|
25
|
+
│ ├─ locales // Locale files used to provide translated content
|
|
26
|
+
│ │ └─ en.json
|
|
27
|
+
│ ├─ modules // The collection of custom modules
|
|
28
|
+
│ │ └─ ... // Module folder
|
|
29
|
+
│ │ ├─ components // The collection of components specific for this module
|
|
30
|
+
│ │ ├─ composables // The collection of shared logic written using Composable API pattern.
|
|
31
|
+
│ │ ├─ locales // Locale files used to provide translated content specific for this module
|
|
32
|
+
│ │ ├─ pages // Set of module pages used within Application router
|
|
33
|
+
│ │ └─ index.ts // Module entry point
|
|
34
|
+
│ ├─ pages // Set of application pages used within Application router.
|
|
35
|
+
│ │ └─...
|
|
36
|
+
│ ├─ router // SPA routing configuration
|
|
37
|
+
│ │ └─...
|
|
38
|
+
│ ├─ styles // Extras application style files
|
|
39
|
+
│ │ └─ index.scss // Tailwind initialization file
|
|
40
|
+
│ └─ types // Typescript .d.ts files
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Getting started
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
# install and configure package dependencies and git hooks
|
|
47
|
+
$ yarn
|
|
48
|
+
|
|
49
|
+
# build application
|
|
50
|
+
$ yarn build
|
|
51
|
+
|
|
52
|
+
# start application with hot reload at localhost:8080
|
|
53
|
+
$ yarn serve
|
|
54
|
+
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# top-most EditorConfig file
|
|
2
|
+
root = true
|
|
3
|
+
|
|
4
|
+
# Global rules, override on case-by-case basis
|
|
5
|
+
[*]
|
|
6
|
+
charset = utf-8
|
|
7
|
+
indent_style = space
|
|
8
|
+
max_line_length = 120
|
|
9
|
+
tab_width = 2
|
|
10
|
+
end_of_line = lf
|
|
11
|
+
insert_final_newline = true
|
|
12
|
+
trim_trailing_whitespace = true
|
|
13
|
+
|
|
14
|
+
[*.{vue,js,ts,scss}]
|
|
15
|
+
quote_type = double
|
|
16
|
+
|
|
17
|
+
[*.md]
|
|
18
|
+
max_line_length = off
|
|
19
|
+
trim_trailing_whitespace = false
|
|
20
|
+
|
|
21
|
+
[*.svg]
|
|
22
|
+
insert_final_newline = false
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#APP_PLATFORM_URL=add_platform_url_here
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true,
|
|
5
|
+
},
|
|
6
|
+
plugins: ["@typescript-eslint", "vue", "import"],
|
|
7
|
+
extends: [
|
|
8
|
+
"plugin:vue/vue3-recommended",
|
|
9
|
+
"eslint:recommended",
|
|
10
|
+
"plugin:import/recommended",
|
|
11
|
+
"plugin:import/typescript",
|
|
12
|
+
"@vue/typescript/recommended",
|
|
13
|
+
"@vue/prettier",
|
|
14
|
+
"@vue/eslint-config-typescript/recommended",
|
|
15
|
+
],
|
|
16
|
+
parser: "vue-eslint-parser",
|
|
17
|
+
parserOptions: {
|
|
18
|
+
sourceType: "module",
|
|
19
|
+
ecmaVersion: 2022,
|
|
20
|
+
},
|
|
21
|
+
settings: {
|
|
22
|
+
"import/parsers": {
|
|
23
|
+
"@typescript-eslint/parser": [".ts"],
|
|
24
|
+
},
|
|
25
|
+
"import/resolver": {
|
|
26
|
+
typescript: {
|
|
27
|
+
project: ["./tsconfig.json"],
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
rules: {
|
|
32
|
+
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
33
|
+
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
|
34
|
+
"@typescript-eslint/ban-ts-comment": "warn",
|
|
35
|
+
"@typescript-eslint/no-unused-vars": "warn",
|
|
36
|
+
"vue/multi-word-component-names": "off",
|
|
37
|
+
"vue/require-default-prop": "off",
|
|
38
|
+
"vue/no-v-html": "off",
|
|
39
|
+
"vue/no-template-shadow": "off",
|
|
40
|
+
},
|
|
41
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# Git Commit Message Convention
|
|
2
|
+
|
|
3
|
+
## TL;DR
|
|
4
|
+
|
|
5
|
+
Messages must be matched by the following regex:
|
|
6
|
+
|
|
7
|
+
``` js
|
|
8
|
+
/^(revert: )?(feat|fix|docs|style|refactor|perf|test|workflow|ci|chore|types)(\(.+\))?: .{1,50}/
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Examples
|
|
12
|
+
|
|
13
|
+
Appears under "Features" header, `ui-kit` subheader:
|
|
14
|
+
|
|
15
|
+
``` text
|
|
16
|
+
feat(ui-kit): add 'comments' option
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Appears under "Bug Fixes" header, `shell` subheader, with a link to issue #28:
|
|
20
|
+
|
|
21
|
+
``` text
|
|
22
|
+
fix(shell): handle events on blur
|
|
23
|
+
|
|
24
|
+
close #28
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Appears under "Performance Improvements" header, and under "Breaking Changes" with the breaking change explanation:
|
|
28
|
+
|
|
29
|
+
``` text
|
|
30
|
+
perf(api-client): improve vdom diffing by removing 'foo' option
|
|
31
|
+
|
|
32
|
+
BREAKING CHANGE: The 'foo' option has been removed.
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
The following commit and commit `667ecc1` do not appear in the changelog if they are under the same release. If not, the revert commit appears under the "Reverts" header.
|
|
36
|
+
|
|
37
|
+
``` text
|
|
38
|
+
revert: feat(ui-kit): add 'comments' option
|
|
39
|
+
|
|
40
|
+
This reverts commit 667ecc1654a317a13331b17617d973392f415f02.
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Full Message Format
|
|
44
|
+
|
|
45
|
+
A commit message consists of a **header**, **body** and **footer**. The header has a **type**, **scope** and **subject**:
|
|
46
|
+
|
|
47
|
+
``` text
|
|
48
|
+
<type>(<scope>): <subject>
|
|
49
|
+
<BLANK LINE>
|
|
50
|
+
<body>
|
|
51
|
+
<BLANK LINE>
|
|
52
|
+
<footer>
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
The **header** is mandatory and the **scope** of the header is optional.
|
|
56
|
+
|
|
57
|
+
A `!` MAY be appended prior to the `:` in the type/scope prefix, to further draw attention to breaking changes. `BREAKING CHANGE:` description MUST also be included in the body or footer, along with the `!` in the prefix.
|
|
58
|
+
|
|
59
|
+
### Revert
|
|
60
|
+
|
|
61
|
+
If the commit reverts a previous commit, it should begin with `revert:`, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.
|
|
62
|
+
|
|
63
|
+
### Type
|
|
64
|
+
|
|
65
|
+
If the prefix is `feat`, `fix` or `perf`, it will appear in the changelog. However if there is any [BREAKING CHANGE](#footer), the commit will always appear in the changelog.
|
|
66
|
+
|
|
67
|
+
Other prefixes are up to your discretion. Suggested prefixes are `docs`, `chore`, `style`, `refactor`, and `test` for non-changelog related tasks.
|
|
68
|
+
|
|
69
|
+
### Scope
|
|
70
|
+
|
|
71
|
+
The scope could be any valid lerna package name (located inside `packages` folder). For example `shell`, `ui-kit`, `api-client`, etc...
|
|
72
|
+
|
|
73
|
+
### Subject
|
|
74
|
+
|
|
75
|
+
The subject contains succinct description of the change:
|
|
76
|
+
|
|
77
|
+
* use the imperative, present tense: "change" not "changed" nor "changes"
|
|
78
|
+
* don't capitalize first letter
|
|
79
|
+
* no dot (.) at the end
|
|
80
|
+
|
|
81
|
+
### Body
|
|
82
|
+
|
|
83
|
+
Just as in the **subject**, use the imperative, present tense: "change" not "changed" nor "changes".
|
|
84
|
+
The body should include the motivation for the change and contrast this with previous behavior.
|
|
85
|
+
|
|
86
|
+
### Footer
|
|
87
|
+
|
|
88
|
+
The footer should contain any information about **Breaking Changes** and is also the place to
|
|
89
|
+
reference GitHub issues that this commit **Closes**.
|
|
90
|
+
|
|
91
|
+
**Breaking Changes** should start with the word `BREAKING CHANGE:` with a space or two newlines. The rest of the commit message is then used for this.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# OS Specific
|
|
2
|
+
.DS_Store
|
|
3
|
+
.DS_Store?
|
|
4
|
+
._*
|
|
5
|
+
.Spotlight-V100
|
|
6
|
+
.Trashes
|
|
7
|
+
ehthumbs.db
|
|
8
|
+
Thumbs.db
|
|
9
|
+
|
|
10
|
+
# IDE Specific
|
|
11
|
+
nbproject
|
|
12
|
+
.~lock.*
|
|
13
|
+
.buildpath
|
|
14
|
+
.idea
|
|
15
|
+
.project
|
|
16
|
+
.settings
|
|
17
|
+
composer.lock
|
|
18
|
+
*.sublime-workspace
|
|
19
|
+
*.suo
|
|
20
|
+
*.ntvs*
|
|
21
|
+
*.njsproj
|
|
22
|
+
*.sln
|
|
23
|
+
*.sw?
|
|
24
|
+
|
|
25
|
+
# Project Specific
|
|
26
|
+
node_modules
|
|
27
|
+
*.log
|
|
28
|
+
/lib
|
|
29
|
+
tmp
|
|
30
|
+
.changelog
|
|
31
|
+
coverage/
|
|
32
|
+
.nyc_output/
|
|
33
|
+
.eslintcache
|
|
34
|
+
|
|
35
|
+
# local env files
|
|
36
|
+
.env.local
|
|
37
|
+
.env.*.local
|
|
38
|
+
|
|
39
|
+
# compiled output
|
|
40
|
+
dist/
|
|
41
|
+
storybook-static
|
|
42
|
+
*.tsbuildinfo
|
|
43
|
+
|
|
44
|
+
# IDEs and editors
|
|
45
|
+
/.idea
|
|
46
|
+
.project
|
|
47
|
+
.classpath
|
|
48
|
+
.c9/
|
|
49
|
+
*.launch
|
|
50
|
+
|
|
51
|
+
# IDE - VSCode
|
|
52
|
+
.vscode/*
|
|
53
|
+
!.vscode/settings.json
|
|
54
|
+
!.vscode/tasks.json
|
|
55
|
+
!.vscode/launch.json
|
|
56
|
+
!.vscode/extensions.json
|
|
57
|
+
.history/*
|
|
58
|
+
|
|
59
|
+
# Visual Studio 2015/2017 cache/options directory
|
|
60
|
+
.vs/*
|
|
61
|
+
|
|
62
|
+
# Temporary
|
|
63
|
+
package-lock.json
|
|
64
|
+
|
|
65
|
+
.pnp.*
|
|
66
|
+
.yarn/*
|
|
67
|
+
!.yarn/patches
|
|
68
|
+
!.yarn/plugins
|
|
69
|
+
!.yarn/releases
|
|
70
|
+
!.yarn/sdks
|
|
71
|
+
!.yarn/versions
|
|
File without changes
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"recommendations": [
|
|
3
|
+
"editorconfig.editorconfig",
|
|
4
|
+
"dbaeumer.vscode-eslint",
|
|
5
|
+
"csstools.postcss",
|
|
6
|
+
"esbenp.prettier-vscode",
|
|
7
|
+
"bradlc.vscode-tailwindcss",
|
|
8
|
+
"vue.volar",
|
|
9
|
+
"lokalise.i18n-ally"
|
|
10
|
+
],
|
|
11
|
+
"unwantedRecommendations": [
|
|
12
|
+
"octref.vetur"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"editor.codeActionsOnSave": {
|
|
3
|
+
"source.fixAll.eslint": true
|
|
4
|
+
},
|
|
5
|
+
"files.eol": "\r\n",
|
|
6
|
+
"eslint.validate": [
|
|
7
|
+
"vue",
|
|
8
|
+
"javascript"
|
|
9
|
+
],
|
|
10
|
+
"i18n-ally.localesPaths": [
|
|
11
|
+
"src/locales",
|
|
12
|
+
],
|
|
13
|
+
"typescript.preferences.importModuleSpecifier": "relative",
|
|
14
|
+
}
|