diff --git a/CHANGELOG.md b/CHANGELOG.md index 34de39c..1e49d88 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## 1.8.0 -Typescript is introduced. The internal functions are more clean and readable. And new documentation web-site based on Vitepress is soon to be deployed. +Typescript is introduced. The internal functions are more clean and readable. And new documentation web-site based on Vitepress is ready for the first deploy. ## 1.6.0 diff --git a/deploy.sh b/deploy.sh index 7a9e77d..3657ebd 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,4 +1,4 @@ -cd demo +cd dist git init git remote add origin git@github.com:davay42/gun-avatar.git diff --git a/tests/index.html b/docs/public/tests/index.html similarity index 97% rename from tests/index.html rename to docs/public/tests/index.html index 288d152..9b70354 100644 --- a/tests/index.html +++ b/docs/public/tests/index.html @@ -375,12 +375,19 @@

MIT 2020-present
by davay - - - import { mountElement, mountClass } from "./src/index"; + + + + + + + + +
+

User avatar

+ +
+ +
+

Room avatar

+ +
+
+

IMG tag with class and data-attributes

+ + +
+ + diff --git a/package.json b/package.json index 58c152d..6544c35 100644 --- a/package.json +++ b/package.json @@ -40,13 +40,12 @@ "lib" ], "scripts": { - "build": "tsc && vite build --config vite.config.lib.js", - "deploy": "sh deploy.sh", - "dev": "vite", - "page": "vite build", - "serve": "vite preview --port=5005", - "docs": "vitepress dev docs", - "build-docs": "vitepress build docs" + "dev": "vitepress dev docs", + "build": "vitepress build docs", + "build-lib": "vite build --config vite.config.lib.js && tsc ", + "serve": "vitepress preview docs --port=5005", + "test": "vite docs/public/tests", + "deploy": "sh deploy.sh" }, "dependencies": { "@unocss/reset": "0.48.4", diff --git a/tests/test.html b/tests/test.html deleted file mode 100644 index c878d3d..0000000 --- a/tests/test.html +++ /dev/null @@ -1,60 +0,0 @@ - - - - - - - GUN avatar generator - - - - - - - -
-

User avatar

- -
- -
-

Room avatar

- -
-
-

IMG tag with class and data-attributes

- - -
- - diff --git a/tsconfig.json b/tsconfig.json index 934cf09..af8e609 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -20,7 +20,7 @@ // Types should go into this directory. // Removing this would place the .d.ts files // next to the .js files - "outDir": "public/types", + "outDir": "lib/types", // go to js file when using IDE functions like // "Go to Definition" in VSCode "declarationMap": true