Create /tmp directory

This commit is contained in:
Aleksandr Statciuk 2023-04-30 05:16:45 +03:00
parent 3f5b98de81
commit fa47e80a8f
5 changed files with 4 additions and 6 deletions

2
scripts/.gitignore vendored
View file

@ -1,2 +0,0 @@
/logs/
/database/

View file

@ -1,7 +1,7 @@
const _ = require('lodash') const _ = require('lodash')
const file = require('./file') const file = require('./file')
const DATA_DIR = process.env.DATA_DIR || './scripts/data' const DATA_DIR = process.env.DATA_DIR || './scripts/tmp/data'
class API { class API {
constructor(filepath) { constructor(filepath) {

View file

@ -1,7 +1,7 @@
const nedb = require('nedb-promises') const nedb = require('nedb-promises')
const file = require('./file') const file = require('./file')
const DB_DIR = process.env.DB_DIR || './scripts/database' const DB_DIR = process.env.DB_DIR || './scripts/tmp/database'
class Database { class Database {
constructor(filepath) { constructor(filepath) {

View file

@ -4,7 +4,7 @@ const logger = require('./logger')
const file = require('./file') const file = require('./file')
const PUBLIC_DIR = process.env.PUBLIC_DIR || '.gh-pages' const PUBLIC_DIR = process.env.PUBLIC_DIR || '.gh-pages'
const LOGS_DIR = process.env.LOGS_DIR || 'scripts/logs/generators' const LOGS_DIR = process.env.LOGS_DIR || 'scripts/tmp/logs/generators'
const generator = {} const generator = {}

View file

@ -1,2 +1,2 @@
* *
!.gitignore !.gitignore