Skip to content

Commit 07c6558

Browse files
authored
Merge pull request #110 from AbdAsh/astrofile
Initial Astrofile
2 parents d6f4ec9 + 653d3c3 commit 07c6558

43 files changed

Lines changed: 8214 additions & 34930 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.babelrc

Lines changed: 0 additions & 16 deletions
This file was deleted.

.editorconfig

Lines changed: 0 additions & 13 deletions
This file was deleted.

.eslintrc.js

Lines changed: 0 additions & 16 deletions
This file was deleted.
Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,46 @@
1-
name: Nuxt to Github Pages
1+
name: Deploy Astro to GitHub Pages
2+
23
on:
34
push:
45
branches:
56
- main
6-
pull_request:
7-
branches:
8-
- main
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
913
jobs:
10-
build_vue:
14+
build:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Node.js
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: '20'
24+
cache: npm
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Build
30+
run: npm run build
31+
32+
- name: Upload artifact
33+
uses: actions/upload-pages-artifact@v3
34+
with:
35+
path: ./dist
36+
37+
deploy:
38+
needs: build
1139
runs-on: ubuntu-latest
12-
name: Build Vue
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
1343
steps:
14-
- uses: actions/checkout@v2
15-
- name: Set up Node.js 16
16-
uses: actions/setup-node@v2
17-
with:
18-
node-version: '16'
19-
- id: Build-Vue
20-
uses: ashkantaravati/NuxtToGithubPages@v1.0
21-
with:
22-
# Your username
23-
username: AbdAsh
24-
# Your reponame
25-
reponame: abdash.github.io
26-
# Your Github token
27-
token: ${{ secrets.GITHUB_TOKEN }} # Leave this line unchanged
28-
# Your git commit email
29-
gitemail: abdash2011@gmail.com
30-
# Your git commit name
31-
# gitname: # optional, default is CI
32-
# Your git commit message
33-
# gitmsg: # optional, default is deploy
34-
# Your custom domain
35-
cname: abdash.net
44+
- name: Deploy to GitHub Pages
45+
id: deployment
46+
uses: actions/deploy-pages@v4

.gitignore

Lines changed: 15 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,24 @@
1-
# Created by .ignore support plugin (hsz.mobi)
2-
### Node template
3-
# Logs
4-
/logs
5-
*.log
6-
npm-debug.log*
7-
yarn-debug.log*
8-
yarn-error.log*
9-
10-
# Runtime data
11-
pids
12-
*.pid
13-
*.seed
14-
*.pid.lock
15-
16-
# Directory for instrumented libs generated by jscoverage/JSCover
17-
lib-cov
18-
19-
# Coverage directory used by tools like istanbul
20-
coverage
21-
22-
# nyc test coverage
23-
.nyc_output
1+
# build output
2+
dist/
3+
# generated types
4+
.astro/
245

25-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26-
.grunt
27-
28-
# Bower dependency directory (https://bower.io/)
29-
bower_components
30-
31-
# node-waf configuration
32-
.lock-wscript
33-
34-
# Compiled binary addons (https://nodejs.org/api/addons.html)
35-
build/Release
36-
37-
# Dependency directories
6+
# dependencies
387
node_modules/
39-
jspm_packages/
40-
41-
# TypeScript v1 declaration files
42-
typings/
43-
44-
# Optional npm cache directory
45-
.npm
468

47-
# Optional eslint cache
48-
.eslintcache
49-
50-
# Optional REPL history
51-
.node_repl_history
52-
53-
# Output of 'npm pack'
54-
*.tgz
9+
# logs
10+
npm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
pnpm-debug.log*
5514

56-
# Yarn Integrity file
57-
.yarn-integrity
5815

59-
# dotenv environment variables file
16+
# environment variables
6017
.env
18+
.env.production
6119

62-
# parcel-bundler cache (https://parceljs.org/)
63-
.cache
64-
65-
# next.js build output
66-
.next
67-
68-
# nuxt.js build output
69-
.nuxt
70-
71-
# Nuxt generate
72-
dist
73-
74-
# vuepress build output
75-
.vuepress/dist
76-
77-
# Serverless directories
78-
.serverless
79-
80-
# IDE / Editor
81-
.idea
82-
83-
# Service worker
84-
sw.*
85-
86-
# macOS
20+
# macOS-specific files
8721
.DS_Store
8822

89-
# Vim swap files
90-
*.swp
91-
node_modules
23+
# jetbrains setting folder
24+
.idea/

.prettierignore

Lines changed: 0 additions & 96 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 4 deletions
This file was deleted.

CNAME

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
abdash.info
1+
abdash.net

README.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,43 @@
1-
# abdash.github.io
1+
# Astro Starter Kit: Minimal
2+
3+
```sh
4+
npm create astro@latest -- --template minimal
5+
```
6+
7+
> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
8+
9+
## 🚀 Project Structure
10+
11+
Inside of your Astro project, you'll see the following folders and files:
12+
13+
```text
14+
/
15+
├── public/
16+
├── src/
17+
│ └── pages/
18+
│ └── index.astro
19+
└── package.json
20+
```
21+
22+
Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.
23+
24+
There's nothing special about `src/components/`, but that's where we like to put any Astro/React/Vue/Svelte/Preact components.
25+
26+
Any static assets, like images, can be placed in the `public/` directory.
27+
28+
## 🧞 Commands
29+
30+
All commands are run from the root of the project, from a terminal:
31+
32+
| Command | Action |
33+
| :------------------------ | :----------------------------------------------- |
34+
| `npm install` | Installs dependencies |
35+
| `npm run dev` | Starts local dev server at `localhost:4321` |
36+
| `npm run build` | Build your production site to `./dist/` |
37+
| `npm run preview` | Preview your build locally, before deploying |
38+
| `npm run astro ...` | Run CLI commands like `astro add`, `astro check` |
39+
| `npm run astro -- --help` | Get help using the Astro CLI |
40+
41+
## 👀 Want to learn more?
42+
43+
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).

0 commit comments

Comments
 (0)