Skip to content

Commit

Permalink
Move some deps to dev deps so they're not included in package
Browse files Browse the repository at this point in the history
electron-packager excludes devDependencies. Also, not even using csv-generate.
  • Loading branch information
cheshire137 committed Jul 16, 2018
1 parent 0715f1a commit 8ca5a1b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,10 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"csv-generate": "^2.0.2",
"csv-parse": "^2.5.0",
"csv-stringify": "^3.1.1",
"electron-log": "^2.2.16",
"nedb": "^1.8.0",
"react": "^16.4.1",
"react-click-outside": "^3.0.1",
"react-dom": "^16.4.1",
"react-scripts": "1.1.4"
"nedb": "^1.8.0"
},
"bugs": {
"url": "https://github.com/cheshire137/competiwatch-desktop/issues"
Expand All @@ -35,6 +30,10 @@
"electron-packager": "^12.1.0",
"foreman": "^3.0.1",
"ionicons": "^4.2.4",
"primer": "^10.7.0"
"primer": "^10.7.0",
"react": "^16.4.1",
"react-click-outside": "^3.0.1",
"react-dom": "^16.4.1",
"react-scripts": "1.1.4"
}
}
2 changes: 1 addition & 1 deletion src/electron-database.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const Datastore = require('nedb')
const path = require('path')
const { ipcMain, app } = require('electron')
const log = require('electron-log')
const Datastore = require('nedb')

const databases = {}
const env = process.env.ELECTRON_START_URL ? 'development' : 'production'
Expand Down
2 changes: 1 addition & 1 deletion src/electron-starter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const path = require('path')
const { app, BrowserWindow } = require('electron')
const url = require('url')
const path = require('path')
require('./electron-database')

// Keep a global reference of the window object, if you don't, the window will
Expand Down
1 change: 0 additions & 1 deletion src/models/Database.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Datastore from 'nedb'
import path from 'path'

const { ipcRenderer, remote } = window.require('electron')
Expand Down

0 comments on commit 8ca5a1b

Please sign in to comment.