@docfy/ember 0.7.0 → 0.8.0
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/.docfy-config.js
CHANGED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
category: ember
|
|
3
|
+
---
|
|
4
|
+
|
|
5
|
+
# Preview works with gts, gjs
|
|
6
|
+
|
|
7
|
+
This works
|
|
8
|
+
|
|
9
|
+
```gts preview
|
|
10
|
+
import Component from '@glimmer/component';
|
|
11
|
+
|
|
12
|
+
// components/hello.gjs
|
|
13
|
+
export default class Hello extends Component {
|
|
14
|
+
isThisCool = true;
|
|
15
|
+
|
|
16
|
+
<template>
|
|
17
|
+
Is This Cool?: {{this.isThisCool}}
|
|
18
|
+
</template>
|
|
19
|
+
}
|
|
20
|
+
```
|
package/lib/index.js
CHANGED
|
@@ -42,7 +42,7 @@ function ensureDirectoryExistence(filePath) {
|
|
|
42
42
|
function hasBackingJS(chunks) {
|
|
43
43
|
for (let i = 0; i < chunks.length; i++) {
|
|
44
44
|
const chunk = chunks[i];
|
|
45
|
-
if (
|
|
45
|
+
if (['js', 'ts', 'gts', 'gjs'].includes(chunk.ext)) {
|
|
46
46
|
return true;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -13,7 +13,7 @@ exports.default = (0, plugin_1.default)({
|
|
|
13
13
|
ctx.pages.forEach((page) => {
|
|
14
14
|
const demoComponents = [];
|
|
15
15
|
(0, unist_util_visit_1.default)(page.ast, 'code', (node) => {
|
|
16
|
-
if (['preview-template'].includes(node.meta || '')) {
|
|
16
|
+
if (['preview-template', 'preview'].includes(node.meta || '')) {
|
|
17
17
|
demoComponents.push({
|
|
18
18
|
name: (0, utils_1.generateDemoComponentName)(`docfy-demo-preview-${path_1.default.basename(page.meta.url)}`, seenNames),
|
|
19
19
|
chunks: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@docfy/ember",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.8.0",
|
|
4
4
|
"description": "Ember integration with Docfy",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ember-addon",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"test:ember-compatibility": "echo 'ember try:each TODO'"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@docfy/core": "^0.
|
|
33
|
+
"@docfy/core": "^0.8.0",
|
|
34
34
|
"broccoli-bridge": "^1.0.0",
|
|
35
35
|
"broccoli-file-creator": "^2.1.1",
|
|
36
36
|
"broccoli-funnel": "^3.0.8",
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"broccoli-source": "^3.0.1",
|
|
41
41
|
"calculate-cache-key-for-tree": "2.0.0",
|
|
42
42
|
"debug": "^4.3.3",
|
|
43
|
-
"ember-cli-babel": "^
|
|
44
|
-
"ember-cli-htmlbars": "^6.0
|
|
43
|
+
"ember-cli-babel": "^8.2.0",
|
|
44
|
+
"ember-cli-htmlbars": "^6.3.0",
|
|
45
45
|
"ember-cli-typescript": "^4.2.1",
|
|
46
46
|
"ember-get-config": "^1.0.2",
|
|
47
47
|
"mdast-util-to-string": "^2.0.0",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"@babel/helper-define-map": "^7.16.7",
|
|
55
|
-
"@docfy/plugin-with-prose": "^0.
|
|
55
|
+
"@docfy/plugin-with-prose": "^0.8.0",
|
|
56
56
|
"@ember/optional-features": "^2.0.0",
|
|
57
57
|
"@ember/test-helpers": "^2.6.0",
|
|
58
58
|
"@embroider/compat": "^1.0.0",
|
|
@@ -85,6 +85,7 @@
|
|
|
85
85
|
"broccoli-asset-rev": "^3.0.0",
|
|
86
86
|
"ember-auto-import": "^2.4.0",
|
|
87
87
|
"ember-cli": "~4.1.1",
|
|
88
|
+
"ember-cli-babel": "8.2.0",
|
|
88
89
|
"ember-cli-dependency-checker": "^3.2.0",
|
|
89
90
|
"ember-cli-fastboot": "^3.2.0-beta.5",
|
|
90
91
|
"ember-cli-fastboot-testing": "^0.6.0",
|
|
@@ -103,6 +104,7 @@
|
|
|
103
104
|
"ember-sinon": "^5.0.0",
|
|
104
105
|
"ember-source": "~4.1.0",
|
|
105
106
|
"ember-source-channel-url": "^3.0.0",
|
|
107
|
+
"ember-template-imports": "^4.0.0",
|
|
106
108
|
"ember-template-lint": "^2.18.0",
|
|
107
109
|
"ember-try": "^2.0.0",
|
|
108
110
|
"loader.js": "^4.7.0",
|
|
@@ -135,5 +137,5 @@
|
|
|
135
137
|
"prember"
|
|
136
138
|
]
|
|
137
139
|
},
|
|
138
|
-
"gitHead": "
|
|
140
|
+
"gitHead": "c9d70834e458a98818858fb59244a459f60475d1"
|
|
139
141
|
}
|
package/src/index.ts
CHANGED
|
@@ -35,7 +35,7 @@ function hasBackingJS(chunks: DemoComponentChunk[]): boolean {
|
|
|
35
35
|
for (let i = 0; i < chunks.length; i++) {
|
|
36
36
|
const chunk = chunks[i];
|
|
37
37
|
|
|
38
|
-
if (
|
|
38
|
+
if (['js', 'ts', 'gts', 'gjs'].includes(chunk.ext)) {
|
|
39
39
|
return true;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
@@ -18,7 +18,7 @@ export default plugin({
|
|
|
18
18
|
const demoComponents: DemoComponent[] = [];
|
|
19
19
|
|
|
20
20
|
visit(page.ast, 'code', (node: CodeNode) => {
|
|
21
|
-
if (['preview-template'].includes(node.meta || '')) {
|
|
21
|
+
if (['preview-template', 'preview'].includes(node.meta || '')) {
|
|
22
22
|
demoComponents.push({
|
|
23
23
|
name: generateDemoComponentName(
|
|
24
24
|
`docfy-demo-preview-${path.basename(page.meta.url)}`,
|