web-infra-dev / rslib

Create JavaScript libraries in a simple and intuitive way.
https://lib.rsbuild.dev/
MIT License
477 stars 26 forks source link

Rslib features track #46

Open Timeless0911 opened 4 months ago

Timeless0911 commented 4 months ago

CLI

Config

Features

We try to keep the features aligned with Modern.js Module

bundle / bundleless

format

output.library.type

platform

alias

autoExtension

externals

output.externals

redirect

shims

banner & footer

dts

css

Module Federation

input

copy

define

minify

outDir

resolve

sourcemap

transformImport

decorators

asset

polyfill

prebundle

Ecosystem

Advanced

Migration

yee94 commented 3 months ago

Usually this kind of tools need extends options, don't you think?

Timeless0911 commented 3 months ago

Usually this kind of tools need extends options, don't you think?

Can you give some examples of what extends is going to do?

lanmingle commented 2 weeks ago

突然说 Modern.js Module 不推荐使用,用 rslib 了,测试了一下,更简单很灵活,很棒!

另外请完善文档(以及中文文档支持),例如 Tailwind CSS 等只库上使用,打包不使用,自定义模板等等,现在这个文档  😂

功能请求:npm create rslib@latest 请添加一些命令行参数,可以选择不交互模式,如 --name / -n 名称,-lang / -l = ts ,additional : -a =biome 等等,方便拷贝一条命令就可以创建项目,而不是交互模式。

Timeless0911 commented 2 weeks ago

@lanmingle

突然说 Modern.js Module 不推荐使用,用 rslib 了,测试了一下,更简单很灵活,很棒!

Thank you for your dogfooding, we will release the first stable version 0.1.0 in the end of year.

另外请完善文档(以及中文文档支持),例如 Tailwind CSS 等只库上使用,打包不使用,自定义模板等等,现在这个文档 😂

Rslib documentation is still under construction, stay tuned for a stable version and we will translate the Chinese document after the English document is completed.

功能请求:npm create rslib@latest 请添加一些命令行参数,可以选择不交互模式,如 --name / -n 名称,-lang / -l = ts ,additional : -a =biome 等等,方便拷贝一条命令就可以创建项目,而不是交互模式。

You can open an issue in https://github.com/rspack-contrib/create-rstack.

chenjiahan commented 2 weeks ago

You can open an issue in https://github.com/rspack-contrib/create-rstack.

create-rslib already provides some CLI flags, see: https://lib.rsbuild.dev/guide/start/quick-start#quick-creation

lanmingle commented 2 weeks ago

@lanmingle

突然说 Modern.js Module 不推荐使用,用 rslib 了,测试了一下,更简单很灵活,很棒!

Thank you for your dogfooding, we will release the first stable version 0.1.0 in the end of year.

另外请完善文档(以及中文文档支持),例如 Tailwind CSS 等只库上使用,打包不使用,自定义模板等等,现在这个文档 😂

Rslib documentation is still under construction, stay tuned for a stable version and we will translate the Chinese document after the English document is completed.

功能请求:npm create rslib@latest 请添加一些命令行参数,可以选择不交互模式,如 --name / -n 名称,-lang / -l = ts ,additional : -a =biome 等等,方便拷贝一条命令就可以创建项目,而不是交互模式。

You can open an issue in https://github.com/rspack-contrib/create-rstack.

https://github.com/rspack-contrib/create-rstack/issues/21