js.git
2 years agostable-stringify/v0.0.2 master stable-stringify-0.0.2
Greg Hurrell [Sun, 20 Oct 2019 21:23:53 +0000 (23:23 +0200)] 
stable-stringify/v0.0.2

2 years agonullthrows/v0.1.1 nullthrows-0.1.1
Greg Hurrell [Sun, 20 Oct 2019 21:21:48 +0000 (23:21 +0200)] 
nullthrows/v0.1.1

2 years agoescape-html/v0.0.2 escape-html-0.0.2
Greg Hurrell [Sun, 20 Oct 2019 21:18:20 +0000 (23:18 +0200)] 
escape-html/v0.0.2

2 years agofix: attempt to resolve bustage due to missing __esModule property
Greg Hurrell [Sun, 20 Oct 2019 21:11:17 +0000 (23:11 +0200)] 
fix: attempt to resolve bustage due to missing __esModule property

I'm seeing crashes on the server in Masochist because this property is
not available in the compiled modules.

For example, the index.js of nullthrows is, basically:

    "use strict";exports["default"]=nullthrows;/**
    * @copyright Copyright (c) 2019-present Greg Hurrell
    * @license MIT
    */function nullthrows(value){if(value==null){throw new Error("Unexpected null-ish value")}return value}

If you look at the server code in Masochist, it is doing:

    var _nullthrows = _interopRequireDefault(require("@wincent/nullthrows"));

    function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

    // And later:
    const results = (0, _nullthrows.default)(functions.get(fn));

So, it basically does:

    var _nullthrows = { default: require("@wincent/nullthrows") };

    const results = _nullthrows.default(functions.get(fn));

But `_nullthrows.default` isn't a function;
`_nullthrows.default.default` is.

Docs:

https://babeljs.io/docs/en/babel-plugin-transform-modules-commonjs

2 years agofix(scripts): correct innocuous spelling typo in console message
Greg Hurrell [Tue, 6 Aug 2019 20:59:46 +0000 (22:59 +0200)] 
fix(scripts): correct innocuous spelling typo in console message

2 years agodoc: add a blank line for readability
Greg Hurrell [Tue, 6 Aug 2019 20:58:41 +0000 (22:58 +0200)] 
doc: add a blank line for readability

2 years agofrozen-set/v0.0.1 frozen-set-0.0.1
Greg Hurrell [Tue, 6 Aug 2019 20:44:38 +0000 (22:44 +0200)] 
frozen-set/v0.0.1

2 years agodoc: fix typo in README.md
Greg Hurrell [Mon, 5 Aug 2019 22:04:19 +0000 (00:04 +0200)] 
doc: fix typo in README.md

2 years agothrottle/v0.0.2 throttle-0.0.2
Greg Hurrell [Mon, 5 Aug 2019 22:02:48 +0000 (00:02 +0200)] 
throttle/v0.0.2

2 years agofix: revert "feat: avoid top-level `yarn version`"
Greg Hurrell [Mon, 5 Aug 2019 22:02:01 +0000 (00:02 +0200)] 
fix: revert "feat: avoid top-level `yarn version`"

This reverts commit 1147eb9eeb00f8aba0180e7496bec3832e7562f0.

Sadly, the top-level .yarnrc is read even when running in a "packages/*"
subdirectory.

2 years agofeat: avoid top-level `yarn version`
Greg Hurrell [Mon, 5 Aug 2019 21:59:25 +0000 (23:59 +0200)] 
feat: avoid top-level `yarn version`

