feat: 首次提交
This commit is contained in:
9
ejs/index.esm.ts.ejs
Normal file
9
ejs/index.esm.ts.ejs
Normal file
@ -0,0 +1,9 @@
|
||||
<% dir.forEach(name => { -%>
|
||||
import <%- name %> from './<%- name %>/index.vue';
|
||||
<% }) -%>
|
||||
|
||||
export {
|
||||
<% dir.forEach((name, index) => { -%>
|
||||
<%- name %><% if (dir.length>index+1) { %>,<% } %>
|
||||
<% }) -%>
|
||||
}
|
14
ejs/index.umd.ts.ejs
Normal file
14
ejs/index.umd.ts.ejs
Normal file
@ -0,0 +1,14 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
<% dir.forEach(name => { -%>
|
||||
var <%- name %> = require('./<%- name %>/index.js');
|
||||
<% }) -%>
|
||||
var Components = [
|
||||
<% dir.forEach(name => { -%>
|
||||
<%- name %>,
|
||||
<% }) -%>
|
||||
]
|
||||
|
||||
exports["default"] = Components;
|
13
ejs/stories.ejs
Normal file
13
ejs/stories.ejs
Normal file
@ -0,0 +1,13 @@
|
||||
import type { Meta, StoryObj } from '@storybook/vue3';
|
||||
import <%- component %> from '../packages/<%- lowerName %>/index.vue';
|
||||
|
||||
const meta = {
|
||||
title: '某个大类/<%- component %>',
|
||||
component: <%- component %>,
|
||||
tags: ['autodocs'],
|
||||
} satisfies Meta<typeof <%- component %>>;
|
||||
export default meta;
|
||||
|
||||
type Story = StoryObj<typeof meta>;
|
||||
|
||||
export const Base: Story = {};
|
9
ejs/vue.ejs
Normal file
9
ejs/vue.ejs
Normal file
@ -0,0 +1,9 @@
|
||||
<template>
|
||||
<div>
|
||||
<%- component %>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup name="<%- component %>">
|
||||
</script>
|
||||
|
Reference in New Issue
Block a user