1
1
mirror of https://github.com/primer/css.git synced 2024-09-20 13:17:29 +03:00

add helper scripts for top-level deps

and write JSON with a newline
This commit is contained in:
Shawn Allen 2017-09-08 13:46:19 -07:00
parent 91e9bb7412
commit 57aa5ee89e
5 changed files with 16 additions and 1 deletions

3
script/lint-scss Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
set -e
$(dirname $0)/npm-run stylelint --quiet --syntax scss **/*.scss

6
script/npm-run Executable file
View File

@ -0,0 +1,6 @@
#!/bin/bash
set -e
pushd $(dirname $0) > /dev/null
PATH="$(npm bin):$PATH"
popd > /dev/null
"$@"

3
script/npm-run-all Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
set -e
$(dirname $0)/npm-run npm-run-all --serial --silent "$@"

View File

@ -69,7 +69,7 @@ const tasks = args.map(filename => {
).then(() => json)
})
.then(json => JSON.stringify(json, null, " "))
.then(str => fse.writeFile(filename, str, UTF))
.then(str => fse.writeFile(filename, `${str}\n`, UTF))
.then(() => filename)
})

3
script/test-docs Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
set -e
$(dirname $0)/npm-run ava --verbose $(dirname $0)/../tests/modules/test-*.js