This repository has been archived by the owner on Jul 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #20 from bersLucas/2.0.0-alpha
2.0.0 version
- Loading branch information
Showing
34 changed files
with
2,427 additions
and
321 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,68 @@ | ||
dist | ||
.idea | ||
.idea/* | ||
*.css | ||
*.css.map | ||
i | ||
|
||
*.map | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
*.DS_Store | ||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
*.DS_Store | ||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
i/Bookseries1/.DS_Store | ||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
|
||
# Typescript v1 declaration files | ||
typings/ | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next |
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,36 @@ | ||
const fs = require('fs'); | ||
const rootFolder = process.argv[2]; | ||
let booklist = fs.readdirSync(rootFolder); | ||
|
||
let books = []; | ||
|
||
booklist.forEach(book => { | ||
let bookData = fs.readFileSync(`${rootFolder}/${book}/data.txt`) | ||
.toString() | ||
.split('\n'); | ||
|
||
let bookObj = { | ||
folder: `../${rootFolder}/${book}`, | ||
name: bookData[0], | ||
kanji: bookData[1], | ||
author: bookData[2], | ||
TL: bookData[3], | ||
BG: bookData[4], | ||
BBG: bookData[5] | ||
}; | ||
|
||
bookObj.chapters = fs.readdirSync(`${rootFolder}/${book}`) | ||
.filter(chapter => { | ||
return fs.lstatSync(`${rootFolder}/${book}/${chapter}`).isDirectory() | ||
}); | ||
|
||
books.push(bookObj); | ||
}); | ||
|
||
fs.writeFile('./BOOKLIST.js', 'var books = '+JSON.stringify(books), err => { | ||
if (err){ | ||
return console.log('Unable to generate booklist file\n' + err) | ||
} else { | ||
console.log('Booklist generated!\nRun \'yarn run build\' next'); | ||
} | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.