Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task: Presets in doctors #1

Open
1 of 19 tasks
BoyYangzai opened this issue Jun 23, 2023 · 45 comments
Open
1 of 19 tasks

Task: Presets in doctors #1

BoyYangzai opened this issue Jun 23, 2023 · 45 comments
Assignees
Labels
TODO something todo

Comments

@BoyYangzai
Copy link
Member

BoyYangzai commented Jun 23, 2023

core 提供插件api 功能扩展能力 + features

面向普通项目配置的: tips:建议选用当下最火的 common 类脚手架配置做参考

💡最好能给抽象出来一层 @doctors/common-app(包含 @doctors/eslint 幽灵依赖检测等) 的预设

面向企业级项目配置的: 与其配置紧密相关的

  • @doctors/nextjs
  • @doctors/nuxtjs
  • @doctors/umi => @doctors/bigfish 这个是举例 蚂蚁内部已经有 bigfish 的 doctor 了
    img_v2_5a25836f-3f3b-4853-aef7-e7c96330d64g

可扩展类:

  • @doctors/bundle 可与 @doctors/webpack-config 抽象 不建议加入 bundle 的过程 这样需要强依赖 打包工具的插件
    • bundle size 分析
    • bundle less 的建议 如 treeshaking 配置以及收否生效 检测有无异常的 treeshakjing 未成功 等

Others:

  • 新增 examples/ 目录
    • examples/npm-package => npm 类库开发模板
    • examples/vue2+webpack => @doctors/vue2 + @doctors/webpack-config => 抽象出 @doctors/vue2-webpack
    • examples/vue3+vite => @doctors/vue3 + @doctors/vite-config => 抽象出 @doctors/vue3-vite
    • examples/react+webpack => @doctors/react + @doctors/webpack-config => 抽象出 @doctors/react-webpack
    • examples/react+vite => @doctors/react + @doctors/vite-config => 抽象出 @doctors/react-vite
  • 美化当前 rules 提示的 终端 ui - #27
@BoyYangzai BoyYangzai self-assigned this Jun 23, 2023
@BoyYangzai BoyYangzai added the TODO something todo label Jun 23, 2023
@WindRunnerMax
Copy link
Member

浇我啊

@CoderSerio
Copy link
Contributor

带带我

1 similar comment
@ChelesteWang
Copy link

带带我

@djjhelloworld
Copy link

洋哥c我

@ChelesteWang
Copy link

NodeJS 检测 VSCode 是否安装

const os = require('os');
const { exec } = require('child_process');

if (os.platform() === 'win32' || os.platform() === 'darwin' || os.platform() === 'linux') {
  exec('code --version', (error, stdout, stderr) => {
    if (error) {
      console.error(`执行命令出错: ${error}`);
      return;
    }
    if (stderr) {
      console.error(`命令输出错误: ${stderr}`);
      return;
    }
    if (stdout.includes('1.')) {
      console.log('VS Code已安装');
    } else {
      console.log('VS Code未安装');
    }
  });
} else {
  console.log('不支持的操作系统');
}

@HCYETY
Copy link

HCYETY commented Jun 24, 2023

我是菜鸟,让我水个pr(不是)

@SnowingFox
Copy link
Contributor

想做@doctors/core

@aaaaa-pi
Copy link

想做 @doctors/webtools feature 开发

@CoderSerio
Copy link
Contributor

申请 @doctors/webtools feature 开发😘

@ChickenTreasure
Copy link

想做 @doctors/webtools feature 开发😘

@wanyue01
Copy link

申请 @doctors/webtools feature 开发

@CoderSerio
Copy link
Contributor

想参与 create-doctor(doctor preset 模板的 cli)

@TOBYhhw
Copy link
Contributor

TOBYhhw commented Jun 24, 2023

想做 @doctors/webtools feature 开发😘

@bcyangxu
Copy link

想做 @doctors/webtools feature 开发

@rainnoon
Copy link

想做 @doctors/webtools feature 开发😘

@233333-doge
Copy link

想做 @doctors/webtools feature 开发

@HCYETY
Copy link

HCYETY commented Jun 24, 2023

试试CLI

@yetToBeTested
Copy link
Contributor

想参与 cli开发

@huangyf31
Copy link

想做 cli

@yixiaojiu
Copy link
Contributor

想参与 CLI

@wsmhzxx
Copy link

wsmhzxx commented Jun 24, 2023

想做 @doctors/webtools feature 开发

@Ykkwen
Copy link

Ykkwen commented Jun 24, 2023

参与cli

@liliphoenix
Copy link

想试试cli

@jianyi-gronk
Copy link

想做 @doctors/webtools feature 开发

@shiqifriend
Copy link

想做cli

@MiJiaCoding
Copy link
Contributor

做 create-doctor 快速生成一个开发 doctor preset 模板的 cli

@vacshuwang
Copy link

想做cli

@cjhw
Copy link
Contributor

cjhw commented Jun 24, 2023

领取 @doctors/npm-pkg rules

@liudicheng0908
Copy link

想做 @doctors/webtools feature 开发

@MiJiaCoding
Copy link
Contributor

带带 @doctors/npm-pkg rules

@szmsxm
Copy link

szmsxm commented Jun 24, 2023

想试试cli

@leslieCHUENGT
Copy link

玉玉 @doctors/npm-pkg rules

@floatGray
Copy link

想做 @doctors/webtools feature 开发

@etheral12138
Copy link
Contributor

想做CLI

@deerrrrr
Copy link

想做cli

@ChelesteWang
Copy link

给个思路 ESLint 和 Prettier 实际流程都是 code -> ast -> code 的过程,是否有冲突的检测很简单,只需要执行两次判断两次结果是否有 diff 就好了

@xzch-124
Copy link

想做 CLI

@Jomorx
Copy link

Jomorx commented Jun 24, 2023

想参与 cli开发

@CoderSerio
Copy link
Contributor

想参与终端美化

@hangangan
Copy link

带带 @doctors/npm-pkg rules、cli

@1584965284
Copy link

想参与@doctors/eslint

@yangxiuxiu1115
Copy link

想参与 @doctors/vue3

@Evan-WH
Copy link

Evan-WH commented Jun 24, 2023

申请 @doctors/webtools feature 开发😘

@Linxae030
Copy link

@doctors/webtools feature 还能参加吗🥺

@BoyYangzai
Copy link
Member Author

@doctors/webtools feature 还能参加吗🥺

当然欢迎贡献

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
TODO something todo
Projects
None yet
Development

No branches or pull requests