Commit Graph

64 Commits

Author SHA1 Message Date
Sérgio Ramos efd87268da chore: use `stdio` option on execa 2017-05-29 23:04:51 +01:00
Sérgio Ramos 0dbd8a6b84 chore: improved publish script
- goes through the stages step by step
 - prompts the user to confirm some choices
 - smarter handling of tags and versions
2017-05-29 23:04:33 +01:00
Sérgio Ramos ec482796a9 chore: have local and remote tag name the same 2017-05-26 13:06:22 +01:00
Sérgio Ramos 6f2eb3cbb1 chore: add type to published tag names 2017-05-26 13:01:29 +01:00
Sérgio Ramos c327f9f1ef chore: handle empty files array in format-staged
if format-staged is run and after filtering by opt-out no files are left, it tries to format everything
2017-05-26 12:02:19 +01:00
Sérgio Ramos b665dec740 chore: actually publish
it was only listing updated packges
2017-05-26 10:36:16 +01:00
Sérgio Ramos 802dff3e42 chore: improve publish tag description 2017-05-26 10:35:27 +01:00
Sérgio Ramos 8974a0546f chore: when formatting staged files, also account for /scripts 2017-05-26 10:20:15 +01:00
Sérgio Ramos 06f17c828a chore: format /scripts 2017-05-26 10:20:10 +01:00
Sérgio Ramos 65a104f7d4 chore: implement a publish script
- checks whether branch is `master`
- checks whether the tree is clean
- checks whether HEAD doesn't match origin
- publishes using lerna
- updates root version based on --staging/--dev/--production flags
- tags tapo with name `${pkg.name}@${pkg.version}`
- pushes tag to origin

that creates and pushes a repo tag afterwards
2017-05-26 10:20:05 +01:00
Sérgio Ramos 9b3874ea56 chore: format, lint, and test scripts based on staged files
For lint and test, it detects the packages that the staged files affect and only
runs the corresponding `lint` and `test` scripts.

For format, it will run prettier through the Added/Modified js files.
2017-05-26 10:20:00 +01:00
Sérgio Ramos 8887fa3384 chore: properly handle full and relative paths in format 2017-05-26 10:19:54 +01:00
Sérgio Ramos 7da2460b21 chore: allow packages to opt-out of prettier 2017-05-25 19:50:36 +01:00
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00