Skip to content

Commit

Permalink
feat: add nuxt module
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohan Bansal committed Dec 3, 2024
1 parent f1dada1 commit aaef2ac
Show file tree
Hide file tree
Showing 24 changed files with 8,420 additions and 2,581 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: Linters
# https://github.com/marketplace/actions/prettier-check
# This action works with pull requests and pushes on the main branch

on:
pull_request:
push:
Expand Down
62 changes: 62 additions & 0 deletions .github/workflows/nuxt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Nuxt

on:
push:
paths: [nuxt/**]
branches: [development]
pull_request:

jobs:
changes:
name: Check for changes
runs-on: ubuntu-latest

permissions:
pull-requests: read

outputs:
packages: ${{ steps.filter.outputs.changes }}

steps:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
nuxt: nuxt/**
test:
name: ${{ matrix.package }}
needs: changes
runs-on: ubuntu-latest

strategy:
matrix:
package: ${{ fromJSON(needs.changes.outputs.packages) }}

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Enable Corepack
run: corepack enable

- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
cache-dependency-path: '**/config/rush/pnpm-lock.yaml'
registry-url: https://registry.npmjs.org/

- name: Rush Install
run: node common/scripts/install-run-rush.js install

- name: Prepare Playground
working-directory: ./${{ matrix.package }}
run: node ../common/scripts/install-run-rushx.js dev:prepare

- name: Rush Build
run: node common/scripts/install-run-rush.js rebuild --verbose

- name: Run Tests
working-directory: ./${{ matrix.package }}
run: node ../common/scripts/install-run-rushx.js test
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,11 @@ tsdoc-metadata.json

# XState generated files
**/*.typegen.ts

# Nuxt
.nuxt
.output
.data
.vercel_build_output
.build-*
.netlify
36 changes: 36 additions & 0 deletions common/config/rush/browser-approved-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,26 @@
"name": "@monaco-editor/loader",
"allowedCategories": [ "prototype" ]
},
{
"name": "@nuxt/devtools",
"allowedCategories": [ "prototype" ]
},
{
"name": "@nuxt/kit",
"allowedCategories": [ "prototype" ]
},
{
"name": "@nuxt/module-builder",
"allowedCategories": [ "prototype" ]
},
{
"name": "@nuxt/schema",
"allowedCategories": [ "prototype" ]
},
{
"name": "@nuxt/test-utils",
"allowedCategories": [ "prototype" ]
},
{
"name": "@rushstack/heft",
"allowedCategories": [ "prototype", "utilities" ]
Expand Down Expand Up @@ -142,6 +162,10 @@
"name": "graphql-request",
"allowedCategories": [ "utilities" ]
},
{
"name": "h3",
"allowedCategories": [ "prototype" ]
},
{
"name": "histoire",
"allowedCategories": [ "prototype", "utilities" ]
Expand Down Expand Up @@ -170,10 +194,22 @@
"name": "mqtt",
"allowedCategories": [ "prototype" ]
},
{
"name": "nitropack",
"allowedCategories": [ "prototype" ]
},
{
"name": "node-sass",
"allowedCategories": [ "prototype" ]
},
{
"name": "nuxi",
"allowedCategories": [ "prototype" ]
},
{
"name": "nuxt",
"allowedCategories": [ "prototype" ]
},
{
"name": "onscan.js",
"allowedCategories": [ "prototype" ]
Expand Down
Loading

0 comments on commit aaef2ac

Please sign in to comment.