-
Notifications
You must be signed in to change notification settings - Fork 277
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #66 from pawelmalak/feature
v1.6 Release
- Loading branch information
Showing
7 changed files
with
53 additions
and
27 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
REACT_APP_VERSION=1.5.2 | ||
REACT_APP_VERSION=1.6.0 |
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
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,22 @@ | ||
const fs = require('fs'); | ||
const { join } = require('path'); | ||
const Logger = require('./Logger'); | ||
const logger = new Logger(); | ||
|
||
// Check if flame.css exists in mounted docker volume. Create new file if not | ||
const findCss = () => { | ||
const srcPath = join(__dirname, '../data/flame.css'); | ||
const destPath = join(__dirname, '../public/flame.css'); | ||
|
||
if (fs.existsSync(srcPath)) { | ||
fs.copyFileSync(srcPath, destPath); | ||
logger.log('Custom CSS file found'); | ||
return; | ||
} | ||
|
||
logger.log('Creating empty CSS file'); | ||
fs.writeFileSync(destPath, ''); | ||
|
||
} | ||
|
||
module.exports = findCss; |