forked from a2call/react-boilerplate
-
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.
fix(commands): Fix 'npm run clean' breaking (react-boilerplate#1185)
Added a constants.js file to templates that contains the DEFAULT_LOCALE export to be added to containers/App/constants on 'npm run clean'.
- Loading branch information
Showing
2 changed files
with
14 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/* | ||
* AppConstants | ||
* Each action has a corresponding type, which the reducer knows and picks up on. | ||
* To avoid weird typos between the reducer and the actions, we save them as | ||
* constants here. We prefix them with 'yourproject/YourComponent' so we avoid | ||
* reducers accidentally picking up actions they shouldn't. | ||
* | ||
* Follow this format: | ||
* export const YOUR_ACTION_CONSTANT = 'yourproject/YourContainer/YOUR_ACTION_CONSTANT'; | ||
*/ | ||
|
||
export const DEFAULT_LOCALE = 'en'; |