Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update to v5.0.0 alpha.2.15 #17

Merged
merged 17 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions .eslintrc.js

This file was deleted.

14 changes: 11 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@ jobs:
pages: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- run: |
- name: Checkout
uses: actions/checkout@v3
- name: Setup node env
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
- name: Checkout
run: |
npm install
npm run build -- --base /${{ github.event.repository.name }}/
cp .eodash/dist/index.html .eodash/dist/404.html
touch .eodash/dist/.nojekyll
- uses: JamesIves/github-pages-deploy-action@v4
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./.eodash/dist/
branch: gh-pages
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup node env
uses: actions/setup-node@v4
with:
node-version: 20
check-latest: true
- name: Install and Build
if: github.event.action != 'closed'
run: |
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules
app
.vscode
.DS_Store
.eodash/
Expand Down
58 changes: 52 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,61 @@
# eodash Configuration and Deployment Template

This is a template repository for configuring and deploying [eodash](https://github.com/eodash/eodash)
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)

## Prerequisites

- Node v18 or higher
- Node v20.15.1 or higher

## Static Assets
## Get Started

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:
Install all the required dependecies:

```js
new URL("/directory/file", import.meta.url).href;
```bash
npm run install
```

Run the dev server:

```bash
npm run dev
```

To compile and minify for production:

```bash
npm run build
```

To preview the compiled production files :

```bash
npm run preview
```

To compile and minify as a web component library:

```bash
npm run build -- --lib
```

Format using prettier:

```bash
npm run format
```

Run linter:

```bash
npm run lint
```

## Folder Structure

.
├── public # statically served files
├── src # Client source code that hosts the microfrontends and renders the dashboard
│ ├── widgets # Contains custom defined internal widgets
│ └─ main.js # eodash main entry point
└── README.md
19 changes: 5 additions & 14 deletions eodash.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,7 @@
/** @type {import("@eodash/eodash").EodashCLiConfig} */
export default {
base: "",
import { defineConfig } from "@eodash/eodash/config";

export default defineConfig({
dev: {
port: 3001,
host: false,
open: false,
port: 3000,
},
preview: {
port: 4173,
host: true,
open: true,
},
outDir: ".eodash/dist",
cacheDir: ".eodash/temp",
};
});
10 changes: 10 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import pluginVue from "eslint-plugin-vue";
import eox from "@eox/eslint-config";

export default [
...eox,
...pluginVue.configs["flat/essential"],
{
ignores: ["public/", ".eodash/"],
},
];
Loading
Loading