Skip to content
Permalink
Browse files

Update js dependencies (another take) (#2156)

Update js dependencies
  • Loading branch information...
deivid-rodriguez authored and josepjaume committed Nov 13, 2017
1 parent c1e9a55 commit 0b4e6a39518b24666c86151ddb34be48d6da3bfe
@@ -1,6 +1,6 @@
{
"presets": [
["es2015", { "modules": false }],
"env",
"airbnb",
"react",
"stage-2"

Large diffs are not rendered by default.

@@ -1,4 +1,4 @@
import { configure } from "enzyme";
import * as Adapter from "enzyme-adapter-react-15";
import * as Adapter from "enzyme-adapter-react-16";

configure({ adapter: new Adapter() });
@@ -7,7 +7,7 @@
previous_hash = bundle_hash

Dir.chdir("../") do
`npm run build:prod 2>&1 /dev/null`
expect(system("npm run build:prod", out: File::NULL, err: File::NULL)).to eq(true)
end

new_hash = bundle_hash
@@ -17,9 +17,6 @@
end

def bundle_hash
Dir.glob("app/assets/javascripts/decidim/comments/bundle.js").inject([]) do |results, file|
md5 = Digest::MD5.file(file).hexdigest
results << md5
end
Digest::MD5.file("app/assets/javascripts/decidim/comments/bundle.js").hexdigest
end
end

0 comments on commit 0b4e6a3

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