Unverified Commit 933ffeb6 authored by Nicolò Maria Mezzopera's avatar Nicolò Maria Mezzopera
Browse files

chore: move code to new vue-cli scaffold

parent 6158e35f
Loading
Loading
Loading
Loading

.nvmrc

0 → 100644
+1 −0
Original line number Diff line number Diff line
lts/*
 No newline at end of file

docgen.config.js

0 → 100644
+31 −0
Original line number Diff line number Diff line
module.exports = {
  componentsRoot: 'src/components',
  components: '**/[A-Z]*.vue',
  outDir: './docs/components',
  defaultExamples: false,
  templates: {
    component: (renderedUsage, doc) => {
      const { displayName, description, docsBlocks, tags, functional } = doc;
      const { deprecated, author, since, version, see, link } = tags || {};
      return `
---
title: ${displayName}
---
# ${deprecated ? `~~${displayName}~~` : displayName}
${deprecated ? `> **Deprecated** ${deprecated[0].description}\n` : ''}
${description ? '> ' + description : ''}
${functional ? renderedUsage.functionalTag : ''}
${author ? author.map(a => `Author: ${a.description}\n`) : ''}
${since ? `Since: ${since[0].description}\n` : ''}
${version ? `Version: ${version[0].description}\n` : ''}
${see ? see.map(s => `[See](${s.description})\n`) : ''}
${link ? link.map(l => `[See](${l.description})\n`) : ''}
${docsBlocks ? '---\n' + docsBlocks.join('\n---\n') : ''}
${renderedUsage.props}
${renderedUsage.methods}
${renderedUsage.events}
${renderedUsage.slots}
`;
    },
  },
};

jest.config.js

0 → 100644
+26 −0
Original line number Diff line number Diff line
module.exports = {
  verbose: true,
  bail: true,
  collectCoverage: true,
  coverageDirectory: 'coverage',
  restoreMocks: true,
  moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
  setupFiles: [
    '<rootDir>/tests/setup.js'
  ],
  transform: {
    '^.+\\.vue$': 'vue-jest',
    '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
      'jest-transform-stub',
    '^.+\\.jsx?$': 'babel-jest'
  },
  moduleNameMapper: {
    '^@/tests/(.*)$': '<rootDir>/tests/$1',
    '^@/(.*)$': '<rootDir>/src/$1'
  },
  snapshotSerializers: ['jest-serializer-vue'],
  testMatch: [
    '**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
  ],
  testURL: 'http://localhost/'
};
+3 −0
Original line number Diff line number Diff line
@@ -18,6 +18,8 @@
    "@vue/compiler-sfc": "^3.0.0-0",
    "babel-eslint": "^10.1.0",
    "eslint": "^6.7.2",
    "eslint-config-prettier": "^6.11.0",
    "eslint-plugin-prettier": "^3.1.4",
    "eslint-plugin-vue": "^7.0.0-0"
  },
  "eslintConfig": {
@@ -27,6 +29,7 @@
    },
    "extends": [
      "plugin:vue/vue3-essential",
      "plugin:prettier/recommended",
      "eslint:recommended"
    ],
    "parserOptions": {

public/favicon.ico

deleted100644 → 0
−4.19 KiB
Loading image diff...
Loading