Skip to content

Commit 3ac1f60

Browse files
chore: update to v5.0.0 alpha.2.15 (#17)
* chore: update readme * feat: added a hidden widget example with comments * chore: update dependencies and format * chore: update to v2.5 and remove svelte zoom-btn * feat: add vanillaJs reset zoom example * feat: add custom font + add explanatory comments * fix: setup node v20 in actions * fix: selection * chore: update eodash to v5.0.0-alpha.2.6 * update to `v5.0.0-alpha.2.12` * chore: updated eodash dependency and configuration example accordingly * chore: fix list overflow * update main.js to use default config --------- Co-authored-by: Daniel Santillan <[email protected]>
1 parent 98eb993 commit 3ac1f60

20 files changed

+1966
-821
lines changed

.eslintrc.js

-20
This file was deleted.

.github/workflows/deploy.yml

+11-3
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,21 @@ jobs:
1212
pages: write
1313
pull-requests: write
1414
steps:
15-
- uses: actions/checkout@v3
16-
- run: |
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
- name: Setup node env
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 20
21+
check-latest: true
22+
- name: Checkout
23+
run: |
1724
npm install
1825
npm run build -- --base /${{ github.event.repository.name }}/
1926
cp .eodash/dist/index.html .eodash/dist/404.html
2027
touch .eodash/dist/.nojekyll
21-
- uses: JamesIves/github-pages-deploy-action@v4
28+
- name: Deploy
29+
uses: JamesIves/github-pages-deploy-action@v4
2230
with:
2331
folder: ./.eodash/dist/
2432
branch: gh-pages

.github/workflows/preview.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ jobs:
2121
steps:
2222
- name: Checkout
2323
uses: actions/checkout@v3
24-
24+
- name: Setup node env
25+
uses: actions/setup-node@v4
26+
with:
27+
node-version: 20
28+
check-latest: true
2529
- name: Install and Build
2630
if: github.event.action != 'closed'
2731
run: |

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
node_modules
2-
app
32
.vscode
43
.DS_Store
54
.eodash/

README.md

+52-6
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,61 @@
11
# eodash Configuration and Deployment Template
22

3-
This is a template repository for configuring and deploying [eodash](https://github.com/eodash/eodash)
3+
This is an instance template for [@eodash/eodash](https://github.com/eodash/eodash). Check Github's guide on [how to create a repository from a template](https://docs.github.com/en/repositories/creating-and-managing-repositories/creating-a-repository-from-a-template)
44

55
## Prerequisites
66

7-
- Node v18 or higher
7+
- Node v20.15.1 or higher
88

9-
## Static Assets
9+
## Get Started
1010

11-
files and directories inside the `public` directory will be served statically in the application. They can be refrenced inside the config using their relative path:
11+
Install all the required dependecies:
1212

13-
```js
14-
new URL("/directory/file", import.meta.url).href;
13+
```bash
14+
npm run install
1515
```
16+
17+
Run the dev server:
18+
19+
```bash
20+
npm run dev
21+
```
22+
23+
To compile and minify for production:
24+
25+
```bash
26+
npm run build
27+
```
28+
29+
To preview the compiled production files :
30+
31+
```bash
32+
npm run preview
33+
```
34+
35+
To compile and minify as a web component library:
36+
37+
```bash
38+
npm run build -- --lib
39+
```
40+
41+
Format using prettier:
42+
43+
```bash
44+
npm run format
45+
```
46+
47+
Run linter:
48+
49+
```bash
50+
npm run lint
51+
```
52+
53+
## Folder Structure
54+
55+
.
56+
├── public # statically served files
57+
├── src # Client source code that hosts the microfrontends and renders the dashboard
58+
│ ├── widgets # Contains custom defined internal widgets
59+
│ └─ main.js # eodash main entry point
60+
61+
└── README.md

eodash.config.js

+5-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,7 @@
1-
/** @type {import("@eodash/eodash").EodashCLiConfig} */
2-
export default {
3-
base: "",
1+
import { defineConfig } from "@eodash/eodash/config";
2+
3+
export default defineConfig({
44
dev: {
5-
port: 3001,
6-
host: false,
7-
open: false,
5+
port: 3000,
86
},
9-
preview: {
10-
port: 4173,
11-
host: true,
12-
open: true,
13-
},
14-
outDir: ".eodash/dist",
15-
cacheDir: ".eodash/temp",
16-
};
7+
});

eslint.config.js

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import pluginVue from "eslint-plugin-vue";
2+
import eox from "@eox/eslint-config";
3+
4+
export default [
5+
...eox,
6+
...pluginVue.configs["flat/essential"],
7+
{
8+
ignores: ["public/", ".eodash/"],
9+
},
10+
];

0 commit comments

Comments
 (0)