3 Commits
9 changed files with 152 additions and 12 deletions
+12
View File
@@ -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.
+5
View File
@@ -1 +1,6 @@
approvedGitRepositories:
- "**"
enableScripts: true
nodeLinker: node-modules nodeLinker: node-modules
+11 -2
View File
@@ -2,12 +2,22 @@
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` |
@@ -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).
Executable
+12
View File
@@ -0,0 +1,12 @@
#!/usr/bin/env bash
if command -v yarn >/dev/null 2>&1; then
echo "yarn is available"
else
echo "yarn is not installed" >&2
exit 1
fi
yarn install
yarn build
+65
View File
@@ -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
View File
@@ -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
View File
@@ -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
+1 -1
View File
@@ -2,7 +2,7 @@
# Manual changes might be lost - proceed with caution! # Manual changes might be lost - proceed with caution!
__metadata: __metadata:
version: 8 version: 9
cacheKey: 10c0 cacheKey: 10c0
"@ampproject/remapping@npm:^2.2.0": "@ampproject/remapping@npm:^2.2.0":