Compare commits
1
Commits
c65bdf71ae
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b713c75213 |
+12
@@ -4,6 +4,7 @@ dist/
|
|||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
node_modules/
|
node_modules/
|
||||||
|
.yarn/install-state.gz
|
||||||
|
|
||||||
# logs
|
# logs
|
||||||
npm-debug.log*
|
npm-debug.log*
|
||||||
@@ -18,3 +19,14 @@ pnpm-debug.log*
|
|||||||
|
|
||||||
# macOS-specific files
|
# macOS-specific files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# Devenv
|
||||||
|
.devenv*
|
||||||
|
devenv.local.nix
|
||||||
|
devenv.local.yaml
|
||||||
|
|
||||||
|
# direnv
|
||||||
|
.direnv
|
||||||
|
|
||||||
|
# pre-commit
|
||||||
|
.pre-commit-config.yaml
|
||||||
|
|||||||
Binary file not shown.
@@ -1 +1,6 @@
|
|||||||
|
approvedGitRepositories:
|
||||||
|
- "**"
|
||||||
|
|
||||||
|
enableScripts: true
|
||||||
|
|
||||||
nodeLinker: node-modules
|
nodeLinker: node-modules
|
||||||
|
|||||||
@@ -2,19 +2,29 @@
|
|||||||
|
|
||||||
This website is built using [Astro](https://astro.build)
|
This website is built using [Astro](https://astro.build)
|
||||||
|
|
||||||
|
## CI
|
||||||
|
|
||||||
|
For building the image on the server, the command to use is
|
||||||
|
|
||||||
|
```bash
|
||||||
|
devenv tasks run news:build
|
||||||
|
```
|
||||||
|
|
||||||
|
After that, a Caddy image will serve the files generated in the `dist` directory
|
||||||
|
|
||||||
## 🧞 Commands
|
## 🧞 Commands
|
||||||
|
|
||||||
All commands are run from the root of the project, from a terminal:
|
All commands are run from the root of the project, from a terminal:
|
||||||
|
|
||||||
| Command | Action |
|
| Command | Action |
|
||||||
| :--------------------- | :------------------------------------------------- |
|
| :------------------ | :------------------------------------------------- |
|
||||||
| `npm i -g yarn` | Installs yarn (if needed) |
|
| `npm i -g yarn` | Installs yarn (if needed) |
|
||||||
| `yarn` | Installs dependencies |
|
| `yarn` | Installs dependencies |
|
||||||
| `yarn dev` | Starts local dev server at `localhost:3000` |
|
| `yarn dev` | Starts local dev server at `localhost:3000` |
|
||||||
| `yarn build` | Build your production site to `./dist/` |
|
| `yarn build` | Build your production site to `./dist/` |
|
||||||
| `yarn preview` | Preview your build locally, before deploying |
|
| `yarn preview` | Preview your build locally, before deploying |
|
||||||
| `yarn astro ...` | Run CLI commands like `astro add`, `astro preview` |
|
| `yarn astro ...` | Run CLI commands like `astro add`, `astro preview` |
|
||||||
| `yarn astro --help` | Get help using the Astro CLI |
|
| `yarn astro --help` | Get help using the Astro CLI |
|
||||||
|
|
||||||
## 🚀 Project Structure
|
## 🚀 Project Structure
|
||||||
|
|
||||||
@@ -40,7 +50,6 @@ There's nothing special about `src/components/`, but that's where we like to put
|
|||||||
|
|
||||||
Any static assets, like images, can be placed in the `public/` directory.
|
Any static assets, like images, can be placed in the `public/` directory.
|
||||||
|
|
||||||
|
|
||||||
## 👀 Want to learn more?
|
## 👀 Want to learn more?
|
||||||
|
|
||||||
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
Feel free to check [our documentation](https://docs.astro.build) or jump into our [Discord server](https://astro.build/chat).
|
||||||
|
|||||||
+65
@@ -0,0 +1,65 @@
|
|||||||
|
{
|
||||||
|
"nodes": {
|
||||||
|
"devenv": {
|
||||||
|
"locked": {
|
||||||
|
"dir": "src/modules",
|
||||||
|
"lastModified": 1787952362,
|
||||||
|
"narHash": "sha256-2vxVcc2CO7ihRRqg1OuqsVnOAoQ+kaRu7829hN44xLs=",
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "devenv",
|
||||||
|
"rev": "eeced8155ca9d573f5f3e22cbe925e7fbe4e761b",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"dir": "src/modules",
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "devenv",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs-src": "nixpkgs-src"
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1787753358,
|
||||||
|
"narHash": "sha256-Tl77VbWyAKrOfRNQhL6JbQtb/MLzbYa/1RG1gWWfICk=",
|
||||||
|
"owner": "cachix",
|
||||||
|
"repo": "devenv-nixpkgs",
|
||||||
|
"rev": "256551e45f6303e142ab4a98be1bf243feb77dc0",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "cachix",
|
||||||
|
"ref": "rolling",
|
||||||
|
"repo": "devenv-nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nixpkgs-src": {
|
||||||
|
"flake": false,
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1787394516,
|
||||||
|
"narHash": "sha256-pRGOQSClnXNI2iLUG6DYpsGvYcuw0drOutVZFTJNw90=",
|
||||||
|
"owner": "NixOS",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"rev": "c8f90650c15282fa8656a041bfbbd2403997a9a7",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "NixOS",
|
||||||
|
"ref": "nixpkgs-unstable",
|
||||||
|
"repo": "nixpkgs",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": {
|
||||||
|
"inputs": {
|
||||||
|
"devenv": "devenv",
|
||||||
|
"nixpkgs": "nixpkgs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"root": "root",
|
||||||
|
"version": 7
|
||||||
|
}
|
||||||
+19
@@ -0,0 +1,19 @@
|
|||||||
|
{ pkgs, ... }: {
|
||||||
|
languages = {
|
||||||
|
javascript = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.nodejs_22;
|
||||||
|
yarn = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.yarn-berry;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
tasks."news:install" = {
|
||||||
|
exec = ''yarn install'';
|
||||||
|
before = ["news:build"];
|
||||||
|
};
|
||||||
|
tasks."news:build" = {
|
||||||
|
exec = ''yarn build'';
|
||||||
|
};
|
||||||
|
}
|
||||||
+18
@@ -0,0 +1,18 @@
|
|||||||
|
# yaml-language-server: $schema=https://devenv.sh/devenv.schema.json
|
||||||
|
inputs:
|
||||||
|
nixpkgs:
|
||||||
|
url: github:cachix/devenv-nixpkgs/rolling
|
||||||
|
|
||||||
|
# If you're using non-OSS software, you can set allow_unfree to true.
|
||||||
|
# allow_unfree: true
|
||||||
|
|
||||||
|
# If you're not willing to allow unsupported packages:
|
||||||
|
# allow_unsupported_system: false
|
||||||
|
|
||||||
|
# If you're willing to use a package that's vulnerable
|
||||||
|
# permitted_insecure_packages:
|
||||||
|
# - "openssl-1.1.1w"
|
||||||
|
|
||||||
|
# If you have more than one devenv you can merge them
|
||||||
|
#imports:
|
||||||
|
# - ./backend
|
||||||
Reference in New Issue
Block a user