Task #325
closedLong build with browserify
100%
Description
After upgrade react and draft-js, is very slow build with browserify. Try to found cause.
Updated by Ondřej Kopr about 7 years ago
- Found different version between dpency of actual app package.json and version of depency react-draft-wysiwyg. (immutable, classnames and react),
- try to downgrade react, draft-js, react-draft-wysiwyg - build local about ~4 min (without BE test),
- build local without react-draft-wysiwyg and old version of react - build local ~4min (without BE test).
Solution: react upgrade to newest version, older version of draft js and react draft and upgrade immutable, classnames.
There is still found some unmet dependency (fix in another task):
npm WARN deprecated gulp-minify-css@1.2.1: Please use gulp-clean-css npm WARN deprecated react-tools@0.13.3: react-tools is deprecated. For more information, visit https://fb.me/react-tools-deprecated npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated node-uuid@1.4.7: use uuid module instead npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated graceful-fs@1.2.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. npm WARN deprecated CSSselect@0.4.1: the module is now available as 'css-select' npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what' npm WARN deprecated jade@1.11.0: Jade has been renamed to pug, please install the latest version of pug instead of jade npm WARN deprecated graceful-fs@2.0.3: graceful-fs v3.0.0 and before will fail on node releases >= v7.0. Please update to graceful-fs@^4.0.0 as soon as possible. Use 'npm ls graceful-fs' to find it in the tree. npm WARN deprecated transformers@2.1.0: Deprecated, use jstransformer
local build ~4min (without BE test),
TODO: jenkins build ~ (with BE test)
Build FE on jenkins show error with dependency: [ERROR] (node:2899) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Updated by Ondřej Kopr about 7 years ago
- % Done changed from 0 to 60
Build with maven : mvn clean install -PfullApp -Dmaven.test.skip=true
Local build fullApp without changed in package json:
[INFO] [11:05:09] Finished 'browserify' after 3.17 min
Local build fullApp with changed in package json:
[INFO] [11:25:42] Finished 'browserify' after 12 min
Jenkins still build browserify about ~24min.
Found problem with uglify version:
https://github.com/mishoo/UglifyJS2/issues/917
https://github.com/mishoo/UglifyJS2/pull/1024
Finish build time:
[INFO] [14:48:57] Finished 'browserify' after 1.77 min
Upgrade dependency see commit:
after upgrading is in build some deprechadec dependcy like:minimatch@2.0.10, node-uuid@1.4.7, minimatch@0.2.14, graceful-fs@1.2.3...
Updated by Ondřej Kopr about 7 years ago
- Status changed from New to Closed
New browserify working fine. Jenkins still build FE 3 times.