diff --git a/.eslintrc b/.eslintrc deleted file mode 100644 index d83a003e..00000000 --- a/.eslintrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "@antfu", - "ignorePatterns":["/content/**","/.github/**"] -} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b0f4d2b9..48c059f5 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,21 +14,26 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check Code + - name: Checkout uses: actions/checkout@v4 - - name: Setup Node.js + - uses: pnpm/action-setup@v4 + name: Install pnpm + + - name: Install Node.js uses: actions/setup-node@v4 with: - node-version: '20' - cache: 'npm' + node-version: 22 + cache: 'pnpm' - - name: Install dependency - run: npm ci + - name: Install dependencies + run: pnpm install - name: Check Linting - run: npm run lint + run: pnpm run lint + - name: Check Format + run: pnpm run format - name: Playgourd build check - run: npm run build + run: pnpm run build diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 00000000..b52a92b1 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "singleQuote": true, + "semi": false, + "printWidth": 100 +} diff --git a/.vscode/settings.json b/.vscode/settings.json index 56fa3354..85d22f53 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { - "prettier.enable": false, - "editor.formatOnSave": false, + "editor.formatOnSave": true, + "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.codeActionsOnSave": { "source.fixAll.eslint": "explicit" }, diff --git a/LICENSE.md b/LICENSE.md index b79df407..7f2b5861 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -17,4 +17,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. \ No newline at end of file +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/README.md b/README.md index 367aa74c..f95ba132 100644 --- a/README.md +++ b/README.md @@ -12,9 +12,10 @@

- Nuxt Blog built with [Nuxt3](https://nuxt.com), [Nuxt-Content2](https://content.nuxtjs.org/blog/announcing-v2/), [Vue3](https://vuejs.org) & [TailwindCss](https://tailwindcss.com/) +Nuxt Blog built with [Nuxt3](https://nuxt.com), [Nuxt-Content2](https://content.nuxtjs.org/blog/announcing-v2/), [Vue3](https://vuejs.org) & [TailwindCss](https://tailwindcss.com/) ## Features + - Write blog with markdown file - Auto generate category from blog post - Blog list page with search and pagination @@ -25,8 +26,8 @@ - Dark and light mode - Server Side Rendered(SSR) with Nuxt3 - ## How to Make This Blog Template Yours in 5 Minutes + - Clone this repo or use it as a template - Go to ./data/index.ts file & add your personal info - Then head over to the ./content/blogs folder to add new blogs diff --git a/app.vue b/app.vue index 24b11525..703151ac 100644 --- a/app.vue +++ b/app.vue @@ -10,7 +10,7 @@ useHead({ diff --git a/components/archive/card.vue b/components/archive/card.vue index f01d27a2..5f8c7417 100644 --- a/components/archive/card.vue +++ b/components/archive/card.vue @@ -25,7 +25,9 @@ withDefaults(defineProps(), {