Commit graph

77 commits

Author SHA1 Message Date
Spencer
d8d65526c6 [eslint] enable no undef (#10825)
* [codeshift] add proper ignore comments

* [codeshift] apply require-to-import transform

* [codeshift/fixup] remove duplicate imports

* [eslint] upgrade config for react "unused" support

* [codeshift] apply remove-unused-imports transform

* [codeshift] apply remove-unused-basic-requires transform

* [codeshift] apply remove-unused-function-arguments transform

* [lintroller] fix argument list spacing

* [codeshift] apply remove-unused-basic-bars transform

* [codeshift/fixup] fixup unused basic var removals

* manually apply remove-unused-assignments transform

* [codeshift] reapply remove-unused-imports transform

* [codeshift] reapply remove-unused-function-arguments transform

* [eslint] autofix param spacing

* manually fix remaining no-undef errors

* use more descriptive file ignore pattern

* add eslint-plugin-react peerDependency

* replace values that looked unused in tests

* remove // kibana-jscodeshift-no-babel comment

* remove import statements from code required by api tests

* Remove '// kibana-jscodeshift-ignore' comments

* address review feedback

* remove remnant of removed if condition
2017-03-22 07:08:23 -07:00
Richard Hoffman
8b4c052889 babel 6 upgrade (#9702)
* [npm] upgrade babel

The upgrade to babel 6 requires an upgrade to all of the associated modules, which meant that a few other things changed at the same time. The most notable is the way that we handle our babel-options, which is now done with an npm module and includes using the babel-loader's "presets" query string param.

This meant changes to the babel_options.js module and extending it to help setting up the "babel-register" module, which was previously copy-pasted in several places.

* [mtodules] upgrade to support babel6 module semantics

* [eslint] fix lint errors

* [babel] ignoer massive fixture files

* [cli/errors] use Object.setPrototypeOf since subclassing Error is broken

* [babel] Upgrading core babel libraries

[babel] Use WIP babel-6-fix branch of babel-preset-kibana

* Fix broken test

* [babel] Reverse unnecessary module.exports changes

* Fix notifier

* Use babel presets and plugins directly

* [babel/options] resolve preset/plugins paths for better plugin compatibility

* [babel/options] use babel-preset-env for correct node settings

* [babel] cache babel compilation in webpack like we thought we were
2017-02-09 14:48:55 -07:00
Spencer
0c736724b0 Upgrade eslint (#9357)
* upgrade eslint, all related deps, and config files

* replace gruntify-eslint with basic eslint-cli wrapper

* arrow-IIFEs must be invoked outside of the parens

* move import statements before their use

* reindent to satisfy new indentation check algorithm

* place missing semicolon

* ignore copy-pasted decode geohash code

* [grunt/eslint] fix argument spacing

* [gurnt/eslint] add comment about contents of report

* [grunt/tasks] use `export default`
2016-12-12 13:44:18 -07:00
Court Ewing
9d79d8bc63 build: remove deepModules hackery (#9327)
The deepModules hacks in the build system were added to support the long
paths that resulted from npm2, but npm3 fundamentally addresses that
problem, so deepModules is no longer necessary. In practical terms, npm3
shouldn't ever cause path lengths to become so long that they trigger
path length problems on certain operating systems.
2016-12-01 19:52:37 -05:00
Rashid Khan
3265451e62 Fix redefined variables 2016-08-12 14:52:43 -07:00
Court Ewing
2b842b0904 Remove rebuild task
This is a manual revert of 28aa6c9, which is not very useful with the
new build tasks, completely brittle, and a flawed idea from the start. I
regret having written it.
2016-07-22 16:40:06 -04:00
CJ Cenizal
f23d98e7db Merge pull request #7591 from cjcenizal/refactor/remove-angular-bootstrap-dependency
Remove angular-bootstrap dependency.
2016-07-05 15:41:14 -07:00
CJ Cenizal
b08f016cc6 Replace compiled angular-bootstrap file with original HTML and JS source files. 2016-07-05 12:27:20 -07:00
Jonathan Budzenski
81efe3b734 [folder structure] src/plugins -> src/core_plugins 2016-07-05 14:06:43 -05:00
spalger
7d9f7adcf9 [ci] Run the karma tests in Chrome on CI 2016-07-01 12:22:20 -07:00
Court Ewing
834f56392e Apply -snapshot suffix during build task
The default behavior of the build task is to now apply the -snapshot
suffix dynamically rather than us manually hardcoding and managing it
within the source code itself. The `--release` flag will drop the
-snapshot suffix on a build, which should be used for any release
candidate.

The default behavior of the build task has also changed to create
rpm/deb packages as well. Since we've only confirmed that this works on
linux, you can override that behavior by passing `skip-os-packages`.

If you do not want to create any zip or tar.gz archives, you can pass
`--skip-archives`.
2016-06-11 15:57:30 -04:00
Jonathan Budzenski
08c9897986 [build] Commit install/remove scripts instead of generating, stop service before removing 2016-05-27 10:34:25 -05:00
Court Ewing
28aa6c9b9c [grunt] Task to rebuild archives with new version
This is useful for when a pre-release build is completely tested and
could be released as-is if it weren't for the pre-release suffix and
commit hash. It will extract the archives in the target, replace the
version, sha, and build numbers with the current working copy's, and
then recreate the archives and shas.
2016-05-17 15:30:25 -04:00
Court Ewing
d8fdbb8151 [build] readable-stream as a deep module for windows
The current dependency tree is now too deep to extract successfully on
windows, but adding readable-stream to the deepModules config in the
build process gets us back under the limit.
2016-04-28 17:33:58 -04:00
spalger
caf7331a48 [filenames] allow rule-breaking in docs, tasks/config, and webpackShims 2016-03-11 16:42:19 -07:00
spalger
8d497f6999 [es6ify] gruntfile 2016-03-10 12:42:45 -07:00
spalger
0574f59d24 [grunt] require opt-into different task name 2016-03-10 11:40:21 -07:00
spalger
07e20936b5 [grunt/config] rename config for snake_cased tasks 2016-03-07 14:38:49 -07:00
spalger
af9ebba958 [rename] hunt down remaining non-snake path refs 2016-02-24 14:18:21 -08:00
spalger
ba19a81dd2 testUtils -> test_utils 2016-02-24 13:00:46 -08:00
Jonathan Budzenski
6e48ccc443 Prevent linting fixtures 2015-11-12 17:09:46 -06:00
Joe Fleming
1387efb92b lint the functional tests 2015-11-11 15:45:24 -07:00
Jonathan Budzenski
bb85a6c244 Merge branch 'master' into functional-testing 2015-09-18 09:09:14 -05:00
Rashid Khan
b7e667df76 Revert npm3, go back to npm2 2015-09-14 13:39:17 -07:00
Jonathan Budzenski
7b8374b7c8 Add intern task to grunt and associated npm script 2015-09-02 14:07:20 -05:00
spalger
708f1f1a25 [node] downgrade to 0.12.7
While working to reintroduce shrinkwrap into our workflow it became
apparent that we needed to be using npm3 but unfortunately node-gyp
is not compatible with iojs, and the iojs distros actually contain a
patched version. This means that you can only use iojs with the npm
it ships with.

When trying to find a solution for this issue, we contemplated not
using npm3, but that would mean that we can't use npm-shrinkwrap and
decided that since we are using babel anyway that switching back to
node was the best option.

The only code that must be updated to work in the new node 0.12 env
is lodash templates that use the template string syntax inside their
source (Since 0.12 does not support template strings).
2015-08-31 21:58:46 -07:00
spalger
fa35652bd8 [babel] configure babel to use native generators in node 2015-08-27 19:06:50 -07:00
spalger
faa1011bbd upgrade to npm 3.0 2015-08-26 16:36:19 -07:00
spalger
32c0b1c3ac [karma] override the browser with a cli argument 2015-08-18 15:33:29 -07:00
spalger
552b824711 [build] finish updates 2015-08-14 11:53:26 -07:00
spalger
e4c4bcc513 [build] move some select node modules up in the tree to prevent paths over windows limit 2015-08-14 11:51:23 -07:00
spalger
ce366a06f4 [build] initial fix 2015-08-13 21:16:54 -07:00
spalger
ee83c4103c [build/downloadNode] async/await 2015-08-13 15:43:58 -07:00
spalger
cd5b6656aa fixed the test bundling 2015-08-07 11:49:56 -07:00
spalger
e977e642d5 switch from eslint cli to gruntify-eslint 2015-08-03 09:35:31 -07:00
spalger
e0d78a8475 switch to eslint 2015-07-31 17:16:09 -07:00
spalger
f9897a3773 added grunt tasks for jenkins and travis 2015-07-28 09:45:10 -07:00
spalger
992e3968a7 karma config for travis 2015-07-27 17:39:46 -07:00
spalger
cfc398b37d remove bower, nice people matter 2015-07-27 17:13:45 -07:00
spalger
20bdb65a25 remove debug statements 2015-07-22 16:21:49 -07:00
spalger
15864363d5 It has been a while.. sorry 2015-07-20 15:29:48 -07:00
spalger
abfe91991a move debug spy to devMode, and move basic spyModes to a plugin 2015-07-16 00:00:42 -07:00
spalger
900126541c clean up old grunt tasks 2015-07-15 22:15:56 -07:00
Spencer Alger
e809f4b718 Merge branch 'master' of github.com:elastic/kibana into apps/home 2015-07-09 20:18:26 -07:00
Spencer Alger
3ceaf12216 unwrap ui source 2015-06-25 16:00:20 -07:00
Spencer Alger
0edf82145c defaultRoute implemented, redirect when missing a slash 2015-06-25 15:44:06 -07:00
Spencer Alger
2181f32a3b fix less building 2015-06-25 10:31:50 -07:00
Khalah Jones-Golden
61193f893c [Status] Some code cleanup, added server less to watch adnd less, adjsted some css for proper display, updated code to work again 2015-06-25 11:12:18 -04:00
Khalah Jones-Golden
dd220a783c merged with latest master 2015-06-19 17:28:16 -04:00
Khalah Jones-Golden
afff72fc8d [StatusPage] Moved styles into their own file, fixed tick formatting problems on the charts 2015-05-12 12:17:44 -04:00