Skip to content
This repository was archived by the owner on May 2, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
124d89f
Added babel.config.js to eslint ignore
jaredrethman Oct 26, 2019
50b837e
Replace .babelrc with babel.config.js
jaredrethman Oct 26, 2019
75527fa
Enforce engineStrict. Remove package.json property and added .npmrc.
jaredrethman Oct 26, 2019
b864cf7
Updated all npm packages
jaredrethman Oct 26, 2019
1fb6882
Updated CleanWebpackPlugin assignment to named export, required in la…
jaredrethman Oct 26, 2019
ac2b976
Revert styelint updates
jaredrethman Oct 26, 2019
a9b3afd
package-lock regen and removed unintendedly added packages
jaredrethman Oct 27, 2019
f07e72d
Removing side effects of unintended packages
jaredrethman Oct 27, 2019
ef1d2a6
Adding corejs v3 requirements in babel.config
jaredrethman Oct 27, 2019
80f15e6
Updated babel.config to return a function, using api.cache to set cac…
jaredrethman Oct 27, 2019
6a2bd54
Updated README with Node version constraint
jaredrethman Oct 27, 2019
da25e7b
Better babel.config caching
jaredrethman Oct 27, 2019
df8bd92
package-lock with updates
jaredrethman Oct 27, 2019
885c41a
Caniuse-db v-bump
jaredrethman Oct 27, 2019
b26fa23
Removed unintended leading lash from browsersync proxy url
jaredrethman Oct 27, 2019
276bdcc
Re adding global variable declaration to webpack.common, sans process…
jaredrethman Oct 27, 2019
fbf02b8
babel config inline documentation
jaredrethman Oct 27, 2019
9e34503
Minor & patch updates
jaredrethman Jan 6, 2020
57a0ce7
Merge remote-tracking branch 'origin/master' into update-all-npm
jaredrethman Jan 6, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .babelrc

This file was deleted.

12 changes: 7 additions & 5 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
{
"extends": "@10up/eslint-config",
"globals": {
"wp": true,
"lodash": true
}
"extends": "@10up/eslint-config",
"globals": {
"module": true,
"process": true,
"wp": true,
"lodash": true
}
}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict=true
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Dependencies

1. [Node & NPM](https://www.npmjs.com/get-npm) - Build packages and 3rd party dependencies are managed through NPM, so you will need that installed globally.
1. [Node >= 8.11 & NPM](https://www.npmjs.com/get-npm) - Build packages and 3rd party dependencies are managed through NPM, so you will need that installed globally.
2. [Webpack](https://webpack.js.org/) - Webpack is used to process the JavaScript, CSS, and other assets.
3. [Composer](https://getcomposer.org/) - Composer is used to manage PHP.

Expand Down
48 changes: 48 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
/**
* Babel Config.
*
* @param {Object} api
* @returns {{presets: {Object}}}
*/
module.exports = api => {

/**
* @link https://babeljs.io/docs/en/config-files#apicache
*/
api.cache.using( () => 'development' === process.env.NODE_ENV );

/**
* Presets
*
* @link https://babeljs.io/docs/en/presets
* @type {Array}
*/
const presets = [
[
/**
* @link https://babeljs.io/docs/en/babel-preset-env#corejs
*/
'@babel/preset-env',
{
useBuiltIns: 'usage',
corejs: {
version: 3,
proposals: true
},
}
],
];

/**
* Plugins
*
* @link https://babeljs.io/docs/en/plugins
* @type {Array}
*/
const plugins = [];

return {
presets,
plugins
};
};
4 changes: 2 additions & 2 deletions config/webpack.common.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* global process, module, require */
/* global require */

const path = require( 'path' );
const CleanWebpackPlugin = require( 'clean-webpack-plugin' );
const { CleanWebpackPlugin } = require( 'clean-webpack-plugin' );
const CopyWebpackPlugin = require( 'copy-webpack-plugin' );
const FixStyleOnlyEntriesPlugin = require( 'webpack-fix-style-only-entries' );
const MiniCssExtractPlugin = require( 'mini-css-extract-plugin' );
Expand Down
2 changes: 0 additions & 2 deletions config/webpack.settings.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
/* global module */

// Webpack settings exports.
module.exports = {
entries: {
Expand Down
Loading