Skip to content
This repository was archived by the owner on May 11, 2018. It is now read-only.

Commit 03947da

Browse files
baerhzoo
authored andcommitted
Update pathnames to aviod uppercase + consistent with other babel projects
1 parent 181a05a commit 03947da

File tree

14 files changed

+13
-14
lines changed

14 files changed

+13
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ Electron is also an environment, so [Paul went ahead](https://twitter.com/paulcb
9696
}
9797
```
9898

99-
> Currently we are manually updating the data in [/data/electronToChromium.js](https://github.com/babel/babel-preset-env/blob/master/data/electronToChromium.js), but [@kevinsawicki](https://github.com/kevinsawicki) says we could generate the data from [atom-shell/dist/index.json](https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/index.json) as well! (Someone should make a PR :smile:)
99+
> Currently we are manually updating the data in [/data/electron-to-chromium.js](https://github.com/babel/babel-preset-env/blob/master/data/electron-to-chromium.js), but [@kevinsawicki](https://github.com/kevinsawicki) says we could generate the data from [atom-shell/dist/index.json](https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/index.json) as well! (Someone should make a PR :smile:)
100100
101101

102102

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Adding a new plugin to support (when approved in the next ECMAScript version)
44

5-
#### Update [`pluginFeatures.js`](/data/pluginFeatures.js)
5+
#### Update [`pluginFeatures.js`](/data/plugin-features.js)
66

77
Example:
88

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ We can periodically run [build-data.js](/scripts/build-data.js) which generates
3838

3939
### Maintain a mapping between javascript features and babel plugins
4040

41-
> Currently located at [pluginFeatures.js](/data/pluginFeatures.js).
41+
> Currently located at [plugin-features.js](/data/plugin-features.js).
4242
4343
This should be straightforward to do in most cases. There might be cases were plugins should be split up more or certain plugins aren't standalone enough (or impossible to do).
4444

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

scripts/build-data.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@ const path = require("path");
66
const flatten = require("lodash/flatten");
77
const flattenDeep = require("lodash/flattenDeep");
88
const mapValues = require("lodash/mapValues");
9-
10-
const pluginFeatures = require("../data/pluginFeatures");
11-
const builtInFeatures = require("../data/builtInFeatures");
9+
const pluginFeatures = require("../data/plugin-features");
10+
const builtInFeatures = require("../data/built-in-features");
1211

1312
const renameTests = (tests, getName) =>
1413
tests.map((test) => Object.assign({}, test, { name: getName(test.name) }));
@@ -170,6 +169,6 @@ fs.writeFileSync(
170169
);
171170

172171
fs.writeFileSync(
173-
path.join(__dirname, "../data/builtIns.json"),
172+
path.join(__dirname, "../data/built-ins.json"),
174173
JSON.stringify(generateData(environments, builtInFeatures), null, 2) + "\n"
175174
);

src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import pluginList from "../data/plugins.json";
2-
import builtInsList from "../data/builtIns.json";
2+
import builtInsList from "../data/built-ins.json";
33
import browserslist from "browserslist";
4-
import transformPolyfillRequirePlugin from "./transformPolyfillRequirePlugin";
5-
import electronToChromium from "../data/electronToChromium";
4+
import transformPolyfillRequirePlugin from "./transform-polyfill-require-plugin";
5+
import electronToChromium from "../data/electron-to-chromium";
66

77
export const MODULE_TRANSFORMATIONS = {
88
"amd": "transform-es2015-modules-amd",

test/fixtures/plugin-options/filters-duplicates/options.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"plugins": [
3-
["../../../../lib/transformPolyfillRequirePlugin", {
3+
["../../../../lib/transform-polyfill-require-plugin", {
44
"polyfills": [
55
"es6.typed.data-view",
66
"es6.typed.data-view",

test/fixtures/plugin-options/regenerator-false/options.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"plugins": [
3-
["../../../../lib/transformPolyfillRequirePlugin", {
3+
["../../../../lib/transform-polyfill-require-plugin", {
44
"regenerator": false,
55
"polyfills": []
66
}]

test/fixtures/plugin-options/regenerator-true/options.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"plugins": [
3-
["../../../../lib/transformPolyfillRequirePlugin", {
3+
["../../../../lib/transform-polyfill-require-plugin", {
44
"regenerator": true,
55
"polyfills": []
66
}]

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const babelPresetEnv = require("../lib/index.js");
44
const assert = require("assert");
5-
const electronToChromiumData = require("../data/electronToChromium");
5+
const electronToChromiumData = require("../data/electron-to-chromium");
66

77
const {
88
validateModulesOption,

0 commit comments

Comments
 (0)