-
Notifications
You must be signed in to change notification settings - Fork 868
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup post-init script and upgrade configuration usage
* executable post init script * post init script with instructions and copy configuration file * change instruction according to the new post init script
- Loading branch information
Showing
7 changed files
with
25 additions
and
14 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 |
---|---|---|
@@ -1,3 +1,25 @@ | ||
#!/usr/bin/env node | ||
|
||
console.log("This is post init script"); | ||
const fs = require('fs') | ||
fs.copyFile('src/Config/index.example.js', 'src/Config/index.js', (err) => { | ||
if (err) throw err; | ||
console.log('src/Config/index.example.js was copied to src/Config/index.js'); | ||
}); | ||
|
||
console.log("TheCodingMachine React-Native Boilerplate initialized with success !"); | ||
console.log("" + | ||
" .-` `:: \n" + | ||
" `///////////// `/shhhy+- ://. /sy/ /ss/ :NMN: \n" + | ||
" `sssssyhhhyhhy:` `yMMMMNNMMMd. osss: `hMMMh- .-` `+ss: +MMm/. \n" + | ||
" :MMM+----. `mMMm+:-`.oo/` osssyo` `dMMMMh- ohhh- `oyy+- sMMd/. \n" + | ||
" :MMM+` oMMN/- osssyhs`.mMMMMMh- -hds` .syy+- `hMMh:` \n" + | ||
" :MMM+` hMMd: oss-ohhhMMMhdMMh- `. +NNm/. .dMMy:` \n" + | ||
" :MMM+` oMMN/ oss-`shdMMd:dMMh- :-` sMMd/. -NMMo- \n" + | ||
" :MMM+` `mMMm/` `/+:. oss- `sdMd:.hMMh- hMys- `hMMh:` -hdy-` \n" + | ||
" :MMM+` `yMMMMdssss+ oss. `oh/- hMMh- -hyo: dMMs:` -ss+` \n" + | ||
" .oys:` .+yhyo/- -::` `` -syo- ..` +mo- `// \n" + | ||
" `` ``` `` `. ") | ||
|
||
console.log('- If you need to read more about this boilerplate : https://thecodingmachine.github.io/react-native-boilerplate/') | ||
console.log('- If you have some troubles : https://github.com/thecodingmachine/react-native-boilerplate/issues') | ||
console.log('- If you love this boilerplate, give us a star, you will be a ray of sunshine in our lives :) https://github.com/thecodingmachine/react-native-boilerplate') |
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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.