diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..d3dff7b --- /dev/null +++ b/.eslintignore @@ -0,0 +1,10 @@ +dist +public + +# ignore generate imports +auto-imports.d.ts +components.d.ts + +dist +.output +node_modules diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..72c33a7 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,13 @@ +{ + "extends": ["@nuxtjs/eslint-config-typescript"], + "overrides": [ + { + "files": [ + "./server/**/*.ts" + ], + "rules": { + "no-console": ["error", { "allow": ["info", "warn", "trace", "error"]}] + } + } + ] +} diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 4844a9c..e1ddedb 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -31,27 +31,3 @@ jobs: # Run tests - run: npm run test - - # This job will run the app and then use `curl` to visit the index-page. This is a smoke detector check that ensures that your app still builds & runs correctly - testAppBuildsAndStarts: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Use Node.js 16.14.2 - uses: actions/setup-node@v3 - with: - node-version: 16.14.2 - - # Install packages - - run: npm i - - # Generate prisma client & push to db - - run: echo "DATABASE_URL=file:./db.sqlite" > .env - - run: npx prisma db push - - run: npx prisma generate - - # start app in dev mode and load `/`-index page - - run: "(timeout 60 npm run dev & (sleep 10 && curl --fail localhost:3000)) && echo Run development check successful" - - # build & start app in production mode and load `/`-index page - - run: "npm run build && (timeout 60 npm run preview & (sleep 10 && curl --fail localhost:3000)) && echo Run production check successful"