Commit Graph

8 Commits (41beaf0bd54d8709d4ff25c054625c96a2ceb177)

Author SHA1 Message Date
Alex Boatwright a1cecbf56a
fix(ui): make a more deterministic build (#15820) 2019-11-11 14:05:48 -08:00
Alex Boatwright a04a95d48d
feat(ui): adding bundle analyzer for prod and dev (#15749) 2019-11-04 14:12:18 -08:00
Alex Boatwright f08152c77c
chore(ui): allow deployment configuration (#15383)
hopefully this commit doesnt do anything, but it opens up the ability to
change the static folder of the project through the environment variable
STATIC_FOLDER so that we can cache static files and not cache the index
file (allowing more passive deployment strategies), and allows the user
to change the base path of the project with the BASE_PATH variable,
opening up the ability to run an instance behind an nginx proxy,
though that change is pending an update to the @influxdata/oats package
before we can turn it on
2019-10-11 12:17:49 -07:00
Chris Goller af5996fe45
build(webpack): add source maps for @influxdata/giraffe prod builds (#14908)
* build(webpack): add source maps for @influxdata/giraffe prod builds

We were getting runtime errors in the prod builds via honeybadger.
They were unreadable because we did not have source maps for giraffe.

We were only able to get this working for prod builds but not dev
despite trying putting it in the webpack common file.  This is good
'nuff for our purpose now, but maybe we'll need further investigation.

Bonus commit... I added a new make target of influxd so I would not
need to type so much.

Co-authored-by: Andrew Watkins <watts@influxdb.com>

* build(webpack): add clockface source maps to production build

 Co-authored-by: Andrew Watkins <watts@influxdb.com>
2019-09-04 09:00:20 -05:00
Christopher Henn 90a8138c95 chore(ui): disable eslint via fork-ts-checker-webpack-plugin
Disables running ESLint through the fork-ts-checker-webpack-plugin in
development, due to its tendency to overuse CPU.

I think this OK since linter errors, unlike typechecking errors, are
usually confined to the file you are working within. So they're a good
fit to run via an editor, rather than the build tool.
2019-08-13 14:11:33 -07:00
Andrew Watkins 841f22cbee
build(webpack): fix hashing and css hmr (#14552) 2019-08-03 11:36:58 -07:00
Christopher Henn 15f33dc88d fix(ui): enable source maps in production 2019-08-02 14:45:42 -07:00
Andrew Watkins d2933cc184
build(webpack): parcel to webpack (#14410)
* build(ts): add ts webpack dependencies and config

* wip(webpack.dev): css and js compiling

* wip(webpack): building assets with watch

* fix(webpack): fix page reloads not serving assets

* build(webpack): fork typechecking

* chore(webpack): rename dev config

* build(webpack): add production config

* build(webpack): add process vendor in separate build

* build(webpack): change dev source map

* build(webpack): dont lint in prod builds

* build(webpack): move reduce redundancy for GIT_SHA

* docs(ui): update README

* build(webpack): add hash to production build
2019-07-23 14:10:34 -07:00