Unverified Commit 07f0d610 authored by Aral Balkan's avatar Aral Balkan
Browse files

Move from path-extra to ospath dependency

The only functionality we were using from path-extra was the
(now removed) homedir() method. As per the recommendation on that
package, moving to using ospath.home() instead. Removes path-extra
and reverts to using standard path package instead.
parent 02125184
......@@ -14,7 +14,8 @@
#
################################################################################
path = require 'path-extra'
path = require 'path'
osPath = require 'ospath'
winston = require 'winston'
fs = require 'fs-extra-as-promised'
......@@ -83,7 +84,7 @@ class App
# Initialise global properties of the app.
# @identifier = 'builder'
@homeDirectory = path.join path.homedir(), 'better.fyi'
@homeDirectory = path.join osPath.home(), 'better.fyi'
@privateDirectory = path.join @homeDirectory, '.private'
......
......@@ -16,7 +16,7 @@
################################################################################
fs = require 'fs-extra-as-promised'
path = require 'path-extra'
path = require 'path'
marked = require 'marked'
jsonlint = require 'jsonlint'
......
......@@ -18,7 +18,7 @@
################################################################################
spawn = require('child-process-promise').spawn
path = require 'path-extra'
path = require 'path'
winston = require 'winston'
......
......@@ -3,7 +3,8 @@
#
fs = require 'fs-extra-as-promised'
path = require 'path-extra'
path = require 'path'
osPath = require 'ospath'
Promise = require 'thrush'
......@@ -24,7 +25,7 @@ class Cache
cacheCurrentChecksumsDirectory: null
constructor: ->
@homeDirectory = path.join path.homedir(), 'better.fyi'
@homeDirectory = path.join osPath.home(), 'better.fyi'
@contentDirectory = path.join @homeDirectory, 'content'
@themesDirectory = path.join @homeDirectory, 'themes'
......
......@@ -3,7 +3,8 @@
#
fs = require 'fs-extra-as-promised'
path = require 'path-extra'
path = require 'path'
osPath = require 'ospath'
Promise = require 'thrush'
......@@ -17,7 +18,7 @@ class Cache
themesDirectory: null
constructor: ->
@homeDirectory = path.join path.homedir(), 'better.fyi'
@homeDirectory = path.join osPath.home(), 'better.fyi'
@contentDirectory = path.join @homeDirectory, 'content'
@themesDirectory = path.join @homeDirectory, 'themes'
......
......@@ -15,7 +15,7 @@
#
################################################################################
path = require 'path-extra'
path = require 'path'
express = require 'express'
http = require 'http'
......
......@@ -29,7 +29,7 @@ app = require './App'
winston = require 'winston'
fs = require 'fs-extra-as-promised'
path = require 'path-extra'
path = require 'path'
url = require 'url'
Promise = require 'thrush'
......
......@@ -23,7 +23,7 @@ app = require './App'
winston = require 'winston'
fs = require 'fs-extra-as-promised'
path = require 'path-extra'
path = require 'path'
url = require 'url'
Promise = require 'thrush'
......
......@@ -28,7 +28,7 @@
"jsonlint": "1.6.2",
"marked": "0.3.6",
"nodegit": "0.20.2",
"path-extra": "2.0.0",
"ospath": "1.2.2",
"should": "7.1.0",
"thrush": "0.0.7",
"touch": "^1.0.0",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment