This repository has been archived by the owner on Jan 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
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 #68 from eosdac/v0.4.4_rc1
V0.4.4 rc1
- Loading branch information
Showing
32 changed files
with
529 additions
and
398 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,26 @@ | ||
|
||
const fs = require('fs'); | ||
|
||
//check if extensions folder is present | ||
if (!fs.existsSync("./src/extensions/")) { | ||
throw 'extension folder not found. Add an extensions folder to the member client to proceed.' | ||
} | ||
|
||
const source_file = require('../src/extensions/statics/config/theme.json'); | ||
const target_file = './src/css/themes/custom_theme_colors.styl'; | ||
|
||
let content = '//This file is generated in the pre build script. \n\n'; | ||
|
||
if(source_file){ | ||
Object.keys(source_file.colors).forEach(c => { | ||
content += `${c} = ${source_file.colors[c]}\n`; | ||
}) | ||
} | ||
|
||
fs.writeFile(target_file, content, function(err) { | ||
if(err) { | ||
return console.log(err); | ||
} | ||
|
||
console.log(`The color file ${target_file} is generated!`); | ||
}); |
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
Oops, something went wrong.