Giter Club home page Giter Club logo

Comments (2)

renmm avatar renmm commented on June 28, 2024

使用mrm解放双手

自动安装以上步骤,需要写一个mrm-task

ps: mrm需要node >= 14 版本 (如果node版本低于14,使用nvm切换)

举例以mrm官网的readme来讲:
执行:官网里的代码

npx mrm license readme

在cli里会报异常:
Uploading image.png…

解决方案:
全局安装mrm :

# 安装mrm
yarn global add mrm 
# 查看yarn global
yarn global list

from blogs.

renmm avatar renmm commented on June 28, 2024

发布Pure ESM package

在使用Inquirer时,发现v9版本发布的是ESM。不支持require访问。

如果你也想在node环境里发布esm模块,推荐阅读Pure ESM package

具体好处及实践请看上面的规范

简单总结下前置依赖:

  • Update the "engines" field in package.json to Node.js 14: "node": ">=14.16". (Excluding Node.js 12 as it's no longer supported)

node版本要求14.16 (可以放低到12.0.0,node 12开始支持esm)

给lib包加ts类型定义,可参考以下规范:

typescript-definition-style-guide

from blogs.

Related Issues (20)

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.