Examplesįorks of this project demonstrate how to extend and integrate with other libraries: You may use it to learn how to extend this seed for your own use cases or use the advanced seed if your project needs those features. Electron cross platform desktop apps (Mac, Windows and Linux).NativeScript cross platform mobile (w/ native UI) apps.lodash Helps reduce blocks of code down to single lines and enhances readability.Can be changed to any vendor, learn more here.When using the seed, be sure to change your write_key here.angulartics2 Vendor-agnostic analytics for Angular applications.Up to you and your team how you want to utilize it.ngrx/effects Side effect model for ngx-translate for i18n.ngrx/store RxJS powered state management, inspired by Redux.Advanced Seed OptionĪn advanced option to this seed exists here which mirrors the latest changes here but adds core support for: Please see the CONTRIBUTING file for guidelines. You can learn more about Protractor Interactive Mode here Contributing # e2e live mode - Protractor interactive mode # Instead of last command above, you can use: end-to-end, integration) - In three different shell windows # Make sure you don't have a global instance of Protractor # Make sure you do have Java in your PATH (required for webdriver) # npm install webdriver-manager <- Install this first for e2e testing # npm run webdriver-update <- You will need to run this the first time # code coverage (istanbul) # auto-generated at the end of `npm test` # view coverage report: # You can raise the maximum of file descriptors by running the command below: # Some OS have a small limit of opened file descriptors (256) by default # and will result in the EMFILE error. # NB: The command above might fail with a "EMFILE: too many open files" error. Your app will be watched by karma # on each change all your specs will be executed. Put i18n attribute to your html tag to mark it for translation, more information here: Create a translation source file This means you can use them and/or require dependencies that use them without any issues. During a production build, CommonJs modules will be automatically converted to ES6 modules.This includes third-party dependencies: if one is published in both UMD and ES6 modules, go with the ES6 modules version. For best results, prefer ES6 modules whenever possible. UMD modules result in code that cannot be properly optimized.Special attention should be given to RxJs, which makes heavy use of non-static/side-effectful imports: make sure you only add the operators you use, as any added operators will be included in your final production bundle. For this reason, even though tree-shaking is taking place the developer still needs to be careful not to include non-static imports that are unnecessary, as those referenced imports will always end up in final bundle. Beware of non-static/side-effectful imports.During the tree-shaking process Rollup statically analyses your code, and your dependencies, and includes the bare minimum in your bundle. Your project will be compiled ahead of time (AOT), and then the resulting bundle will be tree-shaken and minified. # prod build with AoT compilation and Rollup tree-shaking, will output the production application in `dist/prod` # the produced code can be deployed (rsynced) to a remote server Here is how to speed-up the build on Windows. Note that this seed project requires node v4.x.x or higher and npm 2.14.7 but in order to be able to take advantage of the complete functionality we strongly recommend node >=v6.5.0 and npm >=3.10.3. Provides full Docker support for both development and production environment.
0 Comments
Leave a Reply. |