Skip to content

Commit

Permalink
Merge pull request #12 from hasancruk/11ty-rewrite
Browse files Browse the repository at this point in the history
chore: start replacing Astro site with 11ty base
  • Loading branch information
hasancruk authored Jul 22, 2024
2 parents 652ec11 + 1563415 commit 13105cc
Show file tree
Hide file tree
Showing 32 changed files with 2,729 additions and 10,301 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Site Build

on: [push]

permissions:
contents: write

jobs:
build_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master

- name: Setup node
uses: actions/setup-node@v4.0.3
with:
node-version: 22
cache: 'npm'

- name: Install dependencies
run: npm install

- name: Build site
run: node --run build

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: _site
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
29 changes: 0 additions & 29 deletions .github/workflows/deploy.yml

This file was deleted.

9 changes: 1 addition & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
# build output
dist/
_site/

# dependencies
node_modules/

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


# environment variables
.env
.env.production
Expand Down
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22.5.1
4 changes: 0 additions & 4 deletions .vscode/extensions.json

This file was deleted.

11 changes: 0 additions & 11 deletions .vscode/launch.json

This file was deleted.

46 changes: 5 additions & 41 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,45 +1,9 @@
# Astro Starter Kit: Minimal
# Creative Spaces Website

```
npm create astro@latest -- --template minimal
```
## Stack

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/withastro/astro/tree/latest/examples/minimal)
- 11ty + WebC <3

> 🧑‍🚀 **Seasoned astronaut?** Delete this file. Have fun!
## Contributing

## 🚀 Project Structure

Inside of your Astro project, you'll see the following folders and files:

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

Astro looks for `.astro` or `.md` files in the `src/pages/` directory. Each page is exposed as a route based on its file name.

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

Any static assets, like images, can be placed in the `public/` directory.

## 🧞 Commands

All commands are run from the root of the project, from a terminal:

| Command | Action |
| :--------------------- | :----------------------------------------------- |
| `npm install` | Installs dependencies |
| `npm run dev` | Starts local dev server at `localhost:3000` |
| `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 |

## 👀 Want to learn more?

Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
TBC
17 changes: 0 additions & 17 deletions astro.config.mjs

This file was deleted.

21 changes: 21 additions & 0 deletions eleventy.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
const pluginWebc = require("@11ty/eleventy-plugin-webc");

module.exports = function(eleventyConfig) {
eleventyConfig.addPlugin(pluginWebc, {
components: "./src/_includes/components/**/*.webc"
});

eleventyConfig.addPassthroughCopy({
"public": "assets",
"./node_modules/@hasancruk/cruk-textarea/cruk-textarea.js": "scripts/cruk-textarea.js",
});

return {
dir: {
input: "src",
includes: "_includes",
data: "_data",
output: "_site"
}
};
};
Loading

0 comments on commit 13105cc

Please sign in to comment.