mirror of
https://github.com/johannesjo/super-productivity.git
synced 2026-07-30 03:00:57 +00:00
setup most basic build for electron
This commit is contained in:
parent
7d7701b6b6
commit
2f7dad0647
5 changed files with 27 additions and 9 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -9,4 +9,6 @@ app/styles/**/*.css.map
|
|||
.sass-cache
|
||||
bower_components
|
||||
app/bower_components
|
||||
dist
|
||||
build
|
||||
*.log
|
||||
|
|
|
|||
|
|
@ -1,7 +1,9 @@
|
|||
{
|
||||
"name": "superProductivity",
|
||||
"version": "0.0.0",
|
||||
"authors": [],
|
||||
"authors": [
|
||||
"Johannes Millan <contact@super-productivity.com> (http://super-productivity.com)"
|
||||
],
|
||||
"license": "none",
|
||||
"private": true,
|
||||
"ignore": [
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
|
|
@ -5,6 +5,8 @@ const powerSaveBlocker = require('electron').powerSaveBlocker;
|
|||
const moment = require('moment');
|
||||
const open = require('open');
|
||||
const CONFIG = require('./CONFIG');
|
||||
const IMAGE_FOLDER = __dirname + '/assets/img/';
|
||||
|
||||
const idle = require('./idle');
|
||||
const jira = require('./jira');
|
||||
|
||||
|
|
@ -74,7 +76,7 @@ app.on('window-all-closed', function () {
|
|||
|
||||
let appIcon = null;
|
||||
app.on('ready', () => {
|
||||
appIcon = new electron.Tray('electron/ico.png');
|
||||
appIcon = new electron.Tray(IMAGE_FOLDER + 'ico.png');
|
||||
let contextMenu = electron.Menu.buildFromTemplate([
|
||||
{
|
||||
label: 'Show App', click: () => {
|
||||
|
|
@ -119,7 +121,6 @@ app.on('ready', () => {
|
|||
setInterval(trackTimeFn, CONFIG.PING_INTERVAL);
|
||||
});
|
||||
|
||||
|
||||
// listen to events from frontend
|
||||
electron.ipcMain.on('SHUTDOWN', () => {
|
||||
app.isQuiting = true;
|
||||
|
|
|
|||
25
package.json
25
package.json
|
|
@ -1,16 +1,31 @@
|
|||
{
|
||||
"name": "superProductivity",
|
||||
"version": "0.0.0",
|
||||
"description": "",
|
||||
"main": "gulpfile.js",
|
||||
"description": "Personal Task Management App to help you with your daily struggle with JIRA etc.",
|
||||
"main": "./electron/main.js",
|
||||
"repository": {},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "electron ./electron/main.js"
|
||||
"start": "electron ./electron/main.js",
|
||||
"pack": "build --dir",
|
||||
"dist": "build"
|
||||
},
|
||||
"author": "",
|
||||
"author": "Johannes Millan <contact@super-productivity.com> (http://super-productivity.com)",
|
||||
"license": "none",
|
||||
"build": {
|
||||
"appId": "superProductivity",
|
||||
"mac": {
|
||||
"category": "task management"
|
||||
},
|
||||
"win": {
|
||||
"iconUrl": "windowsicon"
|
||||
},
|
||||
"linux": {
|
||||
}
|
||||
},
|
||||
"devDependencies": {
|
||||
"electron": "^1.4.1",
|
||||
"electron-inspector": "^0.1.4",
|
||||
"browser-sync": "latest",
|
||||
"del": "latest",
|
||||
"ecstatic": "latest",
|
||||
|
|
@ -55,8 +70,6 @@
|
|||
"yargs": "latest"
|
||||
},
|
||||
"dependencies": {
|
||||
"electron": "^1.4.1",
|
||||
"electron-inspector": "^0.1.4",
|
||||
"jira": "^0.9.2",
|
||||
"moment": "^2.17.1",
|
||||
"open": "0.0.5"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue