Commit Graph

555 Commits

Author SHA1 Message Date
Łukasz Mierzwa
31feb0c3d7 Merge pull request #159 from cloudflare/jquery-typing
Jquery typing update
2017-08-08 12:06:48 -07:00
Łukasz Mierzwa
1b657c42ce Update git ignore file 2017-08-08 12:03:33 -07:00
Łukasz Mierzwa
55c722773a Resume auto-refresh on backspace
Right now if user starts typing & then starts pressing backspace we pause but never resume, because stopping pressing backspace is ignored when resuming.
2017-08-08 12:03:33 -07:00
Łukasz Mierzwa
937f12e5e0 Update jquery.typing to 0.3.2 2017-08-08 11:57:38 -07:00
Łukasz Mierzwa
4c5fc4870f Merge pull request #162 from cloudflare/gzip
Use gzip middlerware to compress responses if client can accept compr…
2017-08-08 11:31:47 -07:00
Łukasz Mierzwa
38339c887e Use gzip middlerware to compress responses if client can accept compressed content
Some alert.json responses are going to be big, compress it to save bandwidth
2017-08-08 11:28:17 -07:00
Łukasz Mierzwa
7d1f40ef44 Merge pull request #161 from cloudflare/js-source-maps
Enable source map generation in webpack
2017-08-08 11:26:54 -07:00
Łukasz Mierzwa
404cc47f5f Enable source map generation in webpack
JS files are minified, enabling source map generation will help with debugging. Sentry can also use source maps for better exceptions.
2017-08-08 11:22:30 -07:00
Łukasz Mierzwa
987013d4ca Merge pull request #160 from cloudflare/webpack-prod
Automatically disable webpack production mode when NODE_ENV=test is set
2017-08-08 11:21:02 -07:00
Łukasz Mierzwa
c5bff9d062 Automatically disable webpack production mode when NODE_ENV=test is set
This will speed up local development and CI runs (5s vs 30s)
2017-08-08 11:16:07 -07:00
Łukasz Mierzwa
b0b7e94e86 Merge pull request #155 from cloudflare/cache-vendor
Stop committing vendor dir to git
2017-08-08 11:14:16 -07:00
Łukasz Mierzwa
558cbc737b Cache vendor dir on travis
This will avoid slow clones on CI
2017-08-08 11:01:29 -07:00
Łukasz Mierzwa
b8acd53505 Git ignore vendor folder 2017-08-08 11:01:29 -07:00
Łukasz Mierzwa
4aa187674c Call vendor make target when building binary
This will ensure vendor dir is populated
2017-08-08 11:01:29 -07:00
Łukasz Mierzwa
b4329bcf80 Stop commiting vendor dir to git 2017-08-08 11:01:29 -07:00
Łukasz Mierzwa
d693a774df Merge pull request #154 from cloudflare/npm-fixes
Update package-lock.json
2017-08-08 11:00:56 -07:00
Łukasz Mierzwa
586cef4934 Use nodejs 8.x on travis
Latest nodejs is faster and handles package-lock.json better
2017-08-04 21:49:22 -07:00
Łukasz Mierzwa
0d045a8d6f Update package-lock.json
It wasn't updated because I was using npm 3.x which doesn't properly maintain this file upon npm install
2017-08-04 21:49:22 -07:00
Łukasz Mierzwa
05ee04d439 Merge pull request #153 from cloudflare/internal-packages
Convert all packages to be internal
2017-08-04 16:24:35 -07:00
Łukasz Mierzwa
5d4ae47888 Convert all packages to be internal
Internal packages are supported by Go 1.5+, any package in /internal/ dir is only importable from the same repo. This will cleanup main dir a bit and provide better namespace for unsee subpackages
2017-08-04 16:21:27 -07:00
Łukasz Mierzwa
5773ab2cb6 Merge pull request #150 from cloudflare/jest
Jest & webpack
2017-08-04 16:20:54 -07:00
Łukasz Mierzwa
13703d0616 Use webpack & eslint from node_modules dir that we manage 2017-08-04 14:28:01 -07:00
Łukasz Mierzwa
c8ef373b59 Update webpack to the latest stable version 2017-08-03 22:47:46 -07:00
Łukasz Mierzwa
bea01196b3 Add more watchdog tests 2017-08-02 20:58:05 -07:00
Łukasz Mierzwa
ae5f0e39ae remove dead code from templates.test.js 2017-08-02 20:57:24 -07:00
Łukasz Mierzwa
90646a3727 Fix is-in-viewport mock to return true 2017-08-02 20:11:32 -07:00
Łukasz Mierzwa
eb21642103 Add reload tests 2017-07-30 21:35:01 -07:00
Łukasz Mierzwa
b6d5a5614e Run end-to-end tests for unsee.js
This will allow to test entire alerts flow - get alerts.json response (via mocks) and render alerts
2017-07-30 21:08:11 -07:00
Łukasz Mierzwa
6bd6f63c7c Enable node mode in eslint and remove uneeded overrides 2017-07-30 20:19:06 -07:00
Łukasz Mierzwa
2020099987 Mock templates so we actually load and parse all of them 2017-07-30 20:18:32 -07:00
Łukasz Mierzwa
bd249e4c02 Proper behaviour tests for ui.js
Checks whenever code does what it suppose to, not only if it runs
2017-07-30 17:25:10 -07:00
Łukasz Mierzwa
0a1443c18f Enable caching in webpack & babel
Saves ~5s per build
2017-07-30 15:53:28 -07:00
Łukasz Mierzwa
558ace10fc More coverage in the ui.js module tests 2017-07-30 15:53:28 -07:00
Łukasz Mierzwa
f6078d9f1f Add proper counter.js tests 2017-07-29 23:14:42 -07:00
Łukasz Mierzwa
8cc8e505c2 Cache node_modules
So we don't need to download everything on every CI run
2017-07-29 17:30:50 -07:00
Łukasz Mierzwa
3eb1e0cafd Test color.merge() 2017-07-29 16:57:36 -07:00
Łukasz Mierzwa
2c1ee0eb58 Speedup webpack boundles generation
we don't use moment locale and prefetch will speed up bundle generation
2017-07-29 16:50:25 -07:00
Łukasz Mierzwa
83f291a5ae Move jest coverage dir to .coverage 2017-07-29 16:29:12 -07:00
Łukasz Mierzwa
89223e8fbd Move all imports to head to avoid unstyled html on load 2017-07-29 16:26:28 -07:00
Łukasz Mierzwa
f202232be8 Version all bundles
This will tell webpack to add a hash to all bundles filenames, we generate script tags for loading those and inject them as templates. No more forced cache bypassing
2017-07-29 16:19:48 -07:00
Łukasz Mierzwa
f15476af6a Drop version from package.json and add repository info 2017-07-29 15:00:20 -07:00
Łukasz Mierzwa
87ea13c8ee Update docs 2017-07-29 14:56:12 -07:00
Łukasz Mierzwa
91b55faf90 Drop old assets Makefile
No longer needed since webpack handles it now
2017-07-29 14:56:07 -07:00
Łukasz Mierzwa
566de0c347 Fix nprogress usage and styling 2017-07-29 14:43:51 -07:00
Łukasz Mierzwa
557c55dc64 Add a bundle for /help page 2017-07-29 14:22:55 -07:00
Łukasz Mierzwa
7e54742b94 npm install will be done as part of make test, no need to duplicate it 2017-07-29 14:02:45 -07:00
Łukasz Mierzwa
92562552db Add missing deps 2017-07-29 13:58:41 -07:00
Łukasz Mierzwa
a694add079 Fix css selectors not firing with webpack 2017-07-29 13:54:14 -07:00
Łukasz Mierzwa
4a75acfdc1 Fix asset paths in tests 2017-07-29 13:53:40 -07:00
Łukasz Mierzwa
614ccacd35 Pin github deps 2017-07-29 13:52:57 -07:00