Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update sanctuary-def and use sanctuary-scripts #19

Merged
merged 1 commit into from
Apr 4, 2018

Conversation

Avaq
Copy link
Member

@Avaq Avaq commented Apr 3, 2018

Closes #18

I started with the sanctuary def update, but ended up redoing pretty much everything. I'll highlight some important lines.

@Avaq Avaq requested a review from davidchambers April 3, 2018 14:14
"padding-line-between-statements": 0
"func-call-spacing": ["off"],
"indent": ["off"],
"no-unexpected-multiline": ["off"]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Disabling these rules allows for sanctuary-js/sanctuary#438 -style code.

@@ -34,19 +38,14 @@
},
"peerDependencies": {
"fluture": ">=5.0.0 <9.0.0",
"sanctuary-def": ">=0.8.0 <0.15.0"
"sanctuary-def": ">=0.15.0 <0.16.0"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an important piece of diff as it highlights the fact that we've got a breaking change.

@codecov-io
Copy link

codecov-io commented Apr 3, 2018

Codecov Report

Merging #19 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master    #19   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files           1      1           
  Lines           9     13    +4     
  Branches        0      1    +1     
=====================================
+ Hits            9     13    +4
Impacted Files Coverage Δ
index.js 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f98fe0...a58ef19. Read the comment docs.

@Avaq Avaq force-pushed the avaq/update-sanctuary-def branch from d31c40d to e624de0 Compare April 3, 2018 14:19
@@ -1,7 +1,8 @@
language: node_js
node_js:
- "4.0.0"
- "5"
- "6.0.0"
- "6"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're specifying both "6" and "6.0.0" because the latter is the oldest version you support?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct.

index.js Outdated
//. > $.test
//. . (env)
//. . (ConcurrentFutureType ($.String) ($.Number))
//. . (Future.Par.of (1));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: I suggest indenting the wrapped lines by two spaces rather than one.

Copy link
Member Author

@Avaq Avaq Apr 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've aligned the leading dots (.) with the >. There should be no indentation, right?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is what I had in mind:

   //. > $.test
-  //. .  (env)
-  //. .  (ConcurrentFutureType ($.String) ($.Number))
-  //. .  (Future.Par.of (1));
+  //. .   (env)
+  //. .   (ConcurrentFutureType ($.String) ($.Number))
+  //. .   (Future.Par.of (1));

Copy link
Member Author

@Avaq Avaq Apr 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh, now I see! The first space after the second . is not considered indentation! Thanks.

Copy link
Contributor

@davidchambers davidchambers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@Avaq Avaq force-pushed the avaq/update-sanctuary-def branch from e624de0 to a58ef19 Compare April 4, 2018 09:04
@Avaq Avaq merged commit 6fce1b1 into master Apr 4, 2018
@Avaq Avaq deleted the avaq/update-sanctuary-def branch April 4, 2018 09:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants