Commit Graph

495 Commits

Author SHA1 Message Date
Hardy Jones
00d61cb76b
Set the SHELL explicitly
On macOS/OSX, the shell is `/bin/sh`.
Most of the `elm` commands don't seem to work in `/bin/sh`.

If we use `/bin/bash`, the commands seem to work.
2018-03-28 12:05:11 -07:00
Jasper Woudenberg
330cce6a72
Merge pull request #19 from NoRedInk/joneshf-patch-1
Turn off email notifications
2018-03-28 20:12:59 +02:00
Jasper Woudenberg
5f5a060dd2
Merge branch 'master' into joneshf-patch-1 2018-03-28 19:56:09 +02:00
Michael Glass
23fd05e227
Merge pull request #20 from NoRedInk/makefile-uncontroversial
add a Makefile, speed up CI
2018-03-28 13:28:48 +02:00
Brian Hicks
89ee987118
cache slightly more aggressively to avoid downloads 2018-03-27 22:28:16 -05:00
Brian Hicks
a756a0a685
try node_modules again, while always saying to remake the dep targets 2018-03-27 22:23:32 -05:00
Brian Hicks
0515f1fbd6
how about caching elm packages!? 2018-03-27 22:19:13 -05:00
Brian Hicks
732a25a5cd
un-cache node_modules, which causes errors for some reason? 2018-03-27 22:16:57 -05:00
Brian Hicks
0fce84dc5e
update README with test/ci instructions 2018-03-27 22:14:55 -05:00
Brian Hicks
c3acc165d6
automatically calculate output file name 2018-03-27 22:14:24 -05:00
Brian Hicks
199b219a97
cache node_modules, too 2018-03-27 22:11:03 -05:00
Brian Hicks
30be6bfa06
define what I know node_modules will be later now
Travis can't determine what node_modules will be if it doesn't exist
yet, so it fails and has to retry. No need for that, so we'll just put
it where we know it will be.
2018-03-27 22:07:51 -05:00
Brian Hicks
6b717c6166
🎨 remove extra line 2018-03-27 22:04:00 -05:00
Brian Hicks
8923998ad8
use ci target 2018-03-27 22:03:45 -05:00
Brian Hicks
c14d5abc92
split out top level test targets 2018-03-27 22:00:47 -05:00
Brian Hicks
0cac3bf06b
combine sub-elm-stuffs 2018-03-27 22:00:36 -05:00
Brian Hicks
f9947b796b
use the right wildcard syntax 2018-03-27 21:42:59 -05:00
Brian Hicks
9298f45c16
inhibit parallel elm-package invocations, while allowing other parallel stuff 2018-03-27 21:37:47 -05:00
Brian Hicks
1e95da847b
add proper cleaning 2018-03-27 21:37:41 -05:00
Brian Hicks
4baed94472
cache more 2018-03-27 21:37:21 -05:00
Brian Hicks
19917279ba
be a little less eager about package installation 2018-03-27 21:32:45 -05:00
Brian Hicks
e15046d968
use travis_retry for transient network things 2018-03-27 21:31:05 -05:00
Brian Hicks
11255f2d88
fix paths 2018-03-27 21:28:49 -05:00
Brian Hicks
389c699f78
require less setup from Travis 2018-03-27 21:16:50 -05:00
Brian Hicks
c24e1641e3
download everything as parallel as possible 2018-03-27 21:14:16 -05:00
Brian Hicks
c1be619f59
be explicit about node_modules dependency 2018-03-27 21:13:14 -05:00
Brian Hicks
db726c5654
fix typo 2018-03-27 21:13:10 -05:00
Hardy Jones
13f605c58e
Turn off email notifications 2018-03-27 15:13:34 -07:00
Brian Hicks
98188d703e
separate styleguide-app's build 2018-03-27 17:01:08 -05:00
Brian Hicks
85a5157325
replace travis build with a Makefile
very on brand, yes?
2018-03-27 16:58:12 -05:00
Brian Hicks
a9361886f3
set versions with npm 2018-03-27 16:42:26 -05:00
Hardy Jones
fe7d580c5d
Merge commit '832c35b' into HEAD 2018-03-27 14:07:54 -07:00
Hardy Jones
832c35b3f8
Bump version to 3.5.1 2018-03-27 14:02:56 -07:00
Hardy Jones
7024806038
Bump version to 3.5.0 2018-03-27 14:02:16 -07:00
Hardy Jones
fe62d1633b
Merge pull request #17 from NoRedInk/expose-segmented-control-version-two
Expose v2 of segmented control
2018-03-27 13:57:25 -07:00
Hardy Jones
d3b7fe9c2d
Merge branch 'master' into expose-segmented-control-version-two 2018-03-27 13:53:02 -07:00
Hardy Jones
31604bfcce
Merge pull request #15 from NoRedInk/add-tests
Add elm tests
2018-03-27 13:49:53 -07:00
Hardy Jones
ee4343a046
Expose v2 of segmented control 2018-03-27 13:42:40 -07:00
Jasper Woudenberg
49f2f08948 Merge branch 'master' into add-tests 2018-03-27 16:27:52 +02:00
Jasper Woudenberg
c410e61a65 Fix error in .travis.yml
The style-guide compilation test was missing a `--yes` in the `elm-make`
command. As a result, the travis build would hang waiting for user
input.
2018-03-27 16:27:00 +02:00
Jasper Woudenberg
d41b889c2a Enable elm-test in .travis.yml 2018-03-27 16:22:18 +02:00
Jasper Woudenberg
19e58c4c23 Merge branch 'master' into add-tests 2018-03-27 16:21:47 +02:00
Jasper Woudenberg
c20b3b8936
Merge pull request #16 from NoRedInk/add-travis-yaml
Add a .travis.yaml
2018-03-27 16:17:33 +02:00
Jasper Woudenberg
04fb81d2da Add a .travis.yaml
For the most part this is shamelessly lifted from elm-spa-example:

