Commit Graph

525 Commits

Author SHA1 Message Date
Ł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
Łukasz Mierzwa
5ec0340f1c Strict mode for js files, fix minor typos 2017-07-29 13:48:36 -07:00
Łukasz Mierzwa
a640f86114 bootstrap-loader config file 2017-07-29 13:48:36 -07:00
Łukasz Mierzwa
56f3b01dac webpack config 2017-07-29 13:48:36 -07:00
Łukasz Mierzwa
a19a84cf9d Add npm package config with dependencies 2017-07-29 13:48:35 -07:00
Łukasz Mierzwa
fc0cc1c337 Fix remaining requires 2017-07-29 13:48:35 -07:00
Łukasz Mierzwa
17f1e2c811 Fix watchdog requires 2017-07-29 13:48:35 -07:00
Łukasz Mierzwa
e963a3fd6c Rewrite unsee.js as CommonJS, add basic test 2017-07-29 13:48:35 -07:00
Łukasz Mierzwa
15227f4256 Add missing require, add basic test 2017-07-29 13:48:35 -07:00
Łukasz Mierzwa
ccba7f66eb Rewrite silence.js as CommonJS, add basic test 2017-07-29 13:48:33 -07:00
Łukasz Mierzwa
2f4cd1bc9a Rewrite config.js as CommonJS and split options to dedicated file, add basic tests 2017-07-29 13:47:08 -07:00
Łukasz Mierzwa
0db288e5bf Rewrite alerts.js as CommonJS, add tests 2017-07-29 13:47:06 -07:00
Łukasz Mierzwa
b2f99902f7 Fix tests 2017-07-29 13:45:33 -07:00