Skip to content

Commit

Permalink
Install all npm prereqs locally on demand
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed May 19, 2018
1 parent 52d8fd6 commit 74c9820
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 10 deletions.
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
export PATH := $(PWD)/node_modules/.bin:$(PATH)

MATRIX_REPO ?= git@github.com:perlpunk/yaml-test-matrix

default: help

help:
@grep -E '^[-a-zA-Z0-9]+:' Makefile | cut -d: -f1

update: doc
update: doc node_modules
rm -fr test/name/ test/tags/
perl bin/generate-links test/*.tml
git add -A -f test/
Expand All @@ -21,6 +23,8 @@ data:
git worktree add -f $@ $@

data-update: data node_modules
@echo $(PATH)
which coffee
rm -fr data/*
bin/generate-data test/*.tml

Expand All @@ -41,7 +45,7 @@ data-push:

node_modules:
mkdir $@
npm install lodash testml-compiler
npm install coffeescript lodash testml-compiler
rm -f package*

#------------------------------------------------------------------------------
Expand Down
10 changes: 10 additions & 0 deletions ReadMe.pod
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,14 @@ To get a quick overview of the tests you can have a look at the L<YAML Test
Matrix|http://matrix.yaml.io/> -
L<https://github.com/perlpunk/yaml-test-matrix>.

=head2 Updating Things

When test files change you need to update various artifacts. To do this, run
the following commands:

C<>C< make update # Updates tags and name artifacts make data-update # Updates
the data branch (under ./data/) >C<>

You will need Bash, NodeJS and Perl for these things.

=cut
15 changes: 7 additions & 8 deletions doc/yaml-test-suite.swim
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,14 @@ To get a quick overview of the tests you can have a look at the "YAML Test
Matrix"[http://matrix.yaml.io/]
- [https://github.com/perlpunk/yaml-test-matrix].

== Updating the Data Branch
== Updating Things

To update the data branch under a directory called `data`, run:
```
make data-update`
```
When test files change you need to update various artifacts. To do this, run
the following commands:

You will need NodeJS and CoffeeScript. To install `coffee` after you have
`node`, run:
```
npm install -g coffee
make update # Updates tags and name artifacts
make data-update # Updates the data branch (under ./data/)
```

You will need Bash, NodeJS and Perl for these things.

0 comments on commit 74c9820

Please sign in to comment.