Create .nojekill file
This commit is contained in:
parent
69041349a3
commit
3f1235f68a
|
@ -14,6 +14,8 @@ function main() {
|
|||
parseIndex()
|
||||
console.log('Creating root directory...')
|
||||
createRootDirectory()
|
||||
console.log('Creating .nojekill...')
|
||||
createNoJekillFile()
|
||||
console.log('Generating index.m3u...')
|
||||
generateIndex()
|
||||
console.log('Generating index.country.m3u...')
|
||||
|
@ -39,6 +41,10 @@ function createRootDirectory() {
|
|||
helper.createDir(ROOT_DIR)
|
||||
}
|
||||
|
||||
function createNoJekillFile() {
|
||||
helper.createFile(`${ROOT_DIR}/.nojekyll`)
|
||||
}
|
||||
|
||||
function parseIndex() {
|
||||
const root = helper.parsePlaylist('index.m3u')
|
||||
|
||||
|
|
|
@ -104,7 +104,7 @@ helper.appendToFile = function(filename, data) {
|
|||
fs.appendFileSync(path.resolve(__dirname) + '/../' + filename, data)
|
||||
}
|
||||
|
||||
helper.createFile = function(filename, data) {
|
||||
helper.createFile = function(filename, data = '') {
|
||||
fs.writeFileSync(path.resolve(__dirname) + '/../' + filename, data)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue