danger-wcc 0.0.6 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/danger-wcc.gemspec +6 -3
  3. data/lib/version.rb +1 -1
  4. data/lib/wcc/dependencies.rb +100 -0
  5. data/lib/wcc/plugin.rb +18 -3
  6. data/lib/wcc/util/yarn_info.rb +98 -0
  7. data/lib/wcc/utils.rb +16 -4
  8. data/lib/wcc/yarn_deduplicate.rb +71 -0
  9. data/spec/fixtures/dependencies/package.json +112 -0
  10. data/spec/fixtures/dependencies/package.json.diff +28 -0
  11. data/spec/fixtures/dependencies/package.json_patch_bumps_minor.diff +13 -0
  12. data/spec/fixtures/dependencies/package.json_patch_bumps_minor.json +112 -0
  13. data/spec/fixtures/dependencies/package.json_second_level_effect.diff +17 -0
  14. data/spec/fixtures/dependencies/package.json_second_level_effect.json +133 -0
  15. data/spec/fixtures/dependencies/yarn.lock +19609 -0
  16. data/spec/fixtures/dependencies/yarn.lock_patch_bumps_minor.lock +19614 -0
  17. data/spec/fixtures/dependencies/yarn.lock_second_level_effect.lock +20022 -0
  18. data/spec/fixtures/dependencies/yarn_list_second_level_effect.txt +1243 -0
  19. data/spec/fixtures/dependencies/yarn_list_second_level_effect.txt.diff +141 -0
  20. data/spec/fixtures/dependencies/yarn_minor_version.diff +33 -0
  21. data/spec/fixtures/dependencies/yarn_minor_version.txt +1151 -0
  22. data/spec/fixtures/dependencies/yarn_old.txt +1152 -0
  23. data/spec/fixtures/dependencies/yarn_patch_bumps_minor.diff +28 -0
  24. data/spec/fixtures/yarn_deduplicate/list.a.txt +293 -0
  25. data/spec/fixtures/yarn_deduplicate/list.b.txt +295 -0
  26. data/spec/fixtures/yarn_deduplicate/list.diff +11 -0
  27. data/spec/fixtures/yarn_deduplicate/yarn.lock +20031 -0
  28. data/spec/wcc/dependencies_spec.rb +130 -0
  29. data/spec/wcc/plugin_spec.rb +7 -3
  30. data/spec/wcc/yarn_deduplicate_spec.rb +57 -0
  31. metadata +79 -20
