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

mv to svelte #13

Merged
merged 1 commit into from
Feb 15, 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 .dockerignore

This file was deleted.

12 changes: 0 additions & 12 deletions .editorconfig

This file was deleted.

13 changes: 12 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,13 @@
.DS_Store
node_modules
dist
/build
/.svelte-kit
/package
.env
.env.*
!.env.example

# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
34 changes: 34 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/** @type { import("eslint").Linter.Config } */
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
],
rules: {
'@typescript-eslint/no-explicit-any': 'off'
}
};
27 changes: 0 additions & 27 deletions .eslintrc.json

This file was deleted.

21 changes: 0 additions & 21 deletions .gitattributes

This file was deleted.

28 changes: 28 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: test
on:
push:
branches-ignore: ['main']

jobs:
test:
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4

- name: node 18
uses: actions/setup-node@v4
with:
node-version: 18

- name: build
run: |
npm ci && npm run build

- name: check
run: |
npm run check

- name: lint
run: |
npm run lint
27 changes: 0 additions & 27 deletions .github/workflows/pull-requests.yml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Deploy to Pages

on:
push:
branches: ["main"]
branches: ['main']
workflow_dispatch:

permissions:
Expand All @@ -11,7 +11,7 @@ permissions:
id-token: write

concurrency:
group: "pages"
group: 'pages'
cancel-in-progress: false

jobs:
Expand All @@ -26,7 +26,10 @@ jobs:
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Build
run: make build && make pages
run: |
npm ci
npm run build
touch ./build/.nojekyll && echo 'converter.bmlt.app' > ./build/CNAME
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
Expand Down
16 changes: 10 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.idea
build/
node_modules/
pages/
scratch.html
dist/
.DS_Store
node_modules
/build
/.svelte-kit
/package
.env
.env.*
!.env.example
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
11 changes: 4 additions & 7 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
*.html
*.min.js
/build
/pages
build
node_modules/
dist/
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
package-lock.json
yarn.lock
8 changes: 8 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"useTabs": true,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
7 changes: 0 additions & 7 deletions Dockerfile

This file was deleted.

49 changes: 0 additions & 49 deletions Makefile

This file was deleted.

29 changes: 22 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,28 @@
# BMLT Data Converter

* Converts BMLT data from JSON to CSV or KML
* Note that export of KML is only supported with GetSearchResults.
* Use your semantic interface to build query url
- Converts BMLT data from JSON to CSV or KML
- Note that export of KML is only supported with GetSearchResults.
- Use your semantic interface to build query url

#### Steps to Build Locally
## Developing

Using NPM
Once you've installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:

```bash
npm run dev

# or start the server and open the app in a new browser tab
npm run dev -- --open
```
npm install
npm start

## Building

To create a production version of your app:

```bash
npm run build
```

You can preview the production build with `npm run preview`.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
Loading