-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathinit.js
More file actions
24 lines (14 loc) · 611 Bytes
/
init.js
File metadata and controls
24 lines (14 loc) · 611 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const fs = require('fs');
console.log('➡️ Deleting file: index.html');
fs.unlinkSync('./src/index.html');
console.log('✔️ Deleted file: index.html');
console.log('➡️ Renaming file: theme.html to index.html');
fs.renameSync('./src/theme.html', './src/index.html')
console.log('✔️ Renamed file: theme.html to index.html');
console.log('➡️ Changing content of README.md');
fs.writeFileSync('./README.md',
`# Your theme name
## Credits
Generated using [Bootstrap theme kit](https://shhdharmen.github.io/bootstrap-theme-kit/);
`);
console.log('✔️ Changed content of README.md');