Skip to content

Commit

Permalink
Added release scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilioastarita committed Aug 27, 2016
1 parent 429d9e8 commit edee881
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
1 change: 1 addition & 0 deletions build/.gitignore
@@ -0,0 +1 @@
*
10 changes: 8 additions & 2 deletions package.json
Expand Up @@ -5,7 +5,9 @@
"main": "main.js",
"scripts": {
"prestart": "./node_modules/typescript/bin/tsc",
"start": "electron ."
"start": "electron .",
"predist": "./node_modules/typescript/bin/tsc",
"dist": "./node_modules/electron-zip-packager/bin/cmd.js . --all --overwrite --out=build/"
},
"repository": {
"type": "git",
Expand All @@ -32,6 +34,8 @@
"async": "^2.0.1",
"cheerio": "^0.20.0",
"electron-json-storage": "^2.0.0",
"electron-packager": "^7.7.0",
"electron-zip-packager": "^3.0.0",
"electron-prebuilt": "^1.2.0",
"he": "^1.1.0",
"jquery": "^3.1.0",
Expand All @@ -41,5 +45,7 @@
"vue": "^1.0.26",
"vue-class-component": "^3.2.0"
},
"dependencies": {}
"dependencies": {

}
}
3 changes: 2 additions & 1 deletion render/template.ts
@@ -1,6 +1,7 @@
const templates = {};
const fs = require('fs');
const tplPath = './render/views/';
const path = require('path');
const tplPath = path.join(path.dirname(__filename), '/views/');

export function template(name) {
if (templates[name]) {
Expand Down

0 comments on commit edee881

Please sign in to comment.