@a-source/produce 中文文档教程

发布于 6年前 浏览 29 项目主页 更新于 3年前

Greenkeeper 徽章 构建状态 GitHub 许可证 可维护性”></a> 
  <a href=测试覆盖率”></a> 
  <a href=依赖项 devDependencies Status Known Vulnerabilities

produce

一个命令行实用程序,可帮助您从数字构建微服务的 github 存储库。

pain point

你有一堆不同编程语言的回购协议。 你不想有一个单一的回购。 你想集中构建它们。

install

  1. yarn: yarn global add @a-source/produce
  2. npm: npm i -g @a-source/produce

what it does

  1. produce setup - initializes the build system itself
  2. produce init - initializes all the projects
  3. produce tests - runs all the test commands
  4. produce builds - builds all the projects
  5. produce containers - creates all the containers

what it does not do

希望它永远不会做任何推回 github。 还是应该?

plans

目前,produce 仅在节点项目上以某种方式进行了测试。 接下来,我将在 Rust 项目上对其进行测试。

SYSTEM.js

SYSTEM.js 现在包含命令定义的简单实现。

NB

  1. repository field must use https protocol
  2. the test, build, and containerize commands must be defined to at least contain echo OK > /dev/null
module.exports = {
  jsa: {
    repository: 'https://github.com/a-source/JSA.git',
    commands: {
      init: 'yarn',
      test: 'yarn run test',
      build: 'yarn run build',
      containerize: 'yarn run containerize',
    },
  },
  jsb: {
    repository: 'https://github.com/a-source/JSB.git',
    commands: {
      init: 'yarn',
      test: 'yarn run test',
      build: 'yarn run build',
      containerize: 'yarn run containerize',
    },
  },
  jsc: {
    commands: {
      init: 'yarn',
      test: 'yarn run test',
      build: 'yarn run build',
      containerize: 'yarn run containerize',
    },
  },
};

Greenkeeper badge Build Status GitHub license Maintainability Test Coverage dependencies devDependencies Status Known Vulnerabilities

produce

A command-line utility to help you build your microservices from a number of github repositories.

pain point

You have a bunch of repos in different programming languages. You do not want to have a mono-repo. You want to centrally build them.

install

  1. yarn: yarn global add @a-source/produce
  2. npm: npm i -g @a-source/produce

what it does

  1. produce setup - initializes the build system itself
  2. produce init - initializes all the projects
  3. produce tests - runs all the test commands
  4. produce builds - builds all the projects
  5. produce containers - creates all the containers

what it does not do

It hopefully never does any pushing back to github. Or should it?

plans

For now the produce is somehow tested on node projects only. Further on I will test it on rust projects.

SYSTEM.js

The SYSTEM.js contains for now naïve implementation of commands' definitions.

NB

  1. repository field must use https protocol
  2. the test, build, and containerize commands must be defined to at least contain echo OK > /dev/null
module.exports = {
  jsa: {
    repository: 'https://github.com/a-source/JSA.git',
    commands: {
      init: 'yarn',
      test: 'yarn run test',
      build: 'yarn run build',
      containerize: 'yarn run containerize',
    },
  },
  jsb: {
    repository: 'https://github.com/a-source/JSB.git',
    commands: {
      init: 'yarn',
      test: 'yarn run test',
      build: 'yarn run build',
      containerize: 'yarn run containerize',
    },
  },
  jsc: {
    commands: {
      init: 'yarn',
      test: 'yarn run test',
      build: 'yarn run build',
      containerize: 'yarn run containerize',
    },
  },
};
更多

友情链接

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文