Skip to content

adopted-ember-addons/ember-cli-windows

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automatically Configure Windows for Ember Cli Performance

npm version dependencies Dramatically improve build speed during ember build and ember serve!

Ember and Ember Cli are some of the best tools for the development of sophisticated web applications. A lot of its magic is in the automatic build tool, which also allows for incremental builds during development. Those builds can be a bit slow on Windows - correct configuration of Windows Defender and the Windows Search Index improve the speed dramatically. Made with ❤️ by Microsoft.

To optimize speed for a project, use Powershell to run the following from the root of your Ember Cli project:

npm install ember-cli-windows -g
ember-cli-windows

Parameters and Configuration

Usage:

ember-cli-windows [options]

If you run ember-cli-windows without any parameters, it will first prompt for confirmation, and then automatically configure Windows Defender and Windows Search for the current directory.

Options:

-h, --help      Output usage information
-V, --version   Output the version number
-D, --defender  Configure Windows Defender
-S, --search    Configure Windows Search
-H, --headless  Run without prompting for confirmation

Should you get a PSSecurityException, allow your PowerShell to execute the script by running the following command from an elevated PowerShell. To run PowerShell as Administrator, click Start, search for PowerShell, right-click PowerShell and select Run as Administrator.

Set-ExecutionPolicy Unrestricted -scope Process
ember-cli-windows

Run Ember Cli as Administrator

Additional performance can be gained by using an elevated prompt, which can be achieved by starting PowerShell or CMD ‘as Administrator’. If you do not have administrative rights on your machine, see the Ember Cli section on symlinks for information on how to enable additional performance gains.

Ember Addon

This tool is also available as an Ember Addon, allowing you to ship the 'optimizing for Windows' capabilities with your project. For more information, check out the addon here.

Requirements

Windows 8, Windows 8.1 or Windows 10 heavily recommended. This script still works on Windows 7, thanks to a small hack by Benjamin Schuedzig.

License

MIT License, Copyright 2015 Felix Rieseberg & Microsoft. See LICENSE for more information.