单元格 
v8上的安全第一JS运行时间和工具链生成,运行,优化
QQ 类型脚本工具 不支持窗口 因为它的产卵主舱只运行ELF,Mach-O,以及
#!程序, 不是窗口.exe, (中文(简体) ),.bat,或.cmd· ; 红色 运行时间 会的.
今天,Gro是一个任务执行者 和工具包 扩展 斯维尔特基特 财务报告和审定财务报表 维特 用于使用 TypeScript 创建网络前端和库. 它运行在节点上,是一种dev工具,不用于生产.
格罗也成为自己的JS运行时间,
a V8 上的 Rust 二进制, 具有颗粒控制功能, 控制您的依赖和代理能够达到什么 .
按照设计,运行被默认限制: 代码只达到其进口申报的内容,
在不询问的情况下读取项目自己的文件,以及网络、进程和项目之外的一切
只有在小政策文件中被接受 你像锁文件一样审查,
因此,改变的能力是一个diff, 运行时间是用来强制它.
隐形跑步也是有限制的,但严格地说是决定性的, 它的时钟和随机性固定或否定,
所以它的设计是为了重放和缓存;
未限制运行( n)-A)是需要时的逃生舱.
运行时间是从加载器Gro中产生的 已经用于运行任务,配置,和代码gen,
从节点到网络标准.
它的型号,通过导入 没有任何环境, 这就是为什么它是一个新的运行时间 而不是德诺与其他默认.
这是一个在建工程的设计, 并且只限制 fgro eval其内核盒已建至今.
实验建筑运行模块,没有OS的API(没有fs,网络,env,或产卵),尽管 fgro run过程本身还没有被沙盒化 - 看
运行时间文件 为什么它存在,一个页面中的模型, 设计,和路线图,
并收到反馈意见 讨论情况。 。 。 .
节点工具包括:
- (单位:千美元) 任务执行器 运行它的 内建任务 按名称
和一个项目的
*.task.ts模块,按路径组成,以纯类型Script - 备忘, (中文(简体) ), 构建, (中文(简体) ), 测试, (中文(简体) ),
部署,以及 发布 工作流程
为SvelteKit应用程序和库包,
等待 SvelteKit 和 Vite 前端和
@sveltejs/package图书馆 - (单位:千美元) 节点加载器 带有 注册钩
直接运行 TypeScript, JSON 和 SSR'd Svelte 文件(
gro run a.ts, (中文(简体) ), 与最好的shimers为 斯维尔特基特的$app模块 在任务和测试中 - 插件 用于 SvelteKit 的
和其他构建进程,以可选方式配置
gro.config.ts(见 默认配置, (中文(简体) ),fuz_template一个简单的启动器,和fuz_repos用于自定义任务) - 以常规编码
gen - 测试 与
vitest, (中文(简体) ), 与 ESLint 语录 (我还维持)@ryanatkn/eslint-config, (中文(简体) ), 和格式化为tsv - 其模块导出自
src/lib,但根据internal/, (中文(简体) ), 财务报告和审定财务报表 更改 用于版本和更改日志
文档
- 开发网络前端和库
Task运行- 内置 任务 列表
- 测试 与
vitest gen代码生成- 实验 运行时间,怎样
fgro run财务报告和审定财务报表fgro eval今天动手, 联合国 安保模式 编辑 内核备份 在它下面, 怎么样 解析模块 财务报告和审定财务报表 条形样式, (中文(简体) ), 怎么样 比较 到节点、德诺和邦 - 满 文件索引
安装
取决于节点 \ 24.14
典型的使用装置 @fuzdev/gro (英语) 作为 dev 依赖:
npm i -D @fuzdev/gro
npx @fuzdev/gro # note the package is namespaced, don't install `gro`
全球安装也很方便:
npm i -g @fuzdev/gro
gro
使用量
Gro 有个任务运行程序, 运行 TypeScript 模块 .task. 子扩展
具有明确组成的进程.
以名称为主的建筑和以路径为主的项目任务.
运行 gro 在没有参数的情况下打印内建件和用法:
gro # prints the builtins - defers to any local gro installation
builtin tasks:
build build the project
changeset call changeset with gro patterns
check check that everything is ready to commit
clean remove build files, and optionally prune git branches
commit commit and push to a new branch
deploy deploy to a branch
dev start SvelteKit and other dev plugins
format format source files
gen run code generation scripts
lint run eslint
publish bump version, publish to the configured registry, and git push
reinstall refreshes package-lock.json with the latest and cleanest deps
release publish and deploy
run execute a file with the loader, like `node` but works for TypeScript
sync optionally install packages, sync SvelteKit, update `package.json`, and run `gro gen`
test run tests with vitest
typecheck run svelte-check or tsc on the project without emitting any files
upgrade upgrade deps
Run a builtin: gro [name]
View its help: gro [name] --help
Run a project task: gro task [path/to/file.task.ts]
List project tasks: gro task [dir], defaults to src/
一个名字总是意味着一个内建, 所以一个项目任务从来不阴影一个, 和一个路径名 完全一个任务文件, 没有搜索到 :
gro check # runs the builtin `check`
gro check --help # displays docs for the task and its args, works for every task
gro task # lists the project's tasks under `src/`
gro task src/lib/some/ # lists the tasks under `src/lib/some/`
gro task src/lib/some/file.task.ts # runs that task file
Gro 也可以直接运行非任务类型文件Script
与 页:1 gro run 任务 或者说 注册钩数字 :
gro run foo.ts --any args # everything after the path goes to the script verbatim
node --import @fuzdev/gro/register.js foo.ts
或在方案方面:
// myfile.js
import { register } from "node:module";
register("@fuzdev/gro/loader.ts", import.meta.url);
await import("./foo.ts");
格罗有一些内建任务,你可以与CLI一起运行. 学习更多 参见任务文件 财务报告和审定财务报表 生成的任务索引。 。 。 .
gro dev # start developing in watch mode
gro dev -- vite --port 3003 # forward args by separating sections with --
gro build # build everything for production
测试 与 vitest, (中文(简体) ),
包括用于 SvelteKit 模块数字 :
gro test # run all tests for `*.test.ts` files with `vitest`
gro test filepattern1 some.test another.test
gro test optional_pattern -t "optional search string for test name"
gro test -- --forwarded_args 'to vitest' # verbatim, also `-- vitest --forwarded_args`
检查所有的东西:
gro check # does all of the following:
gro typecheck # svelte-check with tsc fallback
gro test # run tests
gro gen --check # ensure generated files are current
gro format --check # ensure everything is formatted
gro lint # eslint
使用示例见 页:1 check.yml CI 配置。 。 。 .
格式化为 tsv数字 :
gro format # format all of the source files using tsv
gro format --check # check that all source files are formatted
编码源为 gen数字 :
gro gen # run codegen for all `*.gen.*` files
gro gen --check # error if any generated files are new or different
部署(另见 src/docs/deploy.md(中文(简体) )
gro deploy # build and push to the `deploy` branch
出版: (另见 src/docs/publish.md(中文(简体) )
gro publish # flush changeset to changelog, bump version, publish to npm, and git push
更多内容:
gro clean # delete all build artifacts from the filesystem
gro clean --sveltekit --nodemodules --git # also deletes dirs and prunes git branches
gro upgrade excluded-dep-1 excluded-dep-2 # npm updates to the latest everything
gro --version # print the Gro version
更多东西 任务索引, (中文(简体) ), 任务特性文件,以及 文档索引。 。 。 .
开发
npm i
npm run bootstrap # build and link `gro` without itself - needed only once
gro build # rebuilds `dist/`, which the linked `gro` CLI runs
gro test # make sure everything looks good - same as `npm test`
gro test some.test another.test
# use your development version of `gro` locally in another project:
npm link -f # points the global `gro` at this checkout, once - `npm run bootstrap` does this too
cd ../otherproject
npm link ../gro # from `otherproject/`
gro build # from `../gro` on changes
Rust 运行时间 crates/ (单位:千美元)文档)以x86 64 Linux为基础.
运行 cargo xtask fetch-v8 因为每个连结
被封存的 V8 存档它下载和验证.
cargo xtask build --release 正在建设 fgro 与它的启动快照,
target/gro_snapshot/release/fgro run file.ts 运行一个模块,
财务报告和审定财务报表 cargo xtask check 每道门都开着 罗斯特和JS两分之一.
功劳🐢🐢
格鲁继续前进 类型脚本 * 妇女 丝绒 * 妇女 斯维尔特基特 * 妇女 维特 * 妇女 维特 * 妇女 乔基达尔 * 妇女 @fuzdev/fuz util (英语) * 妇女 @fuzdev/fuz schema (法语) * 妇女 ESLint 语录 * 妇女 tsv 数据 * 妇女 丝绒检查 打开 更多