Skip to content

Commit

Permalink
create folder on initialization (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
foxriver76 authored Dec 19, 2023
1 parent 5e560b4 commit dd8ae3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ Set process.env.JS_CONTROLLER_VERSION to version e.g. `5.0.5-alpha.0-20230617-46

## Changelog
<!-- ### **WORK IN PROGRESS** -->
### **WORK IN PROGRESS**
* (foxriver76) create folder on initialization

### 1.0.8 (2023-12-19)
* (foxriver76) use hardcoded appName instead of inference with a heuristic approach

Expand Down
4 changes: 2 additions & 2 deletions setup.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ initialize();
function initialize() {
pkg = require(`${rootDir}package.json`);
pkg.main = pkg.main || 'main.js';

!fs.existsSync(`${rootDir}tmp`) && fs.mkdirSync(`${rootDir}tmp`);
}

/** Lowercase application name */
Expand Down Expand Up @@ -106,8 +108,6 @@ function copyFolderRecursiveSync(source, target, ignore) {
}
}

!fs.existsSync(`${rootDir}tmp`) && fs.mkdirSync(`${rootDir}tmp`);

async function storeOriginalFiles() {
console.log('Store original files...');
const dataDir = `${rootDir}tmp/${appName}-data/`;
Expand Down

0 comments on commit dd8ae3e

Please sign in to comment.