Skip to content

Commit

Permalink
Merge pull request #1 from WeilinerL/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
WeilinerL authored Dec 1, 2021
2 parents 2706189 + e0f16be commit 4626f7d
Show file tree
Hide file tree
Showing 16 changed files with 1,897 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node\_modules
10 changes: 10 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"root": true,
"parser": "@typescript-eslint/parser", //定义ESLint的解析器
"plugins": ["prettier", "@typescript-eslint"], //定义了该eslint文件所依赖的插件,
"extends": ["prettier"],
"rules": {
"no-var": "error",
"prettier/prettier": "error"
}
}
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo \"git commit trigger husky pre-commit hook\" && npx lint-staged
12 changes: 12 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Dependency directories
node\_modules
package-lock.json

# source code
lib
.eslintrc
.eslintignore
.prettierrc
.prettierignore
.gitignore
tsconfig.json
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node\_modules
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"useTabs": false,
"printWidth": 120,
"singleQuote": true,
"trailingComma": "es5",
"arrowParens": "always"
}
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,10 @@
# nuwa-cli
project initialization tool

project initialization、CI、CD framework

项目初始化、持续集成、持续部署框架

# 开发指南
1. npm i
2. npx husky install
3. npm run dev
3 changes: 3 additions & 0 deletions bin/nuwa-cli
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env node

require('../dist/lib/index.js');
1 change: 1 addition & 0 deletions lib/core/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('core index');
5 changes: 5 additions & 0 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function main() {
console.log('这里是程序执行入口函数');
}

main();
1 change: 1 addition & 0 deletions lib/library.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('export');
1 change: 1 addition & 0 deletions lib/utils/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log('utils index');
Binary file added nuwa-cli.xmind
Binary file not shown.
Loading

0 comments on commit 4626f7d

Please sign in to comment.