Skip to content

Commit

Permalink
Merge pull request #2 from RiwEZ/astro
Browse files Browse the repository at this point in the history
feat: migrating to Astro
  • Loading branch information
RiwEZ authored Mar 29, 2024
2 parents f04c0d3 + 0057caf commit 2107f65
Show file tree
Hide file tree
Showing 106 changed files with 1,266 additions and 35,600 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.cjs

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout your repository using git
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v2
# with:
# path: . # The root location of your Astro project inside the repository. (optional)

deploy:
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
29 changes: 0 additions & 29 deletions .github/workflows/workflow.yml

This file was deleted.

27 changes: 20 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
.DS_Store
node_modules
/build
/.svelte-kit
/package
# build output
dist/
# generated types
.astro/

# dependencies
node_modules/

# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*


# environment variables
.env
.env.*
!.env.example
.env.production

# macOS-specific files
.DS_Store
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

14 changes: 0 additions & 14 deletions .prettierignore

This file was deleted.

8 changes: 0 additions & 8 deletions .prettierrc

This file was deleted.

13 changes: 13 additions & 0 deletions .prettierrc.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// .prettierrc.mjs
/** @type {import("prettier").Config} */
export default {
plugins: ["prettier-plugin-astro"],
overrides: [
{
files: "*.astro",
options: {
parser: "astro",
},
},
],
};
59 changes: 33 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,47 @@
# create-svelte
# Astro Starter Kit: Minimal

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/master/packages/create-svelte).

## Creating a project
```sh
npm create astro@latest -- --template minimal
```

If you're seeing this, you've probably already done this step. Congrats!
[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal)
[![Open with CodeSandbox](https://assets.codesandbox.io/github/button-edit-lime.svg)](https://codesandbox.io/p/sandbox/github/withastro/astro/tree/latest/examples/minimal)
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)](https://codespaces.new/withastro/astro?devcontainer_path=.devcontainer/minimal/devcontainer.json)

```bash
# create a new project in the current directory
npm init svelte@next
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
# create a new project in my-app
npm init svelte@next my-app
```
## 🚀 Project Structure

> Note: the `@next` is temporary
Inside of your Astro project, you'll see the following folders and files:

## Developing
```text
/
├── public/
├── src/
│ └── pages/
│ └── index.astro
└── package.json
```

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.

```bash
npm run dev
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.

# or start the server and open the app in a new browser tab
npm run dev -- --open
```
Any static assets, like images, can be placed in the `public/` directory.

## Building
## 🧞 Commands

To create a production version of your app:
All commands are run from the root of the project, from a terminal:

```bash
npm run build
```
| Command | Action |
| :------------------------ | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:4321` |
| `npm run build` | Build your production site to `./dist/` |
| `npm run preview` | Preview your build locally, before deploying |
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
| `npm run astro -- --help` | Get help using the Astro CLI |

You can preview the production build with `npm run preview`.
## 👀 Want to learn more?

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
20 changes: 0 additions & 20 deletions admin/.eslintrc.cjs

This file was deleted.

10 changes: 0 additions & 10 deletions admin/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion admin/.npmrc

This file was deleted.

8 changes: 0 additions & 8 deletions admin/.prettierrc

This file was deleted.

38 changes: 0 additions & 38 deletions admin/README.md

This file was deleted.

Loading

0 comments on commit 2107f65

Please sign in to comment.