https://github.com/rtfeldman/elm-spa-example/blob/master/.travis.yml

elm-test support is in there, but not yet enabled because we don't have
any tests yet.
2018-03-27 16:13:23 +02:00
Jasper Woudenberg
fd88711766 Add tests for checkbox
These tests are fresh from the monolith.
2018-03-27 15:59:09 +02:00
Jasper Woudenberg
07076cea55
Merge pull request #14 from NoRedInk/segmented-control-styling-fixes
Segmented control styling fixes
2018-03-27 13:47:56 +02:00
Hardy Jones
349e9760a3
Use V2 of the segmented control in the style guide 2018-03-26 19:56:20 -07:00
Hardy Jones
a00262c3aa
Set the backround color directly
The `initial` `background-color` is `transparent`.
We got away with not setting the background color before
as we were always using segmented controls on top of white backgrounds.

We now want to use a segmented control atop a non-white background,
so we have to explicitly set the `background-color`.
2018-03-26 19:53:33 -07:00
Hardy Jones
7ebb488786
Style the tabs directly
tl;dr; Use a class for each variant instead of overriding one variant.

Before, we relied on CSS specificity in an unclear way.
The `Focused` class was applying properly because it was ordered later
than the `Tab` class in the stylesheet.
The ordering that is important is the ordering in `styles` value.
Since `elm-css` generates the stylesheet in the order of the lists,
the `Focused` rule would be generated after the `Tab` rule.
Meaning the `Focused` rule would take precedence over the `Tab` rule
if an element had both classes as it was defined later in the stylesheet.

There are some concerns with this approach:
1. It's not readily apparent that the ordering in `styles` is important.
    It is pretty easy to change the ordering of the list
    and have it break the styling.
2. We rely on `elm-css` to generate the stylesheet in a specific order.
    If it changes the order of rules it generates,
    we're almost surely going to break the styling.
3. Altering styles for tabs that are not focused is even less intuitive.
    Since the specificity is the same,
    you might not know why a given rule applies (or doesn't apply).

Rather, we can eschew the specificity/precedence issues
by applying a different class to each tab.
The stuff that is the same can stay on the `Tab` class,
and the stuff that differs can be on different classes.
2018-03-26 19:53:19 -07:00
Hardy Jones
dd164e3e57
Bump version to 3.4.0 2018-03-26 16:26:36 -07:00