Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "SeaBlock Wiki Development",
"image": "mcr.microsoft.com/devcontainers/typescript-node:18",
"features": {
"ghcr.io/devcontainers/features/git:1": {},
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"vue.volar",
"vue.vscode-typescript-vue-plugin",
"bradlc.vscode-tailwindcss",
"esbenp.prettier-vscode",
"ms-vscode.vscode-json",
"yzhang.markdown-all-in-one",
"ms-vscode.vscode-markdown"
],
"settings": {
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.preferences.importModuleSpecifier": "relative",
"vue.codeActions.enabled": true,
"vue.complete.casing.tags": "kebab",
"vue.complete.casing.props": "camel"
}
}
},
"postCreateCommand": "bash .devcontainer/setup.sh",
"forwardPorts": [5173, 3000],
"portsAttributes": {
"5173": {
"label": "VitePress Dev Server",
"onAutoForward": "notify"
},
"3000": {
"label": "WYSIWYG Editor",
"onAutoForward": "notify"
}
},
"remoteUser": "node"
}

37 changes: 37 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#!/bin/bash

# SeaBlock Wiki Development Environment Setup
echo "🚀 Setting up SeaBlock Wiki development environment..."

# Update npm to latest version
npm install -g npm@latest

# Install VitePress globally for CLI access
npm install -g vitepress@latest

# Install project dependencies
echo "📦 Installing project dependencies..."
npm install

# Create necessary directories
echo "📁 Creating project structure..."
mkdir -p content
mkdir -p assets/js
mkdir -p assets/css
mkdir -p .github/workflows

# Set up git hooks (optional)
echo "🔧 Setting up development tools..."

# Make scripts executable
chmod +x dev.sh 2>/dev/null || true

echo "✅ Development environment setup complete!"
echo ""
echo "Next steps:"
echo "1. Run 'npm run dev' to start the VitePress development server"
echo "2. Run 'npm run build:browser' to build the browser bundle"
echo "3. Run 'npm run dev:editor' to start the WYSIWYG editor"
echo ""
echo "Happy coding! 🎉"

25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
root: true,
env: {
browser: true,
es2021: true,
node: true
},
extends: [
'eslint:recommended',
'@vue/eslint-config-typescript',
'plugin:vue/vue3-recommended'
],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module'
},
rules: {
'vue/multi-word-component-names': 'off',
'vue/no-v-html': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}

54 changes: 54 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: Deploy to GitHub Pages

on:
push:
branches: [wiki]
pull_request:
branches: [wiki]

permissions:
contents: read
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Build VitePress site
run: npm run build

- name: Set up Pages
id: pages
uses: actions/configure-pages@v5

- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: ./docs/.vitepress/dist/

deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref == 'refs/heads/wiki'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
145 changes: 145 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,145 @@
# Dependencies
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Build outputs
dist/
.vitepress/dist/
.vitepress/cache/

# VitePress build outputs
docs/.vitepress/dist/
docs/.vitepress/cache/

/assets/js/
/assets/css/

# Test output files
test/comparison-*.html
test/live-comparison-report.json
test/vitepress.html
test/webbrowser.html

# Environment variables
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# IDE and editor files
.vscode/
.idea/
*.swp
*.swo
*~

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Logs
logs
*.log

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
coverage/

# nyc test coverage
.nyc_output

# Dependency directories
jspm_packages/

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# Temporary files
*.tmp
*.temp
.tmp/
.temp/

# Backup files
*.bak
*.backup
*~

# Lock files (keep package-lock.json but ignore others)
yarn.lock
pnpm-lock.yaml

# TypeScript build info
*.tsbuildinfo

# ESLint cache
.eslintcache

# Prettier cache
.prettiercache

# Vite cache
.vite/

# Local development files
.local/
local/

# Documentation build artifacts
docs/build/
docs/.vitepress/temp/

# Editor temporary files
*.sublime-*
*.code-workspace

13 changes: 13 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none",
"printWidth": 100,
"endOfLine": "lf",
"arrowParens": "avoid",
"bracketSpacing": true,
"bracketSameLine": false,
"vueIndentScriptAndStyle": false
}

Loading