Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Commit

Permalink
update setup script and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
vivaxy committed Oct 22, 2016
1 parent 5d461e8 commit e7d6c66
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

## STRUCTURE

![flowchart](/docs/flowchart.png)
![flowchart](./docs/flowchart.png)

As we find out html are mostly same in react projects, we extract the same html into a template file which lays in `html` folder.

Expand Down Expand Up @@ -59,3 +59,5 @@ Feel free to submit any issue.

- single page support
- eslint for code styles

##
14 changes: 10 additions & 4 deletions scripts/setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,16 @@ const createPackageJSON = async() => {
const createREADME = async() => {
const filename = `./README.md`;
const data = await read(filename);
const data_removed_INITIALIZE = data.replace(/## INITIALIZE.+?#/, '\n#');
const data_removed_CONTRIBUTE = data_removed_INITIALIZE.replace(/## CONTRIBUTE.+?#/, '\n#');
const data_removed_TODO = data_removed_CONTRIBUTE.replace(/## TODO.+?\\n/, '\n');
return await write(filename, data_removed_TODO);
const partsToRemove = [
`INITIALIZE`,
`CONTRIBUTE`,
`TODO`,
];
let data_removed = data;
partsToRemove.forEach((part) => {
data_removed = data_removed.replace(new RegExp(`## ${part}.+?##`), `\n##`);
});
return await write(filename, data_removed);
};

const createCHANGELOG = async() => {
Expand Down

0 comments on commit e7d6c66

Please sign in to comment.