Skip to content
This repository was archived by the owner on Nov 29, 2022. It is now read-only.

Commit 983c4f9

Browse files
authored
v2.0.0 - Updating configs and gulp-build-fozzie dependency (#292)
1 parent 014898d commit 983c4f9

10 files changed

+3436
-2431
lines changed

.babelrc

-5
This file was deleted.

.eslintrc

-7
This file was deleted.

.eslintrc.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
extends: '@justeat/eslint-config-fozzie',
3+
rules: {
4+
'import/prefer-default-export': 'off'
5+
}
6+
};

.github/CODEOWNERS

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
* @justeat/ui-admins
1+
* @justeat/ui-senior-reviewers-web @justeat/ui-reviewers-web

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
language: node_js
22

33
node_js:
4+
- "12"
45
- "10"
5-
- "8"
66

77
cache: yarn
88

CHANGELOG.md

+15
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,21 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
44
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html)
55

66

7+
v2.0.0
8+
------------------------------
9+
*March 9, 2020*
10+
11+
### Removed
12+
- **Breaking** Support for Node 8 has been removed. Now only tested in Node v10 and v12.
13+
- `espree` resolution removed as no longer needed.
14+
- `gulp` removed from dependency list – not needed as it comes down as a dependency of `gulp-build-fozzie`.
15+
16+
### Changed
17+
- Updated to use `gulp-build-fozzie` v10 (which uses `gulp` v4).
18+
- Babel and ESLint configs updated in line with current recommendations.
19+
- Browserslist updated to use shared configuration.
20+
21+
722
v1.91.1
823
------------------------------
924
*February 12, 2020*

babel.config.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = api => {
2+
const isTest = api.env('test');
3+
const presets = [];
4+
const plugins = [];
5+
6+
if (!isTest) {
7+
api.cache(true);
8+
}
9+
10+
// use for both test and dev/live
11+
presets.push('@babel/env');
12+
13+
return {
14+
presets,
15+
plugins
16+
};
17+
};

jest.config.js

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
module.exports = {
2+
collectCoverageFrom: [
3+
'src/**/*.js'
4+
],
5+
moduleFileExtensions: [
6+
'js',
7+
'json',
8+
'vue'
9+
],
10+
transform: {
11+
'^.+\\.js$': 'babel-jest'
12+
},
13+
testMatch: [
14+
'** /*.{spec|test}.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)'
15+
],
16+
testURL: 'http://localhost/'
17+
};

package.json

+8-17
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@justeat/fozzie",
33
"title": "Fozzie – Just Eat UI Web Framework",
44
"description": "UI Web Framework for the Just Eat Global Platform",
5-
"version": "1.91.1",
5+
"version": "2.0.0",
66
"main": "dist/js/index.js",
77
"files": [
88
"dist/js",
@@ -30,29 +30,28 @@
3030
},
3131
"license": "Apache-2.0",
3232
"engines": {
33-
"node": ">=8.0.0"
33+
"node": ">=10.0.0"
3434
},
3535
"dependencies": {
3636
"@justeat/f-dom": "1.1.0",
3737
"@justeat/f-logger": "0.8.1",
3838
"@justeat/f-utils": "0.3.0",
3939
"@justeat/fozzie-colour-palette": "2.5.0",
40-
"fontfaceobserver": "2.0.13",
40+
"fontfaceobserver": "2.1.0",
4141
"include-media": "1.4.9",
4242
"kickoff-grid.css": "1.2.0",
4343
"normalize-scss": "7.0.1"
4444
},
4545
"devDependencies": {
46-
"@justeat/gulp-build-fozzie": "9.0.1",
46+
"@justeat/browserslist-config-fozzie": "1.1.1",
47+
"@justeat/gulp-build-fozzie": "10.0.0",
4748
"@justeat/js-test-buddy": "0.4.1",
4849
"concurrently": "5.1.0",
4950
"coveralls": "3.0.9",
50-
"danger": "3.9.0",
51-
"gulp": "3.9.1"
51+
"danger": "3.9.0"
5252
},
5353
"resolutions": {
54-
"babel-core": "7.0.0-bridge.0",
55-
"espree": "3.5.4"
54+
"babel-core": "7.0.0-bridge.0"
5655
},
5756
"keywords": [
5857
"fozzie",
@@ -78,16 +77,8 @@
7877
"extends": "@justeat/stylelint-config-fozzie"
7978
},
8079
"browserslist": [
81-
"> 5%",
82-
"last 2 versions",
83-
"Safari >= 8",
84-
"not ie 10"
80+
"extends @justeat/browserslist-config-fozzie"
8581
],
86-
"jest": {
87-
"collectCoverageFrom": [
88-
"src/**/*.js"
89-
]
90-
},
9182
"assets": [
9283
{
9384
"root": "src/",

0 commit comments

Comments
 (0)