mirror of
https://github.com/tiddly-gittly/TidGi-Desktop.git
synced 2025-12-06 02:30:47 -08:00
feat: create tmp folder before use
This commit is contained in:
parent
3d38d37635
commit
f49df85c28
7 changed files with 10 additions and 4 deletions
|
|
@ -1,6 +1,5 @@
|
|||
resources/
|
||||
settings-dev/
|
||||
wiki-dev/
|
||||
out/
|
||||
logs/
|
||||
template/
|
||||
|
|
|
|||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -63,5 +63,4 @@ out/
|
|||
|
||||
# testing and dev temp folders
|
||||
settings-dev/
|
||||
wiki-dev/
|
||||
.dccache
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
"test-without-package": "mkdir -p logs && cross-env NODE_ENV=test cucumber-js",
|
||||
"package": "electron-forge package",
|
||||
"make": "cross-env NODE_ENV=production electron-forge make",
|
||||
"clean": "rimraf ./out ./settings-dev ./wiki-dev ./logs && mkdir \"./wiki-dev\"",
|
||||
"clean": "rimraf ./out ./settings-dev ./logs && cross-env NODE_ENV=development npx ts-node scripts/developmentMkdir.ts",
|
||||
"lint": "eslint ./src --ext js",
|
||||
"lint:fix": "eslint ./src --ext js --fix",
|
||||
"installType": "typesync",
|
||||
|
|
|
|||
4
scripts/developmentMkdir.ts
Normal file
4
scripts/developmentMkdir.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
import fs from 'fs-extra';
|
||||
import { DEFAULT_WIKI_FOLDER } from '../src/constants/paths';
|
||||
|
||||
fs.mkdirpSync(DEFAULT_WIKI_FOLDER);
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
/** Used to store settings during dev and testing */
|
||||
export const developmentSettingFolderName = 'settings-dev';
|
||||
/** Used to place mock wiki during dev and testing */
|
||||
export const developmentWikiFolderName = 'wiki-dev';
|
||||
export const developmentWikiFolderName = 'tiddlygit-dev';
|
||||
export const localizationFolderName = 'localization';
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@
|
|||
"public/**/*.ts",
|
||||
"public/**/*.js",
|
||||
"features/**/*.ts",
|
||||
"scripts/**/*.ts",
|
||||
"src/**/*.d.ts",
|
||||
"public/**/*.d.ts",
|
||||
"./*.json",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"exclude": ["template/**/*.js"],
|
||||
"include": ["src", "features"],
|
||||
"ts-node": {
|
||||
"files": true
|
||||
},
|
||||
"compilerOptions": {
|
||||
"baseUrl": "./",
|
||||
"paths": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue