gardenjs 0.9.0 → 0.9.1-alpha.2
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/bin/servegarden.js
CHANGED
|
@@ -72,7 +72,7 @@ function separator() {
|
|
|
72
72
|
function createConfigFile({ title, componentFolder, libraries }) {
|
|
73
73
|
const importStmts = libraries
|
|
74
74
|
.map((lib) => {
|
|
75
|
-
return `import ${lib}RendererBuilder from "
|
|
75
|
+
return `import ${lib}RendererBuilder from "gardenjs/${lib.toLowerCase()}"`
|
|
76
76
|
})
|
|
77
77
|
.join('\n')
|
|
78
78
|
const renderer = libraries
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gardenjs",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.1-alpha.2",
|
|
4
4
|
"description": "A lightweight UI component explorer for JavaScript front-end libraries",
|
|
5
5
|
"repository": "https://github.com/gardenjs/gardenjs",
|
|
6
6
|
"homepage": "https://github.com/gardenjs/gardenjs/blob/main/README.md",
|
|
@@ -35,7 +35,6 @@
|
|
|
35
35
|
"eslint-plugin-svelte": "2.32.2",
|
|
36
36
|
"husky": "8.0.3",
|
|
37
37
|
"lint-staged": "14.0.1",
|
|
38
|
-
"node-watch": "0.7.3",
|
|
39
38
|
"prettier": "3.0.3",
|
|
40
39
|
"prettier-plugin-svelte": "3.0.3",
|
|
41
40
|
"sass": "1.69.0",
|
|
@@ -45,6 +44,7 @@
|
|
|
45
44
|
"dependencies": {
|
|
46
45
|
"@inquirer/checkbox": "1.5.0",
|
|
47
46
|
"@inquirer/prompts": "3.3.0",
|
|
47
|
+
"node-watch": "0.7.3",
|
|
48
48
|
"highlight.js": "11.7.0",
|
|
49
49
|
"marked": "4.3.0",
|
|
50
50
|
"open": "8.4.0"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { GardenApp } from '
|
|
1
|
+
import { GardenApp } from 'gardenjs'
|
|
2
2
|
import { navTree, routes } from '../base.js'
|
|
3
3
|
import { dasMap } from '../das_import_map.js'
|
|
4
4
|
import config from '../../garden.config.js'
|
|
5
|
-
import '
|
|
5
|
+
import 'gardenjs/main.scss'
|
|
6
6
|
|
|
7
7
|
const app = new GardenApp({
|
|
8
8
|
target: document.getElementById('app'),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import puppeteer from 'puppeteer'
|
|
2
|
-
import { routes } from '
|
|
3
|
-
import { dasmap } from '
|
|
2
|
+
import { routes } from '../.garden/base'
|
|
3
|
+
import { dasmap } from '../.garden/importmap'
|
|
4
4
|
import { toMatchImageSnapshot } from 'jest-image-snapshot'
|
|
5
5
|
|
|
6
6
|
expect.extend({ toMatchImageSnapshot })
|
|
@@ -18,14 +18,14 @@ async function generate(serverport) {
|
|
|
18
18
|
console.clear()
|
|
19
19
|
console.log('PROJECT ROOT: ', process.cwd())
|
|
20
20
|
console.log('')
|
|
21
|
-
console.log('generate
|
|
21
|
+
console.log('generate Gardenjs')
|
|
22
22
|
console.log('======================')
|
|
23
23
|
console.log('')
|
|
24
24
|
await generateGardenBase()
|
|
25
25
|
console.log('')
|
|
26
26
|
console.log('======================')
|
|
27
27
|
console.log('')
|
|
28
|
-
console.log('generate
|
|
28
|
+
console.log('generate Gardenjs finished')
|
|
29
29
|
console.log('')
|
|
30
30
|
console.log(`Listen at -> http://localhost:${serverport}`)
|
|
31
31
|
console.log('')
|