forked from magento/pwa-studio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Switch to Yarn and Babel 7 * Update documentation
- Loading branch information
Showing
43 changed files
with
15,301 additions
and
39,645 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,3 +11,4 @@ test-report.xml | |
test-results.json | ||
lerna-debug.log | ||
.env | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
coverage | ||
package-lock.json | ||
dist | ||
pwa-devdocs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
const browsers = require('./browserslist'); | ||
|
||
const plugins = [ | ||
['@babel/plugin-proposal-class-properties'], | ||
['@babel/plugin-proposal-object-rest-spread'], | ||
['@babel/plugin-syntax-dynamic-import'], | ||
['@babel/plugin-syntax-jsx'], | ||
['@babel/plugin-transform-react-jsx'], | ||
['babel-plugin-graphql-tag'] | ||
]; | ||
|
||
const targets = { | ||
dev: 'last 2 Chrome versions', | ||
prod: browsers, | ||
test: 'node 10' | ||
}; | ||
|
||
const config = { | ||
env: { | ||
development: { | ||
plugins, | ||
presets: [ | ||
['@babel/preset-env', { modules: false, targets: targets.dev }] | ||
] | ||
}, | ||
production: { | ||
plugins: [ | ||
...plugins, | ||
[ | ||
'@babel/plugin-transform-runtime', | ||
{ helpers: true, regenerator: true } | ||
] | ||
], | ||
presets: [ | ||
['@babel/preset-env', { modules: false, targets: targets.prod }] | ||
] | ||
}, | ||
test: { | ||
plugins, | ||
presets: [ | ||
[ | ||
'@babel/preset-env', | ||
{ modules: 'commonjs', targets: targets.test } | ||
] | ||
] | ||
} | ||
} | ||
}; | ||
|
||
module.exports = config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Precise browser targeting reduces the amount of transpilation we do. | ||
* Dropping IE 11 support would have the greatest impact. | ||
* Read more: https://twitter.com/jamiebuilds/status/1022568923726639104 | ||
*/ | ||
|
||
const browsers = [ | ||
'> 0.05%', | ||
'not dead', | ||
// "not ie 11", | ||
'not android 4.1', | ||
'not android 4.2', | ||
'not android 4.4', | ||
'not android 4.4.3', | ||
'not chrome 29', | ||
'not chrome 43', | ||
'not chrome 49', | ||
'not chrome 54', | ||
'not firefox 47', | ||
'not firefox 48', | ||
'not firefox 51', | ||
'not firefox 52', | ||
'not ios 8.1', | ||
'not ios 9.3', | ||
'not safari 5.1', | ||
'not safari 9.1' | ||
]; | ||
|
||
module.exports = browsers; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
{ | ||
"version": 1, | ||
"name": "magento-venia", | ||
"alias": "magento-venia", | ||
"public": true | ||
"engines": { | ||
"node": "10.x.x" | ||
}, | ||
"public": true, | ||
"version": 1 | ||
} |
Oops, something went wrong.