Will stop `yarn version --patch`, but won't stop `yarn version
--new-version x.y.z` (because the command-line parameters override the
.yarnrc one).

2 years agofeat: automatically set up .yarnrc files
Greg Hurrell [Mon, 5 Aug 2019 21:50:16 +0000 (23:50 +0200)] 
feat: automatically set up .yarnrc files

2 years agorefactor: DRY up throttle implementation
Greg Hurrell [Mon, 5 Aug 2019 21:41:42 +0000 (23:41 +0200)] 
refactor: DRY up throttle implementation

2 years agodoc: fix a typo in a code comment
Greg Hurrell [Mon, 5 Aug 2019 21:39:12 +0000 (23:39 +0200)] 
doc: fix a typo in a code comment

2 years agofix: make package test:watch scripts actually watch
Greg Hurrell [Mon, 5 Aug 2019 21:39:00 +0000 (23:39 +0200)] 
fix: make package test:watch scripts actually watch

2 years agochore: prepare for throttle v0.1 release throttle-0.0.1
Greg Hurrell [Mon, 5 Aug 2019 21:26:09 +0000 (23:26 +0200)] 
chore: prepare for throttle v0.1 release

2 years agostyle: fix formatting
Greg Hurrell [Mon, 5 Aug 2019 21:13:16 +0000 (23:13 +0200)] 
style: fix formatting

2 years agofix: make TypeScript accept ported throttle files
Greg Hurrell [Mon, 5 Aug 2019 21:11:59 +0000 (23:11 +0200)] 
fix: make TypeScript accept ported throttle files

2 years agochore: import throttle implementation and tests from Corpus repo
Greg Hurrell [Mon, 5 Aug 2019 20:54:18 +0000 (22:54 +0200)] 
chore: import throttle implementation and tests from Corpus repo

Not valid TypeScript yet (these files were Flow and will need to be
ported).

2 years agodoc: add throttle package to README.md
Greg Hurrell [Mon, 5 Aug 2019 20:54:07 +0000 (22:54 +0200)] 
doc: add throttle package to README.md

2 years agofeat: create files for new "throttle" package
Greg Hurrell [Mon, 5 Aug 2019 20:50:12 +0000 (22:50 +0200)] 
feat: create files for new "throttle" package

2 years agofix: make scripts/new.sh produce valid JSON in package.json
Greg Hurrell [Mon, 5 Aug 2019 20:49:53 +0000 (22:49 +0200)] 
fix: make scripts/new.sh produce valid JSON in package.json

2 years agonullthrows/v0.1.0 nullthrows-0.1.0
Greg Hurrell [Fri, 19 Jul 2019 17:22:27 +0000 (19:22 +0200)] 
nullthrows/v0.1.0

2 years agoclamp/v0.3.0 clamp-0.3.0
Greg Hurrell [Thu, 18 Jul 2019 22:00:23 +0000 (00:00 +0200)] 
clamp/v0.3.0

2 years agochore: yarn outdated
Greg Hurrell [Thu, 18 Jul 2019 21:54:03 +0000 (23:54 +0200)] 
chore: yarn outdated

2 years agochore: yarn upgrade-interactive
Greg Hurrell [Thu, 18 Jul 2019 21:49:04 +0000 (23:49 +0200)] 
chore: yarn upgrade-interactive

Closes: https://github.com/wincent/js/issues/2
2 years agochore: advise use of --exact option to `yarn add`
Greg Hurrell [Thu, 18 Jul 2019 21:30:02 +0000 (23:30 +0200)] 
chore: advise use of --exact option to `yarn add`

2 years agoperf: avoid unnecessary use of core-js
Greg Hurrell [Thu, 18 Jul 2019 21:14:07 +0000 (23:14 +0200)] 
perf: avoid unnecessary use of core-js

I think we should be safe with this config which has two main effects as
documented here:

https://babeljs.io/docs/en/babel-plugin-transform-modules-commonjs

- `require()` calls no longer get wrapped in `_interopRequireDefault()`
- `Object.defineProperty()` (and thereforo core-js) is no longer used to
  define a non-enumerable `__esModule` property (or even an enumerable
  one, which is what `loose: true` would do).

Internal consumption of one module requiring another will still work,
and I don't expect any external consumers but myself, so I can make sure
all call sites work.

Closes: https://github.com/wincent/js/issues/1
2 years agoclamp/v0.2.0 clamp-0.2.0
Greg Hurrell [Wed, 17 Jul 2019 22:35:03 +0000 (00:35 +0200)] 
clamp/v0.2.0

2 years agofeat(workspace-scripts): default tag prompt response to "n"
Greg Hurrell [Wed, 17 Jul 2019 22:33:22 +0000 (00:33 +0200)] 
feat(workspace-scripts): default tag prompt response to "n"

Because README now recommends to create the tag with `yarn version`
instead.

2 years agofix: include index.d.ts in published packages
Greg Hurrell [Wed, 17 Jul 2019 22:32:11 +0000 (00:32 +0200)] 
fix: include index.d.ts in published packages

2 years agodoc: tweak README for accuracy
Greg Hurrell [Wed, 17 Jul 2019 22:17:26 +0000 (00:17 +0200)] 
doc: tweak README for accuracy

2 years agoclamp/v0.1.0 clamp-0.1.0
Greg Hurrell [Wed, 17 Jul 2019 22:16:46 +0000 (00:16 +0200)] 
clamp/v0.1.0

2 years agochore: set up .yarnrc files to make releasing easier
Greg Hurrell [Wed, 17 Jul 2019 22:15:05 +0000 (00:15 +0200)] 
chore: set up .yarnrc files to make releasing easier

And document the process in the README.

2 years agochore: prepare invariant changelog for v0.0.1 release babel-plugin-invariant-transform-0.0.1 invariant-0.0.1 workspace-scripts-0.0.1
Greg Hurrell [Wed, 17 Jul 2019 21:57:24 +0000 (23:57 +0200)] 
chore: prepare invariant changelog for v0.0.1 release

2 years agochore: prepare workplace-scripts changelog for v0.0.1 release
Greg Hurrell [Wed, 17 Jul 2019 21:55:50 +0000 (23:55 +0200)] 
chore: prepare workplace-scripts changelog for v0.0.1 release

2 years agodoc: prepare clamp changelog for v0.0.1 release
Greg Hurrell [Wed, 17 Jul 2019 21:53:31 +0000 (23:53 +0200)] 
doc: prepare clamp changelog for v0.0.1 release

3 years agoNaively attempt to fix bustage due to Babel update
Greg Hurrell [Sun, 31 Mar 2019 12:44:15 +0000 (14:44 +0200)] 
Naively attempt to fix bustage due to Babel update

Seeing a lot of:

    _Object$defineProperty is not a function

Scanning the release notes:

    https://github.com/babel/babel/releases

This one stands out:

    https://github.com/babel/babel/releases/tag/v7.4.0

Specifically, "Update to core-js@3":

    https://github.com/babel/babel/pull/7646

There are 133 comments which I confess to not having read, and various
offshoots to places like:

    https://github.com/babel/babel/pull/9442

and:

    https://github.com/facebook/regenerator/pull/369

I did find this enormous update doc, but haven't found the answer in
there yet and the Babel docs themselves don't appear to have been
updated:

    https://github.com/zloirock/core-js/blob/master/docs/2019-03-19-core-js-3-babel-and-a-look-into-the-future.md

Although this blog post is briefer and covers a few things:

    https://babeljs.io/blog/2019/03/19/7.4.0

In the end the build works if I get rid of
`@babel/plugin-transform-runtime`, which doesn't seem to play too well
in conjunction with `@babel/preset-env`, at least in this set-up.

3 years agoUpgrade packages
Greg Hurrell [Sun, 31 Mar 2019 11:00:46 +0000 (13:00 +0200)] 
Upgrade packages

`yarn upgrade-interactive` all the things.

Note that because the non-dev dependencies in the individual packages
are all locked to a specific version, I also ran `yarn outdated` to
identify those, and then:

    (cd packages/workspace-scripts && yarn add @babel/parser@7.4.2 @babel/runtime-corejs2@7.4.2 @babel/traverse@7.4.0)
    for X in babel-plugin-invariant-transform dedent delay delay event-emitter stable-stringify; do
      (cd packages/$X && yarn add @babel/runtime-corejs2@7.4.2)
    done

will evidently want to make a less manual way to do that via a script.

Includes tweaks in workspace-scripts/src/publish.ts to keep the new
version of TypeScript happy.

3 years agoFreshen lockfile
Greg Hurrell [Sun, 31 Mar 2019 10:59:28 +0000 (12:59 +0200)] 
Freshen lockfile

Not sure why it wasn't fresh, TBH.

3 years agoDon't print SKIPPING when, er, skipping
Greg Hurrell [Sun, 24 Feb 2019 21:53:28 +0000 (22:53 +0100)] 
Don't print SKIPPING when, er, skipping

3 years agoAdd a tiny run() test
Greg Hurrell [Sun, 24 Feb 2019 21:48:18 +0000 (22:48 +0100)] 
Add a tiny run() test

3 years agoMove "scripts/publish.js" into workspace-scripts
Greg Hurrell [Sun, 24 Feb 2019 21:47:12 +0000 (22:47 +0100)] 
Move "scripts/publish.js" into workspace-scripts

3 years agoTeach changelogs.ts to scope itself to specific packages
Greg Hurrell [Sun, 24 Feb 2019 19:17:43 +0000 (20:17 +0100)] 
Teach changelogs.ts to scope itself to specific packages

3 years agoFold scripts/show-dependencies.js into workspace-scripts
Greg Hurrell [Sun, 24 Feb 2019 17:52:40 +0000 (18:52 +0100)] 
Fold scripts/show-dependencies.js into workspace-scripts

3 years agoMigrate check-dependencies.js into workspace-scripts
Greg Hurrell [Sun, 24 Feb 2019 09:30:13 +0000 (10:30 +0100)] 
Migrate check-dependencies.js into workspace-scripts

Three things of note:

- Seems async generators don't work in Babel, so change the `walk`
  implementation to not use them.
- Change to `bail` instead of using returning a boolean to `main()`.
- Got rid of "importKind" check because TypeScript doesn't have distinct
  syntax for importing types and values; the only imports we'll find are
  "value" imports.

Still some minor things to migrate from "scripts/".

3 years agoMove check-changelogs.js into workspace-scripts
Greg Hurrell [Sun, 24 Feb 2019 00:27:33 +0000 (01:27 +0100)] 
Move check-changelogs.js into workspace-scripts

This works, but because I moved some files the other scripts like
scripts/check-dependencies.js will be broken until I move them too.

3 years agoStop ESLint from complaining about "unused" TypeScript type imports
Greg Hurrell [Sat, 23 Feb 2019 22:36:59 +0000 (23:36 +0100)] 
Stop ESLint from complaining about "unused" TypeScript type imports

Fixes these spurious warnings:

```
js/packages/babel-plugin-invariant-transform/src/__tests__/index-test.ts
  8:31  error  'Options' is defined but never used. Allowed unused vars must match /^_/  no-unused-vars

