dont show test files in demos

This commit is contained in:
Philipp Kühn
2020-11-30 14:20:34 +01:00
parent f6206b3df5
commit 5028507294

View File

@@ -111,6 +111,7 @@ export default {
mounted() {
this.files = collect(require.context('~/demos/', true, /.+\..+$/).keys())
.filter(path => path.startsWith(`./${this.name}/`))
.filter(path => !path.endsWith('.spec.js') && !path.endsWith('.spec.ts'))
.map(path => path.replace('./', ''))
.map(path => {
const extension = path.split('.').pop()