리펙토링: Node.js 프로젝트 폴더 구조 적용
This commit is contained in:
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
"name": "photo-renamer",
|
"name": "photo-renamer",
|
||||||
"version": "2.0.0",
|
"version": "2.0.0",
|
||||||
"description": "사진 파일 이름 정리 앱",
|
"description": "사진 파일 이름 정리 앱",
|
||||||
"main": "src/main.js",
|
"main": "src/main/index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "electron .",
|
"start": "electron .",
|
||||||
"build": "electron-builder --mac --dir",
|
"build": "electron-builder --mac --dir",
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ function createWindow() {
|
|||||||
show: false,
|
show: false,
|
||||||
});
|
});
|
||||||
|
|
||||||
mainWindow.loadFile(path.join(__dirname, 'index.html'));
|
mainWindow.loadFile(path.join(__dirname, '../renderer/index.html'));
|
||||||
|
|
||||||
mainWindow.once('ready-to-show', () => {
|
mainWindow.once('ready-to-show', () => {
|
||||||
mainWindow.show();
|
mainWindow.show();
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { state } from './state.js';
|
import { state } from './state.js';
|
||||||
import * as pinchZoom from './handlers/pinchZoom.js';
|
import * as pinchZoom from './handlers/pinch-zoom.js';
|
||||||
import * as selection from './handlers/selection.js';
|
import * as selection from './handlers/selection.js';
|
||||||
import * as dragDrop from './handlers/dragDrop.js';
|
import * as dragDrop from './handlers/drag-drop.js';
|
||||||
|
|
||||||
// ── DOM ──────────────────────────────────────────────
|
// ── DOM ──────────────────────────────────────────────
|
||||||
const grid = document.getElementById('grid');
|
const grid = document.getElementById('grid');
|
||||||
Reference in New Issue
Block a user