Skip to content

Commit

Permalink
Partially init decap cms and inlang
Browse files Browse the repository at this point in the history
  • Loading branch information
iolyd committed Jan 8, 2024
1 parent 7dda7bf commit 170df2f
Show file tree
Hide file tree
Showing 17 changed files with 976 additions and 12 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
# name: Deploy to GitHub Pages

# on:
# push:
# branches: 'main'

# jobs:
# build_site:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v3

# # If you're using pnpm, add this step then change the commands and cache key below to use `pnpm`
# # - name: Install pnpm
# # uses: pnpm/action-setup@v2
# # with:
# # version: 8

# - name: Install Node.js
# uses: actions/setup-node@v3
# with:
# node-version: 18
# cache: npm

# - name: Install dependencies
# run: npm install

# - name: build
# env:
# BASE_PATH: '/${{ github.event.repository.name }}'
# run: |
# npm run build

# - name: Upload Artifacts
# uses: actions/upload-pages-artifact@v2
# with:
# # this should match the `pages` option in your adapter-static options
# path: 'build/'

# deploy:
# needs: build_site
# runs-on: ubuntu-latest

# permissions:
# pages: write
# id-token: write

# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}

# steps:
# - name: Deploy
# id: deployment
# uses: actions/deploy-pages@v2
5 changes: 5 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"recommendations": [
"inlang.vs-code-extension"
]
}
25 changes: 25 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"workbench.editor.labelFormat": "short",
"editor.formatOnPaste": false,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.organizeImports": "explicit",
"source.fixAll": "explicit"
},
"files.associations": {
"*.svx": "markdown",
"*.mdx": "markdown",
"*.json": "jsonc"
},
"[svelte]": {
"editor.defaultFormatter": "svelte.svelte-vscode"
},
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.preferences.quoteStyle": "single",
"svelte.enable-ts-plugin": true,
"svelte.plugin.css.globals": "src/**/*.css",
"svelte.plugin.svelte.compilerWarnings": {
"a11y-missing-attribute": "ignore"
}
}
3 changes: 3 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"chair_name_short": "UNESCO Chair In Urban Landscape"
}
3 changes: 3 additions & 0 deletions messages/fr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"chair_name_short": "Chaire UNESCO en paysage et environnement"
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@
"private": true,
"scripts": {
"dev": "vite dev",
"build": "vite build",
"build": "paraglide-js compile --project ./project.inlang && vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --check . && eslint .",
"format": "prettier --write ."
"format": "prettier --write .",
"postinstall": "paraglide-js compile --project ./project.inlang"
},
"devDependencies": {
"@inlang/paraglide-js": "1.1.0",
"@inlang/paraglide-js-adapter-vite": "^1.2.0",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
Expand Down
Loading

0 comments on commit 170df2f

Please sign in to comment.