Skip to content

Commit 0cbfd1c

Browse files
committed
refactoring: rely on static site generation
1 parent 34c40fe commit 0cbfd1c

35 files changed

+6158
-882
lines changed

.envrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
use flake
2+
3+
if [ -f .env ]; then
4+
. .env
5+
fi

.github/workflows/ci.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Setup NodeJS
14+
uses: actions/setup-node@v3
15+
with:
16+
node-version: 20.x
17+
- run: npm install
18+
- run: npm run build
19+
- run: npm run publish
20+
if: ${{ github.ref == 'refs/heads/dev' && github.event_name != 'pull_request' }}

.gitignore

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
node_modules
2-
bower_components
3-
4-
dist/
2+
public
53

64
# Ignore OSX' garbage
75
.DS_Store
@@ -35,3 +33,4 @@ obj/
3533
_ReSharper*/
3634
[Tt]est[Rr]esult*
3735
.idea/
36+
.direnv

Procfile

Lines changed: 0 additions & 1 deletion
This file was deleted.

bower.json

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

data/communities.json

Lines changed: 493 additions & 275 deletions
Large diffs are not rendered by default.

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
description = "LyonTechHub website";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
flake-utils.url = "github:numtide/flake-utils";
7+
};
8+
9+
outputs = inputs@{ self, nixpkgs, flake-utils, ... }:
10+
flake-utils.lib.eachDefaultSystem
11+
(system:
12+
let
13+
pkgs = import nixpkgs { inherit system; };
14+
in
15+
{
16+
devShell =
17+
let
18+
scripts = pkgs.symlinkJoin {
19+
name = "scripts";
20+
paths = pkgs.lib.mapAttrsToList pkgs.writeShellScriptBin { };
21+
};
22+
in
23+
pkgs.mkShell {
24+
buildInputs = with pkgs; [
25+
nodejs_20
26+
scripts
27+
];
28+
inputsFrom = [
29+
];
30+
};
31+
});
32+
}

0 commit comments

Comments
 (0)