Compare commits
7 Commits
885ea712d0
...
0791acb502
Author | SHA1 | Date | |
---|---|---|---|
0791acb502 | |||
6593342917 | |||
0263c5e323 | |||
aefe2b0766 | |||
f335b610ea | |||
dcb4d9e694 | |||
45bb8edffd |
10
.editorconfig
Normal file
10
.editorconfig
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
root = true
|
||||||
|
|
||||||
|
[*]
|
||||||
|
end_of_line = lf
|
||||||
|
insert_final_newline = true
|
||||||
|
charset = utf-8
|
||||||
|
|
||||||
|
[*.{js,ts,json,mts,css}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
14
.eslintrc.cjs
Normal file
14
.eslintrc.cjs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
/* eslint-env node */
|
||||||
|
require('@rushstack/eslint-patch/modern-module-resolution')
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
root: true,
|
||||||
|
'extends': [
|
||||||
|
'plugin:vue/vue3-essential',
|
||||||
|
'eslint:recommended',
|
||||||
|
'@vue/eslint-config-prettier/skip-formatting'
|
||||||
|
],
|
||||||
|
parserOptions: {
|
||||||
|
ecmaVersion: 'latest'
|
||||||
|
}
|
||||||
|
}
|
@ -19,13 +19,11 @@ jobs:
|
|||||||
- name: Setup Node
|
- name: Setup Node
|
||||||
uses: actions/setup-node@v4
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: 18.x
|
node-version: 20.x
|
||||||
- name: Enable corepack and yarn
|
|
||||||
run: corepack enable
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: yarn install --frozen-lockfile
|
run: npm ci
|
||||||
- name: Build with VitePress
|
- name: Build with VitePress
|
||||||
run: yarn build
|
run: npm run build
|
||||||
- name: Deploy on the web
|
- name: Deploy on the web
|
||||||
uses: appleboy/scp-action@v0.1.7
|
uses: appleboy/scp-action@v0.1.7
|
||||||
with:
|
with:
|
||||||
|
@ -15,7 +15,7 @@ const socialLinks = [
|
|||||||
icon: {
|
icon: {
|
||||||
svg: discordSvg,
|
svg: discordSvg,
|
||||||
},
|
},
|
||||||
link: 'https://alys.phundrak.com/discord',
|
link: 'https://discord.gg/mChDJQW',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
* in custom container, badges, etc.
|
* in custom container, badges, etc.
|
||||||
* -------------------------------------------------------------------------- */
|
* -------------------------------------------------------------------------- */
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
--vp-c-default-1: var(--vp-c-gray-1);
|
--vp-c-default-1: var(--vp-c-gray-1);
|
||||||
--vp-c-default-2: var(--vp-c-gray-2);
|
--vp-c-default-2: var(--vp-c-gray-2);
|
||||||
--vp-c-default-3: var(--vp-c-gray-3);
|
--vp-c-default-3: var(--vp-c-gray-3);
|
||||||
@ -92,17 +92,8 @@
|
|||||||
|
|
||||||
:root {
|
:root {
|
||||||
--vp-home-hero-name-color: transparent;
|
--vp-home-hero-name-color: transparent;
|
||||||
--vp-home-hero-name-background: -webkit-linear-gradient(
|
--vp-home-hero-name-background: -webkit-linear-gradient(120deg, #bd34fe 30%, #41d1ff);
|
||||||
120deg,
|
--vp-home-hero-image-background-image: linear-gradient(-45deg, #bd34fe 50%, #47caff 50%);
|
||||||
#bd34fe 30%,
|
|
||||||
#41d1ff
|
|
||||||
);
|
|
||||||
|
|
||||||
--vp-home-hero-image-background-image: linear-gradient(
|
|
||||||
-45deg,
|
|
||||||
#bd34fe 50%,
|
|
||||||
#47caff 50%
|
|
||||||
);
|
|
||||||
--vp-home-hero-image-filter: blur(44px);
|
--vp-home-hero-image-filter: blur(44px);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -8,4 +8,4 @@ next: false
|
|||||||
|
|
||||||
## Discord
|
## Discord
|
||||||
La communauté ALYS est présente sur Discord ! Vous pouvez la rejoindre
|
La communauté ALYS est présente sur Discord ! Vous pouvez la rejoindre
|
||||||
via [ce lien](https://alys.phundrak.com/discord).
|
via [ce lien](https://discord.gg/mChDJQW).
|
||||||
|
48
misc/enter-shell-hook.sh
Executable file
48
misc/enter-shell-hook.sh
Executable file
@ -0,0 +1,48 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
# $1 subcommand
|
||||||
|
display_command() {
|
||||||
|
echo -e "\t{{ Bold (Color \"#00FF00\" \"npm $1\") }}" | gum format -t template
|
||||||
|
echo ''
|
||||||
|
}
|
||||||
|
|
||||||
|
# $1 emoji, $2 text, $3 subcommand
|
||||||
|
display_command_and_comment() {
|
||||||
|
echo "$1 {{ Italic \"$2\" }}" | gum format -t template | gum format -t emoji
|
||||||
|
display_command "$3"
|
||||||
|
echo ''
|
||||||
|
}
|
||||||
|
|
||||||
|
what_next() {
|
||||||
|
echo ''
|
||||||
|
display_command_and_comment ':rocket:' 'Run the project in development mode' 'run dev'
|
||||||
|
display_command_and_comment ':wrench:' 'Build the project' 'run build'
|
||||||
|
display_command_and_comment ':eyes:' 'Preview the built project' 'run preview'
|
||||||
|
echo ''
|
||||||
|
}
|
||||||
|
|
||||||
|
setup() {
|
||||||
|
gum spin --spinner dot --title 'Installing dependencies with npm' --show-output -- npm i
|
||||||
|
echo ':wrench: All your dependencies are now installed! You can now use any of the following commands:' | gum format -t emoji
|
||||||
|
what_next
|
||||||
|
}
|
||||||
|
|
||||||
|
just_info() {
|
||||||
|
echo ''
|
||||||
|
echo 'No problem, you can always run this command later do install them:'
|
||||||
|
display_command 'install'
|
||||||
|
echo ''
|
||||||
|
echo 'You will then be able to execute the following commands:'
|
||||||
|
what_next
|
||||||
|
}
|
||||||
|
|
||||||
|
echo ''
|
||||||
|
echo ':stars: Welcome to the {{ Bold "alys.phundrak.com" }} development environment!' | gum format -t template | gum format -t emoji
|
||||||
|
if [ -d "node_modules" ]; then
|
||||||
|
echo ':star2: Your dependencies are already installed I see!' | gum format -t emoji
|
||||||
|
echo ':wrench: You can now run the following commands to run the project:' | gum format -t emoji
|
||||||
|
what_next
|
||||||
|
elif gum confirm 'Would you like to install the NPM dependencies of the project right now?'; then
|
||||||
|
setup
|
||||||
|
else
|
||||||
|
just_info
|
||||||
|
fi
|
3059
package-lock.json
generated
Normal file
3059
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
14
package.json
14
package.json
@ -6,10 +6,16 @@
|
|||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vitepress dev docs",
|
"dev": "vitepress dev docs",
|
||||||
"build": "vitepress build docs",
|
"build": "vitepress build docs",
|
||||||
"preview": "vitepress preview docs"
|
"preview": "vitepress preview docs",
|
||||||
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
|
||||||
|
"format": "prettier --write docs/.vitepress/"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"vitepress": "^1.0.0-rc.45"
|
"vitepress": "^1.2.3",
|
||||||
},
|
"@rushstack/eslint-patch": "^1.8.0",
|
||||||
"packageManager": "yarn@4.1.1"
|
"@vue/eslint-config-prettier": "^9.0.0",
|
||||||
|
"eslint": "^8.57.0",
|
||||||
|
"eslint-plugin-vue": "^9.23.0",
|
||||||
|
"prettier": "^3.2.5"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
{ pkgs ? import <nixpkgs> {} }:
|
{ pkgs ? import <nixpkgs> {} }:
|
||||||
pkgs.mkShell {
|
pkgs.mkShell {
|
||||||
nativeBuildInputs = with pkgs.buildPackages; [
|
nativeBuildInputs = with pkgs; [
|
||||||
corepack
|
nodejs_20
|
||||||
|
gum
|
||||||
];
|
];
|
||||||
shellHook = ''
|
shellHook = ''
|
||||||
yarn set version stable
|
bash misc/enter-shell-hook.sh
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user