Giter Club home page Giter Club logo

sealdice-js-ext-template's Introduction

SealDice

简介

海豹骰工程代码合并仓库,用于实现全平台自动出包。

使用 git submodule 机制整合以下四个仓库的代码

克隆该项目时需要使用 git clone --recursive 命令以将子模块代码一并拉取。

细节

自动构建

工作流为 auto-build.yml,相关 jobs 功能:

  • commit-num-check:用于检查 24 小时内是否有新 commit,没有则每天自动触发的构建不打包;
  • resources-download:下载资源文件,牌堆、helpdoc、gocghttp 等;
  • gocqhttp-build,gocqhttp-android-build:自动编译所需平台的 gocqhttp,android 端需要使用 NDK;
  • ui-build:ui自动构建;
  • core-build,core-darwin-build,core-android-build:core 的自动构建,分别为 windows&linux macos 和 android;
  • pc-pack:windows & linux & macos 三端的打包,会组装 helpdoc、gocqhttp 等资源文件;
  • android-build:android apk 的打包,目前只打包 debug 版本,也会组装资源文件;
  • clear-temp-artifact:清理产物,保证 artifacts 整洁。

关于 issue 和 pull request

你可以通过 fork 本项目并提交 pull request 的形式贡献代码

sealdice-js-ext-template's People

Contributors

fy0 avatar justanotherid avatar oissevalt avatar szzrain avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

f44r szzrain

sealdice-js-ext-template's Issues

希望可以增加编译更具有可读性JS扩展的编译选项

模板中使用esbuild进行编译的两个npm scripts,编译出来的都是优化过但难以阅读的JS脚本,希望能让发布后的扩展能够具有更好的可读性,以便骰主们对其进行个性化调整以及填写一些必要的key

目前我找到的可以增加可读性的esbuild选项:

  • minify:设置为false,这样可以保留原本的缩进
  • charset:设置为'utf8',这样可以使得字符串不被转义为\u字符串,增加可读性

保留原本的注释也可以增加可读性,但不太清楚如何实现。

或许可以新增一个npm scripts,编译出这种可读性比较高的发布版本。

Bug: 转换输出的插件中的 async 函数无法正常使用

最小复现代码:

let extension = seal.ext.find('async_test');
if (!extension) {
  extension = seal.ext.new('async_test', '檀轶步棋', '4.0.0');
  seal.ext.register(extension);
}

const command = seal.ext.newCmdItemInfo();
command.name = 'async';
command.solve = (ctx, msg, argv) => {
  switch (argv.getArgN(1)) {
    case 'func': {
      func().then((resp) => console.log(resp.status));
      break;
    }
  }
  return seal.ext.newCmdExecuteResult(true);
};
extension.cmdMap['async'] = command;

async function func(): Promise<Response> {
  return await fetch('https://baidu.com');
}

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.