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:
parent
91e9bb7412
commit
57aa5ee89e
3
script/lint-scss
Executable file
3
script/lint-scss
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
$(dirname $0)/npm-run stylelint --quiet --syntax scss **/*.scss
|
6
script/npm-run
Executable file
6
script/npm-run
Executable 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
3
script/npm-run-all
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
$(dirname $0)/npm-run npm-run-all --serial --silent "$@"
|
@ -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
3
script/test-docs
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
$(dirname $0)/npm-run ava --verbose $(dirname $0)/../tests/modules/test-*.js
|
Loading…
Reference in New Issue
Block a user