js/packages/babel-plugin-invariant-transform/src/index.ts
  7:9   error  'Node' is defined but never used. Allowed unused vars must match /^_/       no-unused-vars
  7:15  error  'NodePath' is defined but never used. Allowed unused vars must match /^_/   no-unused-vars
  9:9   error  'types' is defined but never used. Allowed unused vars must match /^_/      no-unused-vars
  9:16  error  'PluginObj' is defined but never used. Allowed unused vars must match /^_/  no-unused-vars
  9:27  error  'Visitor' is defined but never used. Allowed unused vars must match /^_/    no-unused-vars
```

3 years agoAdd "workspace-scripts prepublish" subcommand
Greg Hurrell [Sat, 23 Feb 2019 22:28:10 +0000 (23:28 +0100)] 
Add "workspace-scripts prepublish" subcommand

3 years agoAdd missing dependencies
Greg Hurrell [Sat, 23 Feb 2019 22:25:46 +0000 (23:25 +0100)] 
Add missing dependencies

As reported by scripts/check-dependencies.js.

3 years agoFix straggling reference to checkFormat
Greg Hurrell [Sat, 23 Feb 2019 22:04:30 +0000 (23:04 +0100)] 
Fix straggling reference to checkFormat

Was renamed to format:check in 21448277e2bab3b485fefac614b68f3dd3ba71.

3 years agoRemove an unnecessary import
Greg Hurrell [Wed, 20 Feb 2019 23:29:32 +0000 (00:29 +0100)] 
Remove an unnecessary import

3 years agoRemove now-dead code from index.ts
Greg Hurrell [Wed, 20 Feb 2019 23:27:07 +0000 (00:27 +0100)] 
Remove now-dead code from index.ts

3 years agoGet rid of hideous dispatcher abstraction
Greg Hurrell [Wed, 20 Feb 2019 23:20:27 +0000 (00:20 +0100)] 
Get rid of hideous dispatcher abstraction

3 years agoFurther split things into files
Greg Hurrell [Wed, 20 Feb 2019 23:17:23 +0000 (00:17 +0100)] 
Further split things into files

3 years agoPrettier
Greg Hurrell [Wed, 20 Feb 2019 23:08:57 +0000 (00:08 +0100)] 
Prettier

3 years agoAdd "dispatcher()" helper
Greg Hurrell [Wed, 20 Feb 2019 23:08:15 +0000 (00:08 +0100)] 
Add "dispatcher()" helper

The helper is frickin' hideous, but it makes it possible to concisely
add new entries to the `SUBCOMMANDS` data structure.

3 years agoExtract test tasks into a separate file
Greg Hurrell [Wed, 20 Feb 2019 22:35:56 +0000 (23:35 +0100)] 
Extract test tasks into a separate file

3 years agoMake it possible to have override babel config files at package level
Greg Hurrell [Wed, 20 Feb 2019 22:31:16 +0000 (23:31 +0100)] 
Make it possible to have override babel config files at package level

Although I am not sure I am going to use it, because I am wary of having
config copied into multiple locations. I may be able to get pretty far
with the "overrides" section in the top-level file alone.

3 years agoFix broken overrides pattern match in babel.config.js
Greg Hurrell [Wed, 20 Feb 2019 22:30:45 +0000 (23:30 +0100)] 
Fix broken overrides pattern match in babel.config.js

Tests were failing without this.

3 years agoShow that workspace-scripts can be factored out into separate files
Greg Hurrell [Wed, 20 Feb 2019 22:18:04 +0000 (23:18 +0100)] 
Show that workspace-scripts can be factored out into separate files

Which we import using dynamic import syntax.

This is all preparatory to moving what is currently in scripts/new.sh
into workspace-scripts.

3 years agoOnly show typechecking warnings once per run
Greg Hurrell [Wed, 20 Feb 2019 20:29:46 +0000 (21:29 +0100)] 
Only show typechecking warnings once per run

3 years agoMention TypeScript in README
Greg Hurrell [Wed, 20 Feb 2019 20:19:23 +0000 (21:19 +0100)] 
Mention TypeScript in README

3 years agoRun prettier
Greg Hurrell [Wed, 20 Feb 2019 20:15:45 +0000 (21:15 +0100)] 
Run prettier

3 years agoFix mistakes in README
Greg Hurrell [Wed, 20 Feb 2019 20:15:22 +0000 (21:15 +0100)] 
Fix mistakes in README

3 years agoAdd "yarn bootstrap" and add instructions on how to use it
Greg Hurrell [Wed, 20 Feb 2019 20:11:09 +0000 (21:11 +0100)] 
Add "yarn bootstrap" and add instructions on how to use it

3 years agoWork around chicken-and-egg situation with local transforms
Greg Hurrell [Wed, 20 Feb 2019 00:12:41 +0000 (01:12 +0100)] 
Work around chicken-and-egg situation with local transforms

3 years agoUse @wincent/babel-plugin-invariant-transform internal
Greg Hurrell [Tue, 19 Feb 2019 23:27:49 +0000 (00:27 +0100)] 
Use @wincent/babel-plugin-invariant-transform internal

There may be a bit of a chicken-and-egg thing going on here internally,
but it basically seems to work. I may need to exclude that plugin for
the config for the invariant transform package itself though.

3 years agoAdd "invariant-transform" package
Greg Hurrell [Tue, 19 Feb 2019 23:17:12 +0000 (00:17 +0100)] 
Add "invariant-transform" package

3 years agoFix quoting issues in generated package.json files
Greg Hurrell [Tue, 19 Feb 2019 20:36:25 +0000 (21:36 +0100)] 
Fix quoting issues in generated package.json files

3 years agoAdd missing comma to generated package.json output
Greg Hurrell [Tue, 19 Feb 2019 20:31:05 +0000 (21:31 +0100)] 
Add missing comma to generated package.json output

3 years agoSilence shell script output
Greg Hurrell [Tue, 19 Feb 2019 20:28:30 +0000 (21:28 +0100)] 
Silence shell script output

3 years agoAdd invariant transform
Greg Hurrell [Sun, 17 Feb 2019 23:55:01 +0000 (00:55 +0100)] 
Add invariant transform

Not using it yet though because we have a bit of a chicken and egg
problem. I can't add it to the default list of plug-ins because it might
not be built yet. Originally it was in vanilla JS but I ported it to
TypeScript. But I think if I can't come up with a way to bootstrap it in
the Makefile before the other transforms run then I'll just change it
back and do it the real dumb way.

3 years agoPreserve some comments in built output
Greg Hurrell [Sun, 17 Feb 2019 20:18:43 +0000 (21:18 +0100)] 
Preserve some comments in built output

3 years agoAdd missing files
Greg Hurrell [Sun, 17 Feb 2019 19:48:29 +0000 (20:48 +0100)] 
Add missing files

3 years agoAdd lame test for workspace-scripts main() function
Greg Hurrell [Sun, 17 Feb 2019 19:47:04 +0000 (20:47 +0100)] 
Add lame test for workspace-scripts main() function

May add to this later as time permits (will require me to export more
functions from that module).

3 years agoDRY up eslint configs
Greg Hurrell [Sun, 17 Feb 2019 19:44:48 +0000 (20:44 +0100)] 
DRY up eslint configs

3 years agoApply some fixes and polish discovered during review
Greg Hurrell [Sun, 17 Feb 2019 17:58:29 +0000 (18:58 +0100)] 
Apply some fixes and polish discovered during review

Too lazy to split this up into individual commits.

3 years agoAdd missing .npmignore file
Greg Hurrell [Sun, 17 Feb 2019 17:37:18 +0000 (18:37 +0100)] 
Add missing .npmignore file

3 years agoApply Prettier changes
Greg Hurrell [Sun, 17 Feb 2019 17:29:33 +0000 (18:29 +0100)] 
Apply Prettier changes

3 years agoUpdate README
Greg Hurrell [Sun, 17 Feb 2019 17:29:27 +0000 (18:29 +0100)] 
Update README

3 years agoUse workspace-scripts to build
Greg Hurrell [Sun, 17 Feb 2019 17:21:52 +0000 (18:21 +0100)] 
Use workspace-scripts to build

In all but two cases:

1. When building workspace-scripts itself.
2. When trying to build all from the top, when workspace-scripts isn't
   built or working.

3 years agoAdd "invariant" package
Greg Hurrell [Sun, 17 Feb 2019 16:02:02 +0000 (17:02 +0100)] 
Add "invariant" package

As this relies on "__DEV__", needed some additional set-up. I have a
Babel transform for this that I'll add in a follow-up too.

3 years agonew.sh: detect and use current workspace-scripts version if possible
Greg Hurrell [Sun, 17 Feb 2019 13:56:11 +0000 (14:56 +0100)] 
new.sh: detect and use current workspace-scripts version if possible

Instead of hard-coding the value as it exists right now (0.0.1).

3 years agoMake Makefile work outside of Yarn or scoped
Greg Hurrell [Sun, 17 Feb 2019 13:51:28 +0000 (14:51 +0100)] 
Make Makefile work outside of Yarn or scoped

3 years agoPrettify check-dependencies.js
Greg Hurrell [Sun, 17 Feb 2019 11:11:13 +0000 (12:11 +0100)] 
Prettify check-dependencies.js

3 years agoUpdate third-party modules
Greg Hurrell [Sun, 17 Feb 2019 11:09:02 +0000 (12:09 +0100)] 
Update third-party modules

3 years agoUpdate dependency checks
Greg Hurrell [Sun, 17 Feb 2019 11:08:33 +0000 (12:08 +0100)] 
Update dependency checks

And peg to a specific version of workspace-scripts.

3 years agoMake all packages delegate to workspace-scripts
Greg Hurrell [Sun, 17 Feb 2019 10:50:48 +0000 (11:50 +0100)] 
Make all packages delegate to workspace-scripts

Except workspace-scripts itself, of course, which just runs its own
"bin/index.js".

Note there is a chicken-and-egg thing here, which is that until you
"build" none of this will probably work, and that's why I may end up
keeping the build as a Makefile step at the top level rather than
pulling it in to workspace-scripts (although I might end up using nested
Makefiles so that you can build an individual package if you want).

3 years agoAdd workspace-scripts to README.md
Greg Hurrell [Sun, 17 Feb 2019 10:05:12 +0000 (11:05 +0100)] 
Add workspace-scripts to README.md

3 years agoAdd shortcuts to run scripts from package directories
Greg Hurrell [Sun, 17 Feb 2019 10:03:28 +0000 (11:03 +0100)] 
Add shortcuts to run scripts from package directories

Will retrofit this to the existing directories in a follow-up.

3 years agoTeach workspace-scripts to "test" and "test:watch"
Greg Hurrell [Sun, 17 Feb 2019 09:25:29 +0000 (10:25 +0100)] 
Teach workspace-scripts to "test" and "test:watch"

3 years agoColorize workspace-scripts output
Greg Hurrell [Sun, 17 Feb 2019 09:15:48 +0000 (10:15 +0100)] 
Colorize workspace-scripts output

3 years agoTeach workspace scripts to "typecheck", "typecheck:ts" etc
Greg Hurrell [Sun, 17 Feb 2019 09:02:39 +0000 (10:02 +0100)] 
Teach workspace scripts to "typecheck", "typecheck:ts" etc

3 years agoTeach workspace-scripts to "lint" and "lint:fix"
Greg Hurrell [Sun, 17 Feb 2019 08:54:12 +0000 (09:54 +0100)] 
Teach workspace-scripts to "lint" and "lint:fix"

3 years agoTeach workspace-scripts to format and format:check
Greg Hurrell [Sun, 17 Feb 2019 08:42:33 +0000 (09:42 +0100)] 
Teach workspace-scripts to format and format:check

3 years agoAdd @wincent/workspace-scripts stub
Greg Hurrell [Sun, 17 Feb 2019 00:35:08 +0000 (01:35 +0100)] 
Add @wincent/workspace-scripts stub

Going to use this to provide a chokepoint for running global scripts
from a package level.

3 years agoRun formatting etc on "bin" files too
Greg Hurrell [Sun, 17 Feb 2019 00:27:55 +0000 (01:27 +0100)] 
Run formatting etc on "bin" files too

3 years agoMake sure we don't use non-ES5 stuff in bin files
Greg Hurrell [Sun, 17 Feb 2019 00:26:31 +0000 (01:26 +0100)] 
Make sure we don't use non-ES5 stuff in bin files

We're not even going to transform these ones with Babel, because all
they should ever do is `require` something out of "lib" and run it.

3 years agoscripts/new.sh: Prepare to add support for binaries in packages
Greg Hurrell [Sun, 17 Feb 2019 00:21:20 +0000 (01:21 +0100)] 
scripts/new.sh: Prepare to add support for binaries in packages

This script looks like it will need to be ported to JS soon, as the Bash
stuff is starting to get painful.