소스 검색

chore: remove .hbs file submission check

niyonggui 3 년 전
부모
커밋
87d3078941
4개의 변경된 파일20개의 추가작업 그리고 9개의 파일을 삭제
  1. 2 1
      .husky/lintstagedrc.js
  2. 1 0
      .prettierignore
  3. 2 2
      package.json
  4. 15 6
      plop/template/newModule/index.hbs

+ 2 - 1
.husky/lintstagedrc.js

@@ -4,5 +4,6 @@ module.exports = {
   'package.json': ['prettier --write'],
   '*.vue': ['prettier --write', 'stylelint --fix'],
   '*.{scss,less,styl,css,html}': ['stylelint --fix', 'prettier --write'],
-  '*.md': ['prettier --write']
+  '*.md': ['prettier --write'],
+  '*.{hbs}': ['prettier --write']
 }

+ 1 - 0
.prettierignore

@@ -6,4 +6,5 @@
 /vite.config.ts
 /src/types/env.d.ts
 /docs/**/*
+/plop/**/*
 CHANGELOG

+ 2 - 2
package.json

@@ -44,7 +44,6 @@
     "nprogress": "^0.2.0",
     "pinia": "^2.0.12",
     "pinia-plugin-persist": "^1.0.0",
-    "plop": "^3.0.5",
     "qrcode": "^1.5.0",
     "qs": "^6.10.3",
     "vue": "3.2.31",
@@ -102,7 +101,8 @@
     "vite-plugin-windicss": "^1.8.3",
     "vue-tsc": "^0.33.2",
     "windicss": "^3.5.1",
-    "windicss-analysis": "^0.3.5"
+    "windicss-analysis": "^0.3.5",
+    "plop": "^3.0.5"
   },
   "engines": {
     "node": ">= 14.0.0"

+ 15 - 6
plop/template/newModule/index.hbs

@@ -1,11 +1,20 @@
-<script setup lang='ts'>
-  import { ElButton } from 'element-plus' import { useI18n } from '@/hooks/web/useI18n' import { ref
-  } from 'vue' defineOptions({ name: '{{upperFirstName}}', components: { ElButton }, setup() {} })
-  const { t } = useI18n()
+<script setup lang="ts">
+import { ElButton } from 'element-plus'
+import { useI18n } from '@/hooks/web/useI18n'
+import { ref } from 'vue'
+
+defineOptions({
+  name: '{{ upperFirstName }}',
+  components: {
+    ElButton
+  },
+  setup() {}
+})
+const { t } = useI18n()
 </script>
 
 <template>
   <ContentWrap>
-    <ElButton type='primary'>{{name}}</ElButton>
+    <ElButton type="primary">{{ name }}</ElButton>
   </ContentWrap>
-</template>
+</template>