Permalink
Browse files

Misc (#5545)

* normalize npmignores

* fixup eslint ignore, etc

* lint

* remove unused

* rm from gitignore

* use strict
  • Loading branch information...
hzoo committed Mar 26, 2017
1 parent cff1c8d commit 7a1ccf076c6afc929bb1d6f8531dfa3d5d00ad12
Showing with 249 additions and 309 deletions.
  1. +2 βˆ’5 .eslintignore
  2. +0 βˆ’5 .gitignore
  3. +20 βˆ’19 Gulpfile.js
  4. +2 βˆ’2 Makefile
  5. +1 βˆ’1 packages/babel-cli/.npmignore
  6. +0 βˆ’3 packages/babel-cli/scripts/bootstrap.sh
  7. +1 βˆ’1 packages/babel-code-frame/.npmignore
  8. +2 βˆ’12 packages/babel-core/.npmignore
  9. +0 βˆ’4 packages/babel-core/package.json
  10. +1 βˆ’1 packages/babel-generator/.npmignore
  11. +1 βˆ’1 packages/babel-helper-bindify-decorators/.npmignore
  12. +1 βˆ’1 packages/babel-helper-builder-binary-assignment-operator-visitor/.npmignore
  13. +1 βˆ’1 packages/babel-helper-builder-conditional-assignment-operator-visitor/.npmignore
  14. +1 βˆ’1 packages/babel-helper-builder-react-jsx/.npmignore
  15. +1 βˆ’1 packages/babel-helper-call-delegate/.npmignore
  16. +1 βˆ’1 packages/babel-helper-define-map/.npmignore
  17. +1 βˆ’1 packages/babel-helper-explode-assignable-expression/.npmignore
  18. +1 βˆ’1 packages/babel-helper-explode-class/.npmignore
  19. +1 βˆ’1 packages/babel-helper-fixtures/.npmignore
  20. +1 βˆ’1 packages/babel-helper-function-name/.npmignore
  21. +1 βˆ’1 packages/babel-helper-get-function-arity/.npmignore
  22. +1 βˆ’1 packages/babel-helper-hoist-variables/.npmignore
  23. +1 βˆ’1 packages/babel-helper-optimise-call-expression/.npmignore
  24. +1 βˆ’1 packages/babel-helper-plugin-test-runner/.npmignore
  25. +1 βˆ’1 packages/babel-helper-regex/.npmignore
  26. +1 βˆ’1 packages/babel-helper-remap-async-to-generator/.npmignore
  27. +1 βˆ’1 packages/babel-helper-replace-supers/.npmignore
  28. +1 βˆ’1 packages/babel-helper-transform-fixture-test-runner/.npmignore
  29. +1 βˆ’1 packages/babel-helpers/.npmignore
  30. +1 βˆ’1 packages/babel-messages/.npmignore
  31. +1 βˆ’2 packages/babel-plugin-check-es2015-constants/.npmignore
  32. +2 βˆ’2 packages/babel-plugin-external-helpers/.npmignore
  33. +2 βˆ’2 packages/babel-plugin-syntax-async-functions/.npmignore
  34. +1 βˆ’1 packages/babel-plugin-syntax-async-generators/.npmignore
  35. +2 βˆ’2 packages/babel-plugin-syntax-class-properties/.npmignore
  36. +2 βˆ’2 packages/babel-plugin-syntax-decorators/.npmignore
  37. +2 βˆ’2 packages/babel-plugin-syntax-do-expressions/.npmignore
  38. +2 βˆ’2 packages/babel-plugin-syntax-dynamic-import/.npmignore
  39. +2 βˆ’2 packages/babel-plugin-syntax-exponentiation-operator/.npmignore
  40. +2 βˆ’2 packages/babel-plugin-syntax-export-extensions/.npmignore
  41. +0 βˆ’1 packages/babel-plugin-syntax-flow/.npmignore
  42. +2 βˆ’2 packages/babel-plugin-syntax-function-bind/.npmignore
  43. +2 βˆ’2 packages/babel-plugin-syntax-function-sent/.npmignore
  44. +2 βˆ’2 packages/babel-plugin-syntax-jsx/.npmignore
  45. +2 βˆ’2 packages/babel-plugin-syntax-object-rest-spread/.npmignore
  46. +1 βˆ’2 packages/babel-plugin-syntax-trailing-function-commas/.npmignore
  47. +1 βˆ’2 packages/babel-plugin-transform-async-functions/.npmignore
  48. +1 βˆ’2 packages/babel-plugin-transform-async-generator-functions/.npmignore
  49. +1 βˆ’2 packages/babel-plugin-transform-async-to-generator/.npmignore
  50. +1 βˆ’2 packages/babel-plugin-transform-async-to-module-method/.npmignore
  51. +1 βˆ’2 packages/babel-plugin-transform-class-properties/.npmignore
  52. +1 βˆ’2 packages/babel-plugin-transform-decorators/.npmignore
  53. +1 βˆ’2 packages/babel-plugin-transform-do-expressions/.npmignore
  54. +1 βˆ’2 packages/babel-plugin-transform-es2015-arrow-functions/.npmignore
  55. +1 βˆ’2 packages/babel-plugin-transform-es2015-block-scoped-functions/.npmignore
  56. +1 βˆ’2 packages/babel-plugin-transform-es2015-block-scoping/.npmignore
  57. +1 βˆ’2 packages/babel-plugin-transform-es2015-classes/.npmignore
  58. +1 βˆ’2 packages/babel-plugin-transform-es2015-computed-properties/.npmignore
  59. +1 βˆ’2 packages/babel-plugin-transform-es2015-destructuring/.npmignore
  60. +1 βˆ’1 packages/babel-plugin-transform-es2015-duplicate-keys/.npmignore
  61. +1 βˆ’2 packages/babel-plugin-transform-es2015-for-of/.npmignore
  62. +1 βˆ’2 packages/babel-plugin-transform-es2015-function-name/.npmignore
  63. +1 βˆ’1 packages/babel-plugin-transform-es2015-instanceof/.npmignore
  64. +1 βˆ’2 packages/babel-plugin-transform-es2015-literals/.npmignore
  65. +1 βˆ’1 packages/babel-plugin-transform-es2015-modules-amd/.npmignore
  66. +1 βˆ’2 packages/babel-plugin-transform-es2015-modules-commonjs/.npmignore
  67. +1 βˆ’1 packages/babel-plugin-transform-es2015-modules-systemjs/.npmignore
  68. +1 βˆ’1 packages/babel-plugin-transform-es2015-modules-umd/.npmignore
  69. +1 βˆ’2 packages/babel-plugin-transform-es2015-object-super/.npmignore
  70. +1 βˆ’2 packages/babel-plugin-transform-es2015-parameters/.npmignore
  71. +1 βˆ’2 packages/babel-plugin-transform-es2015-shorthand-properties/.npmignore
  72. +1 βˆ’2 packages/babel-plugin-transform-es2015-spread/.npmignore
  73. +1 βˆ’2 packages/babel-plugin-transform-es2015-sticky-regex/.npmignore
  74. +1 βˆ’2 packages/babel-plugin-transform-es2015-template-literals/.npmignore
  75. +1 βˆ’1 packages/babel-plugin-transform-es2015-typeof-symbol/.npmignore
  76. +1 βˆ’2 packages/babel-plugin-transform-es2015-unicode-regex/.npmignore
  77. +1 βˆ’2 packages/babel-plugin-transform-es3-member-expression-literals/.npmignore
  78. +1 βˆ’2 packages/babel-plugin-transform-es3-property-literals/.npmignore
  79. +1 βˆ’2 packages/babel-plugin-transform-es5-property-mutators/.npmignore
  80. +1 βˆ’2 packages/babel-plugin-transform-eval/.npmignore
  81. +1 βˆ’2 packages/babel-plugin-transform-exponentiation-operator/.npmignore
  82. +1 βˆ’2 packages/babel-plugin-transform-export-extensions/.npmignore
  83. +1 βˆ’2 packages/babel-plugin-transform-flow-comments/.npmignore
  84. +1 βˆ’2 packages/babel-plugin-transform-flow-strip-types/.npmignore
  85. +1 βˆ’2 packages/babel-plugin-transform-function-bind/.npmignore
  86. +1 βˆ’2 packages/babel-plugin-transform-jscript/.npmignore
  87. +1 βˆ’2 packages/babel-plugin-transform-object-assign/.npmignore
  88. +1 βˆ’2 packages/babel-plugin-transform-object-rest-spread/.npmignore
  89. +1 βˆ’2 packages/babel-plugin-transform-object-set-prototype-of-to-assign/.npmignore
  90. +1 βˆ’2 packages/babel-plugin-transform-proto-to-assign/.npmignore
  91. +1 βˆ’2 packages/babel-plugin-transform-react-constant-elements/.npmignore
  92. +1 βˆ’2 packages/babel-plugin-transform-react-display-name/.npmignore
  93. +1 βˆ’2 packages/babel-plugin-transform-react-inline-elements/.npmignore
  94. +1 βˆ’2 packages/babel-plugin-transform-react-jsx-compat/.npmignore
  95. +1 βˆ’2 packages/babel-plugin-transform-react-jsx-self/.npmignore
  96. +1 βˆ’2 packages/babel-plugin-transform-react-jsx-source/.npmignore
  97. +1 βˆ’2 packages/babel-plugin-transform-react-jsx/.npmignore
  98. +1 βˆ’2 packages/babel-plugin-transform-regenerator/.npmignore
  99. +1 βˆ’2 packages/babel-plugin-transform-runtime/.npmignore
  100. +1 βˆ’1 packages/babel-plugin-transform-strict-mode/.npmignore
  101. +1 βˆ’1 packages/babel-polyfill/.npmignore
  102. +4 βˆ’2 packages/babel-polyfill/scripts/postpublish.js
  103. +4 βˆ’2 packages/babel-polyfill/scripts/prepublish.js
  104. +1 βˆ’1 packages/babel-preset-es2015/.npmignore
  105. +1 βˆ’1 packages/babel-preset-es2016/.npmignore
  106. +1 βˆ’1 packages/babel-preset-es2017/.npmignore
  107. +1 βˆ’1 packages/babel-preset-flow/.npmignore
  108. +1 βˆ’1 packages/babel-preset-latest/.npmignore
  109. +1 βˆ’1 packages/babel-preset-react/.npmignore
  110. +1 βˆ’1 packages/babel-preset-stage-0/.npmignore
  111. +1 βˆ’1 packages/babel-preset-stage-1/.npmignore
  112. +1 βˆ’1 packages/babel-preset-stage-2/.npmignore
  113. +1 βˆ’1 packages/babel-preset-stage-3/.npmignore
  114. +1 βˆ’1 packages/babel-register/.npmignore
  115. +3 βˆ’1 packages/babel-runtime/.npmignore
  116. +2 βˆ’1 packages/babel-runtime/scripts/build-dist.js
  117. +1 βˆ’1 packages/babel-template/.npmignore
  118. +1 βˆ’1 packages/babel-traverse/.npmignore
  119. +1 βˆ’1 packages/babel-types/.npmignore
  120. +7 βˆ’5 scripts/babel-register.js
  121. +59 βˆ’58 scripts/generate-babel-types-docs.js
  122. +25 βˆ’21 scripts/generate-interfaces.js
@@ -1,12 +1,9 @@
/lib
scripts
packages/babel-core/src/transformation/templates
packages/babel-runtime
!packages/babel-runtime/scripts
!packages/babel-runtime/core-js.js
packages/*/node_modules
packages/*/lib
packages/*/dist
packages/*/test/fixtures
packages/*/test/tmp
vendor
_babel.github.io
Gulpfile.js
@@ -1,11 +1,8 @@
.DS_Store
node_modules
test/tmp
*.log
*.cache
/.eslintcache
/templates.json
/tests.json
/browser.js
/browser-polyfill.js
/runtime.js
@@ -24,7 +21,5 @@ dist
!/packages/babel-runtime/helpers/es6/toArray.js
/packages/babel-register/test/.babel
/packages/*/lib
_babel.github.io
/tests/.browser-build.js
.nyc_output
/babel.sublime-workspace
@@ -1,16 +1,18 @@
var plumber = require("gulp-plumber");
var through = require("through2");
var chalk = require("chalk");
var newer = require("gulp-newer");
var babel = require("gulp-babel");
var watch = require("gulp-watch");
var gutil = require("gulp-util");
var gulp = require("gulp");
var path = require("path");
"use strict";

var scripts = "./packages/*/src/**/*.js";
const plumber = require("gulp-plumber");
const through = require("through2");
const chalk = require("chalk");
const newer = require("gulp-newer");
const babel = require("gulp-babel");
const watch = require("gulp-watch");
const gutil = require("gulp-util");
const gulp = require("gulp");
const path = require("path");

var srcEx, libFragment;
const scripts = "./packages/*/src/**/*.js";

let srcEx, libFragment;

if (path.win32 === path) {
srcEx = /(packages\\[^\\]+)\\src\\/;
@@ -20,8 +22,8 @@ if (path.win32 === path) {
libFragment = "$1/lib/";
}

var mapToDest = function (path) { return path.replace(srcEx, libFragment); };
var dest = "packages";
const mapToDest = function (path) { return path.replace(srcEx, libFragment); };
const dest = "packages";

gulp.task("default", ["build"]);

@@ -30,9 +32,9 @@ gulp.task("build", function () {
.pipe(plumber({
errorHandler: function (err) {
gutil.log(err.stack);
}
},
}))
.pipe(newer({map: mapToDest}))
.pipe(newer({ map: mapToDest }))
.pipe(through.obj(function (file, enc, callback) {
gutil.log("Compiling", "'" + chalk.cyan(file.path) + "'...");
callback(null, file);
@@ -48,13 +50,12 @@ gulp.task("build", function () {

// TODO: remove this section
// temporarily just copying the old code since watch isn't working
var dest = "packages";
gulp.task("build-watch", function () {
return gulp.src(scripts)
.pipe(plumber({
errorHandler: function (err) {
gutil.log(err.stack);
}
},
}))
.pipe(through.obj(function (file, enc, callback) {
file._path = file.path;
@@ -70,8 +71,8 @@ gulp.task("build-watch", function () {
.pipe(gulp.dest(dest));
});

gulp.task("watch", ["build-watch"], function (callback) {
watch(scripts, {debounceDelay: 200}, function () {
gulp.task("watch", ["build-watch"], function () {
watch(scripts, { debounceDelay: 200 }, function () {
gulp.start("build-watch");
});
});
@@ -19,13 +19,13 @@ watch: clean
./node_modules/.bin/gulp watch

lint:
./node_modules/.bin/eslint packages/ --format=codeframe
./node_modules/.bin/eslint scripts packages Gulpfile.js --format=codeframe

flow:
./node_modules/.bin/flow check

fix:
./node_modules/.bin/eslint packages/ --format=codeframe --fix
./node_modules/.bin/eslint scripts packages Gulpfile.js --format=codeframe --fix

clean: test-clean
rm -rf packages/babel-polyfill/browser*
@@ -1,3 +1,3 @@
src
test
node_modules
*.log

This file was deleted.

Oops, something went wrong.
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,13 +1,3 @@
src
test
*.log
*.cache
.*
/lib/transformation/templates
/test
/dist
/tests.json
/CHANGELOG.md
/.package.json
/packages
/scripts
/src
_babel.github.io
@@ -21,10 +21,6 @@
"babel-core",
"compiler"
],
"scripts": {
"bench": "make bench",
"test": "make test"
},
"dependencies": {
"babel-code-frame": "7.0.0-alpha.3",
"babel-generator": "7.0.0-alpha.3",
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,4 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
src
test
node_modules
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,2 @@
node_modules
*.log
src
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,3 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,4 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,4 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,4 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,4 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,4 +1,3 @@
node_modules
*.log
src
test
*.log
@@ -1,4 +1,3 @@
node_modules
*.log
src
test
*.log
Oops, something went wrong.

0 comments on commit 7a1ccf0

Please sign in to comment.