This repository has been archived by the owner on Jul 24, 2019. It is now read-only.
forked from facebook/create-react-app
-
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.
- Loading branch information
Showing
50 changed files
with
701 additions
and
227 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
DEVELOPMENT: 'development', | ||
PRODUCTION: 'production', | ||
STAGING: 'staging', | ||
INDEPENDENT: 'independent', | ||
}; |
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,6 @@ | ||
'use strict'; | ||
|
||
var enzyme = require('enzyme'); | ||
var Adapter = require('enzyme-adapter-react-16'); | ||
|
||
enzyme.configure({ adapter: new Adapter() }); |
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,27 @@ | ||
'use strict'; | ||
|
||
const envs = require('./envs'); | ||
|
||
const paths = { | ||
buildPath: 'dist', | ||
publicPath: false, | ||
appIndexJs: 'src/index.full', | ||
}; | ||
|
||
switch (process.env.BMR_ENV) { | ||
case envs.PRODUCTION: | ||
paths.publicPath = 'https://storage.googleapis.com/beamery/'; | ||
break; | ||
case envs.STAGING: | ||
paths.buildPath = '../app-bath/dist'; | ||
break; | ||
case envs.DEVELOPMENT: | ||
paths.buildPath = '../app-bath/dev'; | ||
break; | ||
case envs.INDEPENDENT: | ||
default: | ||
paths.appIndexJs = 'src/index'; | ||
break; | ||
} | ||
|
||
module.exports = paths; |
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,16 @@ | ||
'use strict'; | ||
|
||
const paths = require('../paths'); | ||
const appPackageJson = require(paths.appPackageJson); | ||
|
||
// Use the `package.json` app name to simplify setup. | ||
const appName = appPackageJson.name; | ||
process.env.BMR_APP_NAME = appName; | ||
|
||
module.exports = { | ||
// Webpack allows us to define a path in sources. This can be useful for | ||
// debugging against other applications. | ||
devtoolRoot: appName ? appName + ':///' : '', | ||
// This prefix is not used for `independent` builds. | ||
filenamePrefix: appName ? appName : 'APP-NAME-UNDEFINED', | ||
}; |
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
Oops, something went wrong.