@uifabric/build 是私有包吗?
Is @uifabric/build private package?
我想研究一下在我的项目中使用 just-scripts 的可能性。因此,为了获得灵感,我查看了它在 office-ui-react 中的使用。然而,我无法从它的 just.config.json.
中读到多少
const { preset, just } = require('@uifabric/build');
const { chain, task } = just;
preset();
chain('verify-api-extractor').after('build');
我的问题是,@uifabric/build预置函数中是否都是build、test等配置?如果是这样,如果它是 public 包裹?
just-scripts 的作者在这里。我意识到目前可能缺少文档 - 绝对可以在这里使用帮助!
只是脚本 github:https://github.com/microsoft/just
文档:https://microsoft.github.io/just/
我不建议将@uifabric/build作为另一个项目的依赖。我建议人们在 just-scripts 之上构建:
https://github.com/microsoft/just/tree/master/packages/just-scripts/src/task-presets
这些预设都是just-scripts导出的,大家可以随意使用。 task()
可以覆盖已经定义的任务,因此您可以随意覆盖构建、测试等。
我想研究一下在我的项目中使用 just-scripts 的可能性。因此,为了获得灵感,我查看了它在 office-ui-react 中的使用。然而,我无法从它的 just.config.json.
中读到多少
const { preset, just } = require('@uifabric/build');
const { chain, task } = just;
preset();
chain('verify-api-extractor').after('build');
我的问题是,@uifabric/build预置函数中是否都是build、test等配置?如果是这样,如果它是 public 包裹?
just-scripts 的作者在这里。我意识到目前可能缺少文档 - 绝对可以在这里使用帮助!
只是脚本 github:https://github.com/microsoft/just 文档:https://microsoft.github.io/just/
我不建议将@uifabric/build作为另一个项目的依赖。我建议人们在 just-scripts 之上构建:
https://github.com/microsoft/just/tree/master/packages/just-scripts/src/task-presets
这些预设都是just-scripts导出的,大家可以随意使用。 task()
可以覆盖已经定义的任务,因此您可以随意覆盖构建、测试等。