Commit Graph

537 Commits

Author SHA1 Message Date
Ł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
Łukasz Mierzwa
9770ffbaf2 Mock asset requires in jest tests 2017-07-29 13:52:57 -07:00
Łukasz Mierzwa
ca1081f461 Correctly bundle favicon.ico file 2017-07-29 13:52:55 -07:00
Łukasz Mierzwa
8f5c246297 Move to fully webpack managed assets 2017-07-29 13:52:07 -07:00
Łukasz Mierzwa
6105ae87d2 Get rid of last managed assets, everything is in webpack now 2017-07-29 13:51:29 -07:00
Łukasz Mierzwa
b08d203a04 Make is-in-viewport work with webpack 2017-07-29 13:50:55 -07:00
Łukasz Mierzwa
df2ef92466 Use package.json for all deps 2017-07-29 13:50:21 -07:00
Łukasz Mierzwa
ac606d3972 Install jest on travis 2017-07-29 13:50:20 -07:00
Łukasz Mierzwa
70296853c5 Add missing css imports 2017-07-29 13:50:18 -07:00
Łukasz Mierzwa
f4397a8bf0 Fix css rules in webpack 2017-07-29 13:49:46 -07:00
Łukasz Mierzwa
2ad3ec18b8 Rebuild assets before compiling binary 2017-07-29 13:49:46 -07:00
Łukasz Mierzwa
7f4ec13956 disable eslint check on circular function, for now 2017-07-29 13:49:46 -07:00
Łukasz Mierzwa
790be51624 jshint is no longer used 2017-07-29 13:49:46 -07:00
Łukasz Mierzwa
68b5c56a76 Install npm deps in Makefile 2017-07-29 13:49:46 -07:00
Łukasz Mierzwa
18f12a2c83 update eslint config file to use ES6 mode 2017-07-29 13:49:46 -07:00
Łukasz Mierzwa
895fa24456 update git ignore files to exclude dev dirs 2017-07-29 13:49:45 -07:00
Łukasz Mierzwa
f8a60936a7 lru is now managed via npm 2017-07-29 13:49:43 -07:00
Łukasz Mierzwa
685c14303d Drop old managed js files 2017-07-29 13:49:03 -07:00
Łukasz Mierzwa
8fa80a944f update templates 2017-07-29 13:49:01 -07:00