@@ -0,0 +1,17 @@
1
+ diff --git a/package.json b/package.json
2
+ index 21f47621..7b52dbdd 100644
3
+ --- a/package.json
4
+ +++ b/package.json
5
+ @@ -91,10 +91,10 @@
6
+ "@types/ua-parser-js": "^0.7.32",
7
+ "@types/webpack-env": "^1.13.9",
8
+ "@types/yargs": "^11.1.1",
9
+ - "@watermarkchurch/contentful-migration": "^1.0.9",
10
+ + "@watermarkchurch/contentful-migration": "^3.1.2",
11
+ "@watermarkchurch/google-maps-react": "^2.0.6",
12
+ "@watermarkchurch/location-map": "*",
13
+ - "@watermarkchurch/react-instantsearch-components": "^0.0.5",
14
+ + "@watermarkchurch/react-instantsearch-components": "^0.0.6",
15
+ "amplitudejs": "^5.0.3",
16
+ "babel-loader": "^8.2.2",
17
+ "broken-link-checker": "git://github.com/watermarkchurch/broken-link-checker.git",
@@ -0,0 +1,133 @@
1
+ {
2
+ "name": "wm-resources",
3
+ "private": true,
4
+ "workspaces": [
5
+ ".",
6
+ "packages/*"
7
+ ],
8
+ "scripts": {
9
+ "lint-js": "eslint 'app/assets/javascripts/**/*.ts?(x)' --quiet",
10
+ "lint-css": "stylelint app/**/*.scss --syntax scss",
11
+ "lint": "yarn run lint-js && yarn run lint-css",
12
+ "check-types": "tsc --noemit",
13
+ "fix-css": "stylelint app/**/*.scss --syntax scss --fix",
14
+ "fix-js": "eslint 'app/assets/javascripts/**/*.ts?(x)' --quiet --fix",
15
+ "fix": "yarn run fix-js && yarn run fix-css",
16
+ "test": "NODE_ENV=test jest && karma start --",
17
+ "test-debug": "NODE_ENV=test karma start --log-level debug",
18
+ "test-watch": "NODE_ENV=test karma start --auto-watch --no-single-run",
19
+ "analyze": "RAILS_ENV=production NODE_ENV=production bin/webpack --profile --json > tmp/stats.json && webpack-bundle-analyzer tmp/stats.json public/packs --exclude server_rendering -m static -r doc/analyze-report.html",
20
+ "prepare": "contentful-ts-generator --download=false && for d in packages/*/; do (cd $d; yarn prepare) || exit -1; done"
21
+ },
22
+ "engines": {
23
+ "node": "14.x",
24
+ "npm": "6.4.x"
25
+ },
26
+ "devDependencies": {
27
+ "@types/algoliasearch-helper": "^2.26.0",
28
+ "@types/jest": "^26.0.20",
29
+ "@types/node": "^10.9.4",
30
+ "@types/node-fetch": "^2.1.2",
31
+ "@types/react-test-renderer": "^17.0.0",
32
+ "@typescript-eslint/eslint-plugin": "^4.14.0",
33
+ "@typescript-eslint/parser": "^4.14.0",
34
+ "babel-jest": "^26.6.3",
35
+ "chai": "^4.1.2",
36
+ "chai-jquery": "^2.0.0",
37
+ "contentful-schema-diff": "^0.5.2",
38
+ "eslint": "^7.18.0",
39
+ "eslint-plugin-import": "^2.22.1",
40
+ "eslint-plugin-react": "^7.22.0",
41
+ "fetch-mock": "^9.11.0",
42
+ "isomorphic-fetch": "^3.0.0",
43
+ "jest": "^26.6.3",
44
+ "karma": "^2.0.4",
45
+ "karma-chai": "^0.1.0",
46
+ "karma-chai-jquery": "^1.0.0",
47
+ "karma-chrome-launcher": "^2.2.0",
48
+ "karma-jquery": "^0.2.2",
49
+ "karma-junit-reporter": "^1.2.0",
50
+ "karma-mocha": "^1.3.0",
51
+ "karma-mocha-reporter": "^2.2.5",
52
+ "karma-sourcemap-loader": "^0.3.7",
53
+ "karma-webpack": "^3.0.0",
54
+ "lerna": "^3.22.1",
55
+ "mocha": "^5.1.1",
56
+ "react-test-renderer": "^17.0.1",
57
+ "sinon": "^6.1.2",
58
+ "stylelint": "^9.2.1",
59
+ "stylelint-config-sass-guidelines": "^5.0.0",
60
+ "stylelint-scss": "^3.1.0",
61
+ "webpack-bundle-analyzer": "^3.1.0",
62
+ "webpack-dev-server": "3.1.11"
63
+ },
64
+ "dependencies": {
65
+ "@babel/core": "^7.12.10",
66
+ "@babel/plugin-proposal-class-properties": "^7.12.1",
67
+ "@babel/preset-env": "^7.12.11",
68
+ "@babel/preset-react": "^7.12.10",
69
+ "@babel/preset-typescript": "^7.12.7",
70
+ "@casl/ability": "^3.0.1",
71
+ "@material-ui/core": "^4.9.11",
72
+ "@material-ui/icons": "^4.9.1",
73
+ "@material-ui/lab": "^4.0.0-alpha.50",
74
+ "@rails/webpacker": "4.0",
75
+ "@types/chai": "^4.1.2",
76
+ "@types/chai-jquery": "^1.1.37",
77
+ "@types/enzyme": "^3.1.10",
78
+ "@types/enzyme-adapter-react-16": "^1.0.2",
79
+ "@types/events": "^1.2.0",
80
+ "@types/googlemaps": "^3.30.11",
81
+ "@types/i18n-js": "^3.0.1",
82
+ "@types/inflection": "^1.5.28",
83
+ "@types/jquery": "^3.3.1",
84
+ "@types/mocha": "^5.2.0",
85
+ "@types/modernizr": "^3.5.3",
86
+ "@types/react": "^16.8.6",
87
+ "@types/react-dom": "^16.8.0",
88
+ "@types/react-instantsearch": "^5.2.1",
89
+ "@types/react-select": "^3.0.26",
90
+ "@types/toastr": "^2.1.35",
91
+ "@types/ua-parser-js": "^0.7.32",
92
+ "@types/webpack-env": "^1.13.9",
93
+ "@types/yargs": "^11.1.1",
94
+ "@watermarkchurch/contentful-migration": "^3.1.2",
95
+ "@watermarkchurch/google-maps-react": "^2.0.6",
96
+ "@watermarkchurch/location-map": "*",
97
+ "@watermarkchurch/react-instantsearch-components": "^0.0.6",
98
+ "amplitudejs": "^5.0.3",
99
+ "babel-loader": "^8.2.2",
100
+ "broken-link-checker": "git://github.com/watermarkchurch/broken-link-checker.git",
101
+ "bugsnag-js": "^4.7.2",
102
+ "contentful-export": "^7.1.1",
103
+ "contentful-import": "^7.0.3",
104
+ "contentful-shell": "^0.2.4",
105
+ "contentful-ts-generator": "^0.2.6",
106
+ "date-fns": "^2.0.1",
107
+ "date-fns-tz": "^1.1.1",
108
+ "enzyme": "3.3.0",
109
+ "enzyme-adapter-react-16": "1.11.2",
110
+ "events": "^3.0.0",
111
+ "fetch-mock-jest": "^1.5.1",
112
+ "hard-source-webpack-plugin": "^0.13.1",
113
+ "inflection": "^1.12.0",
114
+ "node-fetch": "^2.6.1",
115
+ "react": "^16.8.0",
116
+ "react-country-region-selector": "^1.4.3",
117
+ "react-datepicker": "^3.3.0",
118
+ "react-dom": "^16.8.0",
119
+ "react-instantsearch": "^5.2.2",
120
+ "react-modal": "^3.6.1",
121
+ "react-modal-image": "^2.2.0",
122
+ "react-modal-video": "^1.2.0",
123
+ "react-select": "^3.1.0",
124
+ "shopify-buy": "^1.8.0",
125
+ "terser-webpack-plugin": "^1.2.3",
126
+ "toastr": "^2.1.4",
127
+ "ts-node": "^5.0.1",
128
+ "typescript": "3.9.x",
129
+ "ua-parser-js": "^0.7.19",
130
+ "webpack-manifest-plugin": "^2.0.4",
131
+ "yargs": "^12.0.2"
132
+ }
133
+ }