Skip to content

Commit

Permalink
Chore: Update Nuxt setup
Browse files Browse the repository at this point in the history
  • Loading branch information
stormwarning committed Apr 30, 2021
1 parent d013491 commit 863de14
Show file tree
Hide file tree
Showing 12 changed files with 26,626 additions and 19,338 deletions.
18 changes: 0 additions & 18 deletions .babelrc

This file was deleted.

5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module.exports = {
extends: ['@zazen', '@zazen/eslint-config/vue'],
extends: ['@nuxtjs/eslint-config-typescript', '@zazen/eslint-config/vue'],
parserOptions: {
project: null,
},
rules: {
'vue/html-indent': 'off',
},
Expand Down
1 change: 0 additions & 1 deletion .stylelintignore

This file was deleted.

10 changes: 0 additions & 10 deletions ava.config.cjs

This file was deleted.

16 changes: 16 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
env: {
test: {
presets: [
[
'@babel/preset-env',
{
targets: {
node: 'current',
},
},
],
],
},
},
}
18 changes: 18 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
module.exports = {
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/$1',
'^~/(.*)$': '<rootDir>/$1',
'^vue$': 'vue/dist/vue.common.js',
},
moduleFileExtensions: ['ts', 'js', 'vue', 'json'],
transform: {
'^.+\\.ts$': 'ts-jest',
'^.+\\.js$': 'babel-jest',
'.*\\.(vue)$': 'vue-jest',
},
collectCoverage: true,
collectCoverageFrom: [
'<rootDir>/components/**/*.vue',
'<rootDir>/pages/**/*.vue',
],
}
12 changes: 0 additions & 12 deletions jsconfig.json

This file was deleted.

2 changes: 2 additions & 0 deletions nuxt.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ export default {

/** Nuxt.js dev-modules */
buildModules: [
/** @see https://go.nuxtjs.dev/typescript */
'@nuxt/typescript-build',
/** @see https://github.com/nuxt-community/nuxt-tailwindcss */
'@nuxtjs/tailwindcss',
],
Expand Down
Loading

0 comments on commit 863de14

Please sign in to comment.