[examples] add scripts to show package.json scripts
This commit is contained in:
parent
4ccf97f667
commit
71c5e31836
9
examples/scripts.sh
Normal file
9
examples/scripts.sh
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#!/usr/bin/env shrimp
|
||||
|
||||
if not (fs.exists? 'package.json'):
|
||||
echo '🦐 package.json not found'
|
||||
exit 1
|
||||
end
|
||||
|
||||
package = fs.read 'package.json' | json.decode
|
||||
package.scripts | dict.keys | list.sort | each do x: echo x end
|
||||
Loading…
Reference in New Issue
Block a user