This repository has been archived by the owner on Dec 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/material-components/mater…
…ial-components-web-react into fix/list/allow-alternate-tags * 'master' of https://github.com/material-components/material-components-web-react: docs(menu-surface): open state & ref errors (material-components#412) fix(text-field): allow for input isValid override (material-components#374) feat(list): Add List Group and List Group Subheader (material-components#386) fix(top-app-bar): allow react elements in title (material-components#376) docs: update main component manifest on main Readme (material-components#394) docs: update roadmap (material-components#396) docs: Add web survey link in readmes (material-components#402) docs: update main README with CRA2 guidelines (material-components#393)
- Loading branch information
Showing
41 changed files
with
604 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Adding Environment Variables | ||
|
||
Environment variables are a great way to molding your developer environment your own. You can create alias's or variables that you can refer to in your command line. In our case, it's useful for configuring `create-react-app` to work with our Sass modules. To permanently set your `SASS_PATH` environment follow the instructions below: | ||
|
||
## Windows | ||
|
||
#### Using SETX | ||
|
||
Windows is straightforward and requires just one command. | ||
|
||
Open command line terminal, and enter the following: | ||
|
||
```bat | ||
SETX SASS_PATH .\node_modules | ||
``` | ||
|
||
> _NOTE:_ Be sure to close that terminal and open a new one for the new settings to take effect. | ||
## Mac OS X | ||
|
||
#### Open your `bash_profile` | ||
You can add an environment variable to your system by updating your `~/.bash_profile`. Open a terminal window and follow these steps: | ||
|
||
```sh | ||
vi ~/.bash_profile # you can use your favorite text editor here (nano, vim, etc.) | ||
``` | ||
|
||
If you already have one that exists, it might have properties that look like text below. If it does, you're probably in the right place. | ||
|
||
```sh | ||
source ~/.nvm/nvm.sh | ||
|
||
export CLICOLOR=1 | ||
export LSCOLORS=ExFxBxDxCxegedabagacad | ||
|
||
alias ls='ls -GFh' | ||
``` | ||
|
||
#### Add the new environment variable | ||
|
||
To add a new environment variable add the following line: | ||
|
||
```sh | ||
source ~/.nvm/nvm.sh | ||
|
||
export CLICOLOR=1 | ||
export LSCOLORS=ExFxBxDxCxegedabagacad | ||
|
||
alias ls='ls -GFh' | ||
|
||
export SASS_PATH=./node_modules # !add this line! | ||
``` | ||
|
||
Save and exit from the file. | ||
|
||
#### Source your updated `bash_profile` | ||
|
||
Open new terminal window for these settings to take effect. | ||
|
||
If you want to keep the same terminal, source your `bash_profile` with the following: | ||
|
||
```sh | ||
source ~/.bash_profile | ||
``` | ||
|
||
## Linux | ||
|
||
Linux is pretty similar to Mac OS X if you're familiar with that operating system. The steps are identical, with the exception that your environment configuration lives in the `~/.bashrc` file. | ||
|
||
|
||
|
||
You can add an environment variable to your system by updating your `~/.bash_profile` (on OS X) or `~/.bashrc` (on Linux). If you're on Windows please read |
Oops, something went wrong.