Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

Commit

Permalink
Bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 8, 2017
1 parent e469bbf commit e59650f
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
[*.yml]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto
*.js text eol=lf
4 changes: 2 additions & 2 deletions app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
const superb = require('superb');
const normalizeUrl = require('normalize-url');
const humanizeUrl = require('humanize-url');
const yeoman = require('yeoman-generator');
const Generator = require('yeoman-generator');
const _s = require('underscore.string');

module.exports = class extends yeoman.Base {
module.exports = class extends Generator {
init() {
return this.prompt([{
name: 'appName',
Expand Down
14 changes: 2 additions & 12 deletions app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,16 @@
"start": "electron .",
"build": "electron-packager . --out=dist --asar --overwrite --all"
},
"files": [
"index.js",
"index.html",
"index.css"
],
"keywords": [
"electron-app",
"electron"
],
"dependencies": {
"electron-debug": "^1.0.0"
},
"devDependencies": {
"devtron": "^1.1.0",
"electron-packager": "^8.0.0",
"electron": "^1.3.3",
"xo": "^0.16.0"
"electron": "^1.6.6",
"xo": "^0.18.0"
},
"xo": {
"esnext": true,
"envs": [
"node",
"browser"
Expand Down
4 changes: 0 additions & 4 deletions app/templates/editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,3 @@ end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[{package.json,*.yml}]
indent_style = space
indent_size = 2
1 change: 1 addition & 0 deletions app/templates/gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* text=auto
*.js text eol=lf
8 changes: 4 additions & 4 deletions app/templates/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ const electron = require('electron');

const app = electron.app;

// adds debug features like hotkeys for triggering dev tools and reload
// Adds debug features like hotkeys for triggering dev tools and reload
require('electron-debug')();

// prevent window being garbage collected
// Prevent window being garbage collected
let mainWindow;

function onClosed() {
// dereference the window
// for multiple windows store them in an array
// Dereference the window
// For multiple windows store them in an array
mainWindow = null;
}

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,16 @@
"normalize-url": "^1.2.0",
"superb": "^1.1.3",
"underscore.string": "^3.0.3",
"yeoman-generator": "^0.24.1"
"yeoman-generator": "^1.1.1"
},
"devDependencies": {
"ava": "*",
"pify": "^2.3.0",
"xo": "*",
"yeoman-assert": "^2.0.0",
"yeoman-assert": "^3.0.0",
"yeoman-test": "^1.1.0"
},
"xo": {
"esnext": true,
"ignores": [
"app/templates/**"
]
Expand Down

0 comments on commit e59650f

Please sign in to comment.