Skip to content

Commit

Permalink
feat: provide RSS feeds and rewrite puzzle transformation in Vite plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
ouuan committed Apr 5, 2022
1 parent 5a1b3df commit c9acf27
Show file tree
Hide file tree
Showing 16 changed files with 580 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
root: true,
env: {
browser: true,
es2015: true,
es2016: true,
},
extends: [
'@vue/typescript/recommended',
Expand Down
7 changes: 4 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ dist/
*.log
*.wasm
!tree-sitter.wasm
public/targetCode/*
public/statement/*
public/targetCode/
public/statement/
public/*.xml
puzzles/*
!0.*
!puzzles/0.*
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Guess code like Wordle with AST nodes as letters. [Play it!](https://codle.ouuan
```bash
pnpm i
sudo pnpm build-treesitter:cpp
./encode-puzzles.sh
pnpm serve
pnpm build
```
17 changes: 0 additions & 17 deletions encode-puzzles.sh

This file was deleted.

3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
<link rel="canonical" href="https://codle.ouuan.moe">
<title>Codle | Wordle with AST nodes as letters</title>

<link href="/index.xml" rel="feed" type="application/rss+xml" title="Codle Puzzles">
<link href="/atom.xml" rel="feed" type="application/atom+xml" title="Codle Puzzles">

<link rel="apple-touch-icon" sizes="57x57" href="/images/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="/images/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="/images/apple-icon-72x72.png">
Expand Down
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"lint:nofix": "eslint . --ignore-path .gitignore --ext .ts,.vue,.js",
"lint:types": "vue-tsc --noEmit",
"serve": "vite",
"build": "pnpm lint && pnpm lint:types && ./encode-puzzles.sh && vite build",
"build": "pnpm lint && pnpm lint:types && vite build",
"build-treesitter:cpp": "tree-sitter build-wasm node_modules/tree-sitter-cpp && mv tree-sitter-cpp.wasm public"
},
"repository": {
Expand Down Expand Up @@ -36,6 +36,8 @@
"devDependencies": {
"@types/codemirror": "^5.60.5",
"@types/dompurify": "^2.3.3",
"@types/glob": "^7.2.0",
"@types/jsdom": "^16.2.14",
"@typescript-eslint/eslint-plugin": "^5.17.0",
"@typescript-eslint/parser": "^5.17.0",
"@vitejs/plugin-vue": "^2.3.1",
Expand All @@ -44,6 +46,10 @@
"eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-import": "^2.25.4",
"eslint-plugin-vue": "^8.5.0",
"feed": "^4.2.2",
"glob": "^7.2.0",
"glob-promise": "^4.2.2",
"jsdom": "^19.0.0",
"rollup-plugin-analyzer": "^4.0.0",
"tree-sitter-cli": "^0.20.6",
"tree-sitter-cpp": "^0.20.0",
Expand Down
Loading

0 comments on commit c9acf27

Please sign in to comment.