Recommendations for configuring the environment to optimize the speed of Assembly of EmberJS applications.
Guidelines for choosing operating systems to ember-cli
If it is possible to choose the operating system on which to build ember applications, it is recommended to use one of the modern Linux distributions. In this operating system the build is running as quickly as possible due to the peculiarities of the file system (Istochnik).
Recommendations for setting up the environment to build under Microsoft Windows
If a project build takes more than 1-3 minutes, then try to use the following recommendations.
- You should add the directory with the projects in EmberJS in the exceptions to Windows Defender or any other antivirus. During Assembly are handled tens of thousands of small js files.
- For a directory with projects in EmberJS disable indexing. In the properties of the directory
Общие
->Атрибуты
->Другие
->Атрибуты indexing and архивации
-> clear the checkboxРазрешить to index the contents of files in this folder in addition to the properties файла
. - It is recommended to use the console with administrator privileges. In the console with administrator rights supports symbolic links (symlink), which gives a significant speed boost in the Assembly.
- It is recommended to use SSD instead of HDD, including the cache folder with npm, yarn, bower. In the case of using
npm link
oryarn link
make sure that all the files participating in the build will be on the SSD. - You can configure a RAM-Disk for devices without SSD, but with enough RAM.
- To disable testing (tests: false) and checking coding style (code style) (hinting: false) when you build your app. To do this in ember-cli-build. In testing during Assembly there is no particular need, and because of the large code base takes significant amount of time. To run a test is clearly the team
ember test
. - As a measure, which somehow works - delete folders
node_modules
andtmp
and fileyarn.lock
, and then reinstall the packages and build the application (source). Deletion of foldertmp
true for versions < 2.13 (not sure), in older she is cleared. - To perform that your particular project will take the maximum time during Assembly and to try to overcome this particular problem. The long build time is not even a sentence, but an interesting technical challenge!
Additional materials
- Windows support - Appendix - the Ember CLI Guides
- Tips for improving build time of large apps
- How we speed up testing and building process of our brand new Ember app at? ~2.5 x faster!
- Build performance
- How we cut down our build time ember?
- Ember performance tweaks: Optimising build timelines & bundle size