-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix!: mv dist/
and testTmp/
to .scaffold/
, cache test lib, drop config.test.port
#71
Conversation
这个的目的是啥,有点不太了解。因为报错信息会来自编译后的测试文件,有时候会需要翻编译后的源码来对照,放得太深可能不是很方便,node_modules下面东西太多了。另外
是的 其他感觉挺好 |
为了后面做reload。 那要不项目根目录建一个 .scaffold ? |
感觉可以,不过build仍然可以单独有一个设置项,可以允许和其他的分开,这样不会影响现有的项目 |
是的,config.dist 这个配置仍然保留,只是默认值从 build 修改为 .scaffold/build,如果用户使用 scaffold 提供的 serve、build、release 流程,应该不会有任何影响。 如果用户自行实现发布流程,需要修改 xpi/updatejson的路径。 |
dist/
and testTmp/
to .scaffold/
, cache test lib, drop config.test.port
把 test 产生的各种文件都移到了 后面可以考虑把 Zotero 的 stdout/stderr 也写到 由于目前所有用 Scaffold 的都是从模板生成的,模板里面默认设置了 config.dist=build ,所以这次修改理论上不会影响任何用户。 如果用户要手动修改为默认值,那可能需要把 esbuild 的 output 里也要对应修改一下。 Tester 的 --watch and reload 计划之后再做,不在这个 PR 的范围里了,想看看能怎么更好地把 serve 里的代码复用起来。 如果这个 PR 的修改没有其他问题我们就合并? |
… config.test.port (#71) * fix: move testPluginDir out build, use user's mocha.js, cache chai.js * fix!: mv paths of `dist` and `test` to `.scaffold`, ensure gitignore * chore: clean code
ref: #66
Tasks
Changes
.scaffold
for now.content/units
, and introduced inindex.xhtml
in order.Breaking Changes
build
to.scaffold/build
.