8000 refactor: add docs link to prop hints, add package.json script · GAAOPS/coreui-vue@dc380d4 · GitHub
[go: up one dir, main page]

Skip to content

Commit dc380d4

Browse files
committed
refactor: add docs link to prop hints, add package.json script
1 parent 64b229e commit dc380d4

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

build/buildVscodeHints.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,15 @@ function generateAttributes (content) {
8787
const key = name + '/' + propName
8888
const kebabKey = toKebabCase(name) + '/' + propName
8989
const type = prop.split(':')[1].trim()
90-
const description = ''
90+
const description = 'For API documentation please visit https://coreui.io/vue/docs'
9191

9292
attributes[kebabKey] = {
93+
description,
9394
type,
94-
description
9595
}
9696
attributes[key] = {
97+
description,
9798
type,
98-
description
9999
}
100100
})
101101
}

dist/vetur/coreui-attributes.json

Copy file name to clipboard
Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@
6262
"test": "vue-cli-service test:unit",
6363
"test:coverage": "vue-cli-service test:unit --coverage",
6464
"clearCache": "jest --clearCache",
65-
"release": "npm-run-all clearCache lint build test:coverage",
65+
"release": "npm-run-all clearCache lint build test:coverage generate-hints",
66+
"generate-hints": "node build/buildVscodeHints.js",
6667
"auto-changelog": "auto-changelog --template changelog-template.hbs --commit-limit false --package"
6768
},
6869
"dependencies": {

0 commit comments

Comments
 (0)
0