Update recipes

This commit is contained in:
Aoran Zeng
2025-08-10 18:55:52 +08:00
parent 616b0caa48
commit bef1fc9f26
34 changed files with 67 additions and 113 deletions

View File

@@ -23,7 +23,7 @@ pl_js_bun_prelude (void)
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, "支持项目级配置", "Supports project-level configuration");
chef_allow_local_mode (this, FullyCan, NULL, NULL);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -23,7 +23,7 @@ pl_js_yarn_prelude (void)
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, "支持项目级配置", "Supports project-level configuration");
chef_allow_local_mode (this, FullyCan, NULL, NULL);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -29,15 +29,17 @@ pl_js_group_prelude (void)
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, PartiallyCan, "部分包管理器支持项目级换源", "Some package managers support project-level source changing");
chef_allow_local_mode (this, PartiallyCan,
"支持 npm, yarn v2, pnpm, 不支持 yarn v1"
"Support npm, yarn v2, pnpm, not yarn v1");
chef_allow_english(this);
chef_allow_user_define(this);
def_sources_begin()
{&upstream, "https://registry.npmjs.org/", FeedByPrelude}, /* @note 根据 pnpm 官网,有最后的斜线 */
{&NpmMirror, "https://registry.npmmirror.com", FeedByPrelude},
{&Huawei, "https://mirrors.huaweicloud.com/repository/npm/", FeedByPrelude},
{&Tencent, "https://mirrors.cloud.tencent.com/npm/", FeedByPrelude}
{&upstream, "https://registry.npmjs.org/", FeedByPrelude}, /* @note 根据 pnpm 官网,有最后的斜线 */
{&NpmMirror, "https://registry.npmmirror.com", FeedByPrelude},
{&Huawei, "https://mirrors.huaweicloud.com/repository/npm/", FeedByPrelude},
{&Tencent, "https://mirrors.cloud.tencent.com/npm/", FeedByPrelude}
def_sources_end()
// 29MB 大小
@@ -46,12 +48,12 @@ pl_js_group_prelude (void)
def_target(pl_js_binary_release);
def_target(pl_js_nodejs_binary);
void
pl_js_binary_release_prelude (void)
pl_js_nodejs_binary_prelude (void)
{
use_this(pl_js_binary_release);
use_this(pl_js_nodejs_binary);
chef_set_created_on (this, "2023-09-09");
chef_set_last_updated (this, "2025-07-11");
@@ -60,8 +62,7 @@ pl_js_binary_release_prelude (void)
chef_set_authors (this, 1, "Aoran Zeng", "ccmywish@qq.com");
chef_set_chef (this, NULL, NULL);
chef_set_sous_chefs (this, 0);
chef_set_contributors (this, 1,
"Nul None", "nul@none.org");
chef_set_contributors (this, 0);
chef_allow_get();
chef_allow_set();
@@ -72,13 +73,13 @@ pl_js_binary_release_prelude (void)
chef_allow_user_define(this);
def_sources_begin()
{&upstream, "https://nodejs.org/dist/", FeedByPrelude},
{&NpmMirror, "https://npmmirror.com/mirrors", FeedByPrelude},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/",FeedByPrelude},
{&Bfsu, "https://mirrors.bfsu.edu.cn/nodejs-release/",FeedByPrelude},
{&Ustc, "https://mirrors.ustc.edu.cn/node/",FeedByPrelude},
{&Huawei, "https://mirrors.huaweicloud.com/nodejs/",FeedByPrelude},
{&Tencent, "https://mirrors.cloud.tencent.com/nodejs-release/", FeedByPrelude}
{&upstream, "https://nodejs.org/dist/", FeedByPrelude},
{&NpmMirror, "https://npmmirror.com/mirrors", FeedByPrelude},
{&Tuna, "https://mirrors.tuna.tsinghua.edu.cn/nodejs-release/",FeedByPrelude},
{&Bfsu, "https://mirrors.bfsu.edu.cn/nodejs-release/",FeedByPrelude},
{&Ustc, "https://mirrors.ustc.edu.cn/node/",FeedByPrelude},
{&Huawei, "https://mirrors.huaweicloud.com/nodejs/",FeedByPrelude},
{&Tencent, "https://mirrors.cloud.tencent.com/nodejs-release/", FeedByPrelude}
def_sources_end()
chsrc_set_sources_speed_measure_url_with_postfix (this, "/v23.4.0/node-v23.4.0-linux-x64.tar.xz");

View File

@@ -23,7 +23,7 @@ pl_js_npm_prelude (void)
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, "支持项目级配置", "Supports project-level configuration");
chef_allow_local_mode (this, FullyCan, NULL, NULL);
chef_allow_english(this);
chef_allow_user_define(this);

View File

@@ -29,9 +29,9 @@ pl_js_nvm_prelude (void)
chef_set_note ("nvm does not support Fish", "nvm 不支持 Fish shell");
// 使用 pl_js_binary_release 的源
this->sources = pl_js_binary_release_target.sources;
this->sources_n = pl_js_binary_release_target.sources_n;
// 使用 pl_js_nodejs_binary 的源
this->sources = pl_js_nodejs_binary_target.sources;
this->sources_n = pl_js_nodejs_binary_target.sources_n;
}

View File

@@ -23,7 +23,7 @@ pl_js_pnpm_prelude (void)
chef_allow_set();
chef_allow_reset();
chef_allow_local_mode (this, FullyCan, "支持项目级配置", "Supports project-level configuration");
chef_allow_local_mode (this, FullyCan, NULL, NULL);
chef_allow_english(this);
chef_allow_user_define(this);