Skip to content

Commit

Permalink
updating things to the present
Browse files Browse the repository at this point in the history
Made a number of small changes over a long time:

* upgrade Electron to >= 1.00
* support Node.js 6.x as build runtime, (npm changes)
* small tweaks to actual function in AnyViewer
  • Loading branch information
Patrick Mueller committed Sep 2, 2016
1 parent 6c7a4f1 commit f5c954d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 31 deletions.
16 changes: 6 additions & 10 deletions Cakefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ pkg = require "./package.json"
ePkg = require "./node_modules/electron-prebuilt/package.json"

#-------------------------------------------------------------------------------
task "watch", "watch for source file changes, build", -> taskWatch()
task "build", "run a build", -> taskBuild()
task "buildIcns", "build the OS X icns file", -> taskBuildIcns()
task "watch", "watch for source file changes, build", -> taskWatch()
task "build", "run a build", -> taskBuild()
task "buildIcns", "build the OS X icns file", -> taskBuildIcns()

WatchSpec = "app/**/* .eslintrc package.json"

Expand Down Expand Up @@ -79,13 +79,9 @@ build_app = (oDir) ->

cp "-R", "app/*", oDir

omDir = "#{oDir}/node_modules"
mkdir "-p", omDir

for dependency of pkg.dependencies
cp "-R", "node_modules/#{dependency}", omDir

rm "-R", "#{omDir}/jquery/src"
pushd oDir
exec "npm install --production"
popd()

fixAboutFile "#{oDir}/renderer/about.md"
cp "README.md", "#{oDir}/renderer/README.md"
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ plugins
--------------------------------------------------------------------------------

In order to have a custom HTML renderer for a particular file extension, you'll
need to install a plugin. A plugin is an node package installed in a particular
need to install a plugin. A plugin is a node package installed in a particular
location. That location is the directory named `plugins` in the AnyViewer data
directory. The AnyViewer data directory in your home directory, named
`.AnyViewer`, and stores other preference-y data.
Expand Down
24 changes: 21 additions & 3 deletions app/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
{
"name": "AnyViewer",
"productName": "AnyViewer",
"main": "main/main.js"
"name": "AnyViewer",
"productName": "AnyViewer",
"main": "main/main.js",
"description": "a programmable desktop file viewer built on Electron",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/pmuellr/AnyViewer.git"
},
"dependencies": {
"devtron": "1.3.x",
"debug": "2.2.x",
"highlight.js": "9.6.x",
"jquery": "3.1.x",
"marked": "0.3.x",
"mkdirp": "0.5.x",
"tempfile": "1.1.x",
"throttle-debounce": "1.0.x",
"underscore": "1.8.x",
"vinyl": "1.2.x"
}
}
22 changes: 5 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "AnyViewer",
"version": "1.0.3",
"description": "a desktop Markdown viewer app built on Electron",
"version": "1.1.0",
"description": "a programmable desktop file viewer built on Electron",
"author": "pmuellr",
"main": "./lib/AnyViewer",
"scripts": {
Expand All @@ -15,24 +15,12 @@
"type": "git",
"url" : "https://github.com/pmuellr/AnyViewer.git"
},
"dependencies": {
"devtron": "1.1.x",
"debug": "2.2.x",
"highlight.js": "9.3.x",
"jquery": "2.2.x",
"marked": "0.3.x",
"mkdirp": "0.5.x",
"tempfile": "1.1.x",
"throttle-debounce": "1.0.x",
"underscore": "1.8.x",
"vinyl": "1.1.x"
},
"devDependencies": {
"babel": "6.5.x",
"cakex": "0.1.x",
"coffee-script": "1.10.x",
"electron-prebuilt": "1.0.x",
"eslint": "2.9.x",
"plist": "1.2.x"
"electron-prebuilt": "1.3.x",
"eslint": "3.4.x",
"plist": "2.0.x"
}
}

0 comments on commit f5c954d

Please sign in to comment.