Skip to content

Commit

Permalink
初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
aliaoJin committed Sep 2, 2023
0 parents commit 7afb54f
Show file tree
Hide file tree
Showing 51 changed files with 20,905 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
uni_modules/
node_modules/
.DS_Store
dist/
*.local

# Editor directories and files
.idea
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
12 changes: 12 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/dist/*
.local
.output.js
/node_modules/**
/uni_modules/*

**/*.svg
**/*.sh

/public/*

src/manifest.json
30 changes: 30 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
// @ts-check
const prettier = require('prettier');

/**
* @type {prettier.Config}
*/
const config = {
printWidth: 220,
// 尽可能添加逗号
trailingComma: 'all',
// tab 的长度
tabWidth: 4,
// 自动添加分号
semi: true,
// 使用单引号
singleQuote: true,
// 结尾换行
endOfLine: 'lf',
// 重写部分文件的规则
overrides: [
{
files: '*.yml',
options: {
tabWidth: 2,
},
},
],
};

module.exports = config;
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<!-- 茗居软装 -->

<!-- 安装 -->

1、npm install

<!-- 打包 -->

2、npm run dev:mp-weixin

3、<!-- 运行 --将 dist\dev\mp-weixin 文件夹放入微信开发者工具中运行 -->
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<script>
var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
CSS.supports('top: constant(a)'))
document.write(
'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
(coverSupport ? ', viewport-fit=cover' : '') + '" />')
</script>
<title></title>
<!--preload-links-->
<!--app-context-->
</head>
<body>
<div id="app"><!--app-html--></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
Loading

0 comments on commit 7afb54f

Please sign in to comment.