Skip to content
Permalink
Browse files

fix(option): fix build option httpProxy by removing lodash dependency

  • Loading branch information
jyounce committed Oct 9, 2015
1 parent 4689c64 commit 7439f93c83dc52d4fe264fe59d3b3017b0b5ed3a
Showing with 9 additions and 3 deletions.
  1. +7 −0 helpers/array.coffee
  2. +0 −1 package.json
  3. +2 −2 tasks/format/absolute-css-urls.coffee
@@ -0,0 +1,7 @@
module.exports =
areEqual: (array1, array2, order=false) ->
return false unless Array.isArray array1
return false unless Array.isArray array2
return false if array1.length isnt array2.length
if order then array1.sort(); array2.sort()
JSON.stringify(array1) is JSON.stringify array2
@@ -75,7 +75,6 @@
"karma-ie-launcher": "0.2.0",
"karma-phantomjs-launcher": "0.2.1",
"karma-safari-launcher": "0.1.1",
"lodash": "3.10.1",
"open": "0.0.5",
"phantomjs": "1.9.18",
"postcss": "5.0.9",
@@ -1,7 +1,7 @@
module.exports = (config, gulp, taskOpts={}) ->
q = require 'q'
_ = require 'lodash'
absCssUrls = require "#{config.req.plugins}/gulp-absolute-css-urls"
arrayHelp = require "#{config.req.helpers}/array"
promiseHelp = require "#{config.req.helpers}/promise"
configHelp = require("#{config.req.helpers}/config") config
taskHelp = require("#{config.req.helpers}/tasks") config, gulp
@@ -61,7 +61,7 @@ module.exports = (config, gulp, taskOpts={}) ->
opts = prependPath: false, src: taskOpts.watchFilePath, watchFileBase: true
runTask('app', 'styles', opts).done ->
imports = config.internal.getImports()
areEqual = _.isEqual clone, imports
areEqual = arrayHelp.areEqual clone, imports, true
buildSpa() unless areEqual

runTask: -> # synchronously

0 comments on commit 7439f93

Please sign in to comment.
You can’t perform that action at this time.