Skip to content

Commit 7b9afa9

Browse files
Tim von OldenburgMatthew Davidson
Tim von Oldenburg
authored and
Matthew Davidson
committed
Backpackify
1 parent dc74990 commit 7b9afa9

38 files changed

+1763
-2966
lines changed

.travis.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,10 @@ matrix:
2626
env: TEST_SUITE=old-node
2727
- node_js: 6
2828
env: TEST_SUITE=kitchensink
29+
notifications:
30+
slack:
31+
rooms:
32+
secure: bhPLCxVEdmUTTaIwkmZMBBHtJVfSmdCS0feVgRdWLcAOhiSfAkwBhf42kZfovc1fwGxIeRukDERehzC8SqmRAX0U2o9aNuY+NyXWasWzFQlR2Dz2M5HPI0k1Qp8dMdPXQTr4GfQ+hsgpSzySnObjvdwchHNpDZDBsdEIUm6ppNvdYJA9E3BO8o7CNZyDiWNhJt47jx5u3Xh+g0iXix45wuMlLuZjnjXsSkFx39NPlLGsSCh4nTalJbpyB9Txh9zjBO4KCL0PoggFC8WGCoM9G73gn/oXie20nIX+NOMaAkGyN7aG0VxrVb5mAB4puhC+u2oPJRKc85REL2MRRcMLv8AC+/6nlXMjIF5WS2MhWKrejQlccO9lqqapsdDMENYx9+Oaxs4QDdQA1Hxd4J9eWBSwAO7xrhN2sTaUiOguEp+yX3EYWUtF1WtIU3NtxB6TTvOvbGHzJYcBJvU0zIywR4tik6HQuv6ZiC0+H50yfT9mm8KmVn0zdJ4O20QO7Fa+/WBpVMGHJLxLEP7Hj1I7cTOYE/B/5Dj8ABTUUoKV/q4hY24FcfQ3rLqFmbQxWdder95oiMh1TYtdP2c44m2E1BkmwUzjtJZCoxJOEKgjAaGdEA2+OxSuAIUmUhcJ6X0cSyll8OgyoOXiNQoHhrNMv/y9FxUvGdKDgX2uH96t8pE=
33+
on_pull_requests: false
34+
on_success: always
35+
on_failure: change

README.md

Lines changed: 3 additions & 222 deletions
Large diffs are not rendered by default.

packages/babel-preset-react-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"private": true,
23
"name": "babel-preset-react-app",
34
"version": "3.1.2",
45
"description": "Babel preset used by Create React App",

