Giter Club home page Giter Club logo

it-tools's Introduction

logo

本项目是从 CorentinTh/it-tools fork而来的。

如何开发及部署

IDE设置推荐

推荐使用VSCode 进行开发,并建议安装以下扩展:

并在VSCode的配置文件中添加:

{
  "editor.formatOnSave": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "i18n-ally.localesPaths": ["locales", "src/tools/*/locales"],
  "i18n-ally.keystyle": "nested"
}

如何在写TS时添加vue文件的引用

默认情况下,TypeScript无法处理.vue导入的类型信息,因此我们将tscCLI替换为vue-tsc进行类型检查。在编辑器中,我们需要 TypeScript Vue Plugin (Volar) ,以使typescript语言服务知道.vue类型。

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a Take Over Mode that is more performant. You can enable it by the following steps:

如果你觉得独立的TypeScript插件不够快,Volar还实现了 托管模式 更具性能。您可以通过以下步骤启用它:

  1. 禁用内置的TypeScript扩展
    1. 在VSCode的指令输入框中输入Extensions: Show Built-in Extensions
    2. 找到TypeScript and JavaScript Language Features,右键并选择Disable (Workspace)
  2. 在指令输入框中输入 Developer: Reload Window 以重新加载VSCode。

依赖安装

npm install

开发时的编译和热重载

npm run dev

编译和生成可发布文件包

npm run build

使用 Vitest 进行单元测试

npm run test

使用 ESLint 进行检查

npm run lint

添加新的工具

如果要创建一个新的工具,可以运行预先设置好的脚本,运行以下指令:

npm run script:create:tool my-tool-name

它将在src/tools中创建一个包含正确文件的目录,并在src/tools/index.ts中创建导入。您只需要将导入的工具添加到适当的类别中并开发该工具。

开源许可

本项目基于 GNU GPLv3 开源许可。

it-tools's People

Contributors

corentinth avatar renovate[bot] avatar cgoit avatar marvin-j97 avatar motui avatar sharevb avatar avioli avatar rmtsrc avatar lovesinatra avatar lzb16 avatar hieudt-2054 avatar hoangsvit avatar lemon8866 avatar rursache avatar raulmora22 avatar epicnesstwo avatar sbordeyne avatar steltek avatar tsonglew avatar bastantoine avatar jmmanzano avatar myztillx avatar swishkin avatar oceansdeep7 avatar ironwilldevops avatar mblaschke avatar whackablemole avatar marcelocg avatar yohn avatar istvan-olah avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.