Hi,

On Thu, Mar 28, 2019 at 6:41 PM Justin Mclean <[email protected]> wrote:
>
> Hi,
>
> >> * the test file would not show up when an Apache Dubbo user uses Dubbo 'in 
> >> production'?
> >
> > No, they won't show up when use in production, either a user compile
> > from source code or download the binary distribution.
>
> Sadly this is not the case. In unzipped src distribution if I run `mvn 
> compile` and then do this `find . -name "idleness.txt”` I get this result:
>
> ./dubbo-admin-ui/node_modules/wordwrap/test/idleness.txt
> ./dubbo-admin-ui/node_modules/cliui/node_modules/wordwrap/test/idleness.txt

Those are just intermediate files, but they don't go into executable binaries.
If you run `mvn clean packge`, and go to
dubbo-admin-distribution/target, you will find dubbo-admin-0.2.0.jar,
which is the executable binary file.
If you run `tar -xf dubbo-admin-0.2.0.jar`, and do `find . -name
"idleness.txt”`, you will find nothing.
Even if you run `grep -rin "In Praise of Idleness" .`, there is nothing matched.

If you go to check the source code[1], you will find webpack and
eslint are both listed in the devDependency section.
According to [2], the devDependencies won't go into production.

[1] 
https://github.com/apache/incubator-dubbo-admin/blob/0.2.0/dubbo-admin-ui/package.json#L27
[2] 
https://docs.npmjs.com/specifying-dependencies-and-devdependencies-in-a-package-json-file


>
> Those files contain In Praise of Idleness by Bertrand Russell.


>
> Thanks,
> Justin
>


--
Best Regards!
Huxing

Reply via email to