packages/create-react-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"private": true,
23
"name": "create-react-app",
34
"version": "1.5.2",
45
"keywords": [

packages/eslint-config-react-app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"private": true,
23
"name": "eslint-config-react-app",
34
"version": "2.1.0",
45
"description": "ESLint configuration used by Create React App",

packages/react-dev-utils/WebpackDevServerUtils.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ let handleCompile;
2525
// We only use this block for testing of Create React App itself:
2626
const isSmokeTest = process.argv.some(arg => arg.indexOf('--smoke-test') > -1);
2727
if (isSmokeTest) {
28+
// process.env.UV_THREADPOOL_SIZE default value is 4. Setting it to 20 seems to stop the build hanging.
29+
// We only do this if the --smoke-test flag is passed because we haven't seen this in the wild yet.
30+
// See https://github.com/sass/node-sass/issues/857 & https://github.com/jtangelder/sass-loader/issues/147.
31+
process.env.UV_THREADPOOL_SIZE = 50;
32+
2833
handleCompile = (err, stats) => {
2934
if (err || stats.hasErrors() || stats.hasWarnings()) {
3035
process.exit(1);

packages/react-dev-utils/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"private": true,
23
"name": "react-dev-utils",
34
"version": "5.0.2",
45
"description": "Webpack utilities used by Create React App",

packages/react-error-overlay/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"private": true,
23
"name": "react-error-overlay",
34
"version": "4.0.1",
45
"description": "An overlay for displaying stack frames.",

packages/react-scripts/CHANGELOG.md

Lines changed: 340 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,340 @@
1+
# `backpack-react-scripts` Change Log
2+
3+
## 5.1.1 - 2018-04-11
4+
### Fixed
5+
- `backpack-react-scripts` listed inside of `devDependencies` instead of `dependencies`
6+
- `registerServiceWorker.js` no longer appears in project output
7+
8+
## 5.1.0 - 2018-04-10
9+
### Added
10+
- Rebased onto `upstream/master` v1.1.4 (dfbc71ce2ae07547a8544cce14a1a23fac99e071)
11+
12+
## 5.0.10 - 2018-03-21
13+
### Fixed
14+
- New `disablePolyfills` config in `package.json`. You can opt out of including polyfills from the output bundle like so:
15+
16+
```json
17+
"backpack-react-scripts": {
18+
"disablePolyfills": true
19+
}
20+
```
21+
22+
## 5.0.9 - 2018-03-14
23+
### Fixed
24+
- New `crossOriginLoading` config in `package.json`. You can configure cross-origin loading of dynamic chunks:
25+
26+
```json
27+
"backpack-react-scripts": {
28+
"crossOriginLoading": "anonymous"
29+
}
30+
```
31+
32+
## 5.0.8 - 2018-03-07
33+
### Fixed
34+
- New `amdExcludes` config in `package.json`. You can now disable AMD parsing for specific modules like so:
35+
36+
```json
37+
"backpack-react-scripts": {
38+
"amdExcludes": [
39+
"globalize"
40+
]
41+
}
42+
```
43+
44+
## 5.0.7 - 2018-03-06
45+
### Fixed
46+
- Use `package.json` name field as value for `output.jsonpFunction`, this is important for when multiple webpack runtimes from different compilation are used on the same page
47+
48+
## 5.0.6 - 2018-01-31
49+
### Fixed
50+
- CSS Modules hashing now uses `package.json` name field as a salt
51+
52+
## 5.0.5 - 2018-01-15
53+
### Fixed
54+
- Added `saddlebag-` prefix to the jest config
55+
56+
## 5.0.4 - 2018-01-11
57+
### Added
58+
- Added `saddlebag-` prefix for saddlebag modules
59+
60+
## 5.0.3 - 2017-12-21
61+
### Fixed
62+
- Rebased onto `upstream/master` v1.0.17 (4b55193f0ad479f26b0f5e153bb4b152a1ee03e7)
63+
- Peer dependency issues with `postcss-less` & `sugarss`
64+
65+
## 5.0.2 - 2017-11-03
66+
### Fixed
67+
- Scope the disabling of AMD for `lodash` only
68+
69+
## 5.0.1 - 2017-11-02
70+
### Fixed
71+
- Prevent lodash imports from leaking on to the global scope, see https://github.com/webpack/webpack/issues/3017#issuecomment-285954512
72+
- Upgraded `stylelint` to `^8.2.0` and `stylelint-config-skyscanner` to `^1.0.1`
73+
74+
## 5.0.0 - 2017-10-30
75+
### Breaking
76+
- Upgraded [`eslint-config-skyscanner`](https://github.com/Skyscanner/eslint-config-skyscanner/blob/master/changelog.md#300---upgraded-esling-config-airbnb-peer-dependencies) to `3.0.0`.
77+
78+
## 4.0.8 - 2017-10-12
79+
### Fixed
80+
- Rebased onto `upstream/master` (b2c0b3f74b47f0f85e3f17f7d3249b7e536cda05)
81+
- Locked `react` & `react-dom` versions to `^15.0.0` for now
82+
83+
## 4.0.7 - 2017-08-24
84+
### Fixed
85+
- Fixed issue with classnames not being hashed correctly for projects using CSS Modules
86+
87+
## 4.0.6 - 2017-08-22
88+
### Fixed
89+
- Upgraded sass-loader to 6.0.6 which fixes peer dependency warning with webpack (caused shrinkwraps to fail)
90+
- Upgraded bpk-mixins to 16.3.1
91+
92+
## 4.0.5 - 2017-08-17
93+
### Fixed
94+
- Rebased onto `upstream/master` (e8a3e4b2995f4c6e49c0a7ed653a1646a7b5e515)
95+
96+
## 4.0.3 - 2017-08-10
97+
### Fixed
98+
- Production and SSR builds will now use `optimize-css-assets-webpack-plugin` with `cssnano` to optimize output CSS. This gets rid of duplication of global CSS constructs such as keyframes.
99+
100+
## 4.0.2 - 2017-07-28
101+
### Fixed
102+
- Deprecated BpkHeading and BpkParagraph
103+
- Added BpkText component
104+
- Updated all other Backpack dependencies to latest versions
105+
106+
## 4.0.1 - 2017-07-27
107+
### Fixed
108+
- Updated eslint-plugin-import to 2.7.0 to fix `npm shrinkwrap --save-dev`
109+
110+
## 4.0.0 - 2017-07-27
111+
### Changed
112+
- Updated stylelint to 8.0.0 and stylelint-config-skyscanner to 1.0.0
113+
114+
## 3.0.1 - 2017-07-12
115+
### Fixed
116+
- Mocked CSS Modules for Jest, so snapshot tests include the original class names
117+
118+
## 3.0.0 - 2017-07-11
119+
### Changed
120+
- Enabled [CSS Modules](https://github.com/css-modules/css-modules) by default
121+
- You can use the config option `cssModules` to opt out:
122+
```
123+
"backpack-react-scripts": {
124+
"cssModules": false
125+
}
126+
```
127+
In this case, Sass files will not be treated as CSS Modules by default. However, you can opt-in on a
128+
per-file basis using the naming convention: `*.module.scss`.
129+
- Backpack components will _always_ be treated as CSS Modules, even if you opt out
130+
- All Backpack components need to be on these versions (or higher) to work:
131+
132+
133+
134+
135+
136+
137+
138+
139+
140+
141+
142+
143+
144+
145+
146+
147+
148+
149+
150+
151+
152+
153+
154+
155+
156+
157+
158+
159+
160+
161+
162+
163+
164+
165+
166+
167+
168+
169+
170+
171+
172+
173+
174+
175+
176+
## 2.0.3 - 2017-07-010
177+
### Fixed
178+
- Rebased onto `upstream/master` (f495c15578403cf2dbac211493ae8fb6ac742415)
179+
180+
## 2.0.1 - 2017-07-04
181+
### Changed
182+
- Replaced the "babelIncludeRegex" config option in `package.json` with "babelIncludePrefixes". You can now
183+
enable transpilation for your dependencies by adding package prefixes like so:
184+
```
185+
{
186+
...
187+
"backpack-react-scripts": {
188+
"babelIncludePrefixes": [
189+
"my-module-prefix-",
190+
"some-dependency"
191+
]
192+
}
193+
}
194+
```
195+
196+
### Changed
197+
- Upgraded `eslint-config-skyscanner` to `2.0.0` which uses the `babel-eslint` parse
198+
199+
## 1.0.1 - 2017-06-12
200+
### Added
201+
- Added `babel-eslint` as dependency so it can be used with ESLint when dynamic `import()` statements are used
202+
203+
### Changed
204+
- Upgraded `eslint-config-skyscanner` to `2.0.0` which uses the `babel-eslint` parse
205+
206+
## 1.0.0 - 2017-05-29
207+
### Changed
208+
- Rebased from `upstream/master` (fbaeff2d6ef83ae5dc8213150e0fa6589ed29150)
209+
- TLDR; this upgrades the upstream dependency `react-scripts` to `^1.0.0` - please read the [blog post](https://facebook.github.io/react/blog/2017/05/18/whats-new-in-create-react-app.html) for a summary of the new features this brings
210+
- This is a major release, meaning there are a few breaking changes (summarised below). Please refer to the [`react-scripts` changelog](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md#100-may-18-2017) for detailed migration documentations.
211+
- [Ensure application and test files reside in src/](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md#ensure-application-and-test-files-reside-in-src)
212+
- [You can no longer import file content](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md#you-can-no-longer-import-file-content)
213+
- [Confusing window globals can no longer be used without window qualifier](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md#confusing-window-globals-can-no-longer-be-used-without-window-qualifier)
214+
- [Jest snapshot format has changed](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md#how-do-i-make-my-tests-work-with-jest-20)
215+
216+
## 0.0.19 - 2017-05-02
217+
### Added
218+
- The ability to configure "babelIncludeRegex" in package json
219+
220+
## 0.0.18 - 2017-04-10
221+
### Added
222+
- Support for new `bpk-icon` mixin from `bpk-mixins`
223+
224+
## 0.0.17 - 2017-04-06
225+
### Fixed
226+
- Rebased from `upstream/0.9.x` (ebebe80383eb15b4759a0cd5ea12015eaac94c0e)
227+
- Now moves `react` and `react-dom` from dependencies to devDependencies
228+
229+
## 0.0.16 - 2017-03-30
230+
### Added
231+
- Upgrading `eslint-config-skyscanner` to v1.1.0
232+
- Upgrading `stylelint-config-skyscanner` to v0.1.3
233+
- Upgrading `eslint-plugin-react` to v6.10.3 as [undelying issue](https://github.com/yannickcr/eslint-plugin-react/issues/1117) which caused it to be pinned was resolved
234+
- Upgrading `node-sass` to v4.5.0 to make it compatible with latest version of `bpk-mixins`
235+
- Upgrading all Backpack dev dependencies:
236+
- `bpk-component-button` to v1.6.6
237+
- `bpk-component-code` to v0.0.58
238+
- `bpk-component-grid` to v1.0.8
239+
- `bpk-component-heading` to v1.2.7
240+
- `bpk-component-paragraph` to v0.2.1
241+
- `bpk-mixins` to v11.0.2
242+
- `bpk-stylesheets` to v3.2.16
243+
- Upgrading `detect-port` to v1.1.1
244+
245+
## 0.0.15 - 2017-03-27
246+
### Added
247+
- The ability to lint SCSS with `stylelint-config-skyscanner`
248+
- run `npm run lint:scss` or just `npm run lint` for both JS and SCSS linting
249+
- The ability to automatically fix many SCSS linting issues using `stylefmt`
250+
- run `npm run lint:scss:fix`
251+
- The ability to automatically fix many JS linting issues using `eslint --fix`
252+
- run `npm run lint:js:fix`
253+
254+
## 0.0.14 - 2017-03-20
255+
### Added
256+
- Upgrading `eslint-config-skyscanner` to v1.0.0
257+
258+
### Fixed
259+
- Pinning `eslint-plugin-react` to 6.10.0 to fix indent bug
260+
261+
## 0.0.13 - 2017-03-09
262+
### Added
263+
- The ability to configure "ssrExternals" in package json
264+
265+
## 0.0.12 - 2017-03-01
266+
### Fixed
267+
- The backpack module regex now works on windows
268+
269+
## 0.0.11 - 2017-02-27
270+
### Changed
271+
- Removed backpack logo usage from output template
272+
273+
### Added
274+
- There is now an `.editorconfig` in the output template
275+
276+
## 0.0.10 - 2017-01-05
277+
### Changed
278+
- Rebased from `upstream/master` (4d7b7544e74db1aaca22e847b233ed1f3b95b72b)
279+
- Updates `babel-jest` && `jest` packages to 18.0.0
280+
- Upgraded `eslint` & `eslint-plugin-react` to 3.12.2 & 6.8.0 respectively
281+
282+
### Added
283+
- Added ability to configure "externals" in package json
284+
285+
## 0.0.9 - 2016-12-20
286+
### Added
287+
- Server Side Rendering support (proof of concept):
288+
- `webpack.config.ssr.js`: This is a duplicate of `webpack.config.prod.js` modified to target a server side node environment
289+
- `build.js` now checks if an `ssr.js` file exists at the app root, if so it will compile it in parallel with the optimized browser bundle leaving an
290+
`ssr.js` file in the build directory ready to be required on the server
291+
- See the [readme](https://github.com/Skyscanner/backpack-react-scripts/tree/master/packages/react-scripts/template#server-side-rendering-ssr) for detailed instructions.
292+
293+
## 0.0.8
294+
### Changed
295+
- Rebased from `upstream/master` (94c912dc60561c931232caf9cf5442082711227c)
296+
- Mostly bug fixes and dependency upgrades, see [create-react-app's changelog](https://github.com/facebookincubator/create-react-app/blob/master/CHANGELOG.md)
297+
(between versions `v0.8.0` -> `v0.8.4`)
298+
299+
## 0.0.7
300+
### Fixed
301+
- Added base stylesheet scripts to the template so that hover effects work
302+
303+
## 0.0.6
304+
### Changed
305+
- Removed eslint from webpack to a separate `npm run lint` task
306+
- Swapped out `eslint-config-react-app` in favour of `eslint-config-skyscanner`
307+
308+
### Added
309+
- A `backpack-react-scripts` specific readme
310+
311+
## 0.0.5
312+
### Fixed
313+
- Rebased from `upstream/master` (bcc469c9a5c7916ec10786f133769cdda2c80188)
314+
- Most notable change is Yarn support
315+
316+
## 0.0.4
317+
### Fixed
318+
- Reverted nested components dir
319+
320+
## 0.0.3
321+
### Added
322+
- New Backpack template
323+
- Backpack stylesheet and Sass mixin integration
324+
- Backpack button, code, grid, heading & paragraph components integration
325+
- `.eslintrc` for editor integration
326+
- Nested components into `src/components/` dir
327+
328+
## 0.0.2
329+
### Fixed
330+
- Removed `bundledDependencies`
331+
332+
## 0.0.1
333+
### Changed
334+
- Customised `react-scripts` package to be `backpack-react-scripts`
335+
- Marked all other packages as private
336+
337+
### Added
338+
- Sass stylesheet support
339+
- Babel will now compile imports from the `node_modules` folder that match `/bpk-*`
340+
- Drone build configuration

0 commit comments

Comments
 (0)