swear-demo-react
Advanced tools
Comparing version 1.0.3 to 1.0.4
#! /usr/bin/env node | ||
process.stdin.resume(); //so the program will not close instantly | ||
const shell = require('shelljs') | ||
shell.exec('git clone https://github.com/soundsnick/swear-js swear-tmp-npx') | ||
shell.exec('git clone https://github.com/soundsnick/swear-js swear-tmp-demo-react-npx') | ||
shell.cd('./swear-tmp-npx/packages/demo-react') | ||
shell.exec('npm i') | ||
shell.exec('npm run start') | ||
function exitHandler() { | ||
console.log('Cleaning up...'); | ||
shell.cd('../') | ||
shell.exec('rm -rf swear-tmp-npx') | ||
process.exit() | ||
} | ||
//do something when app is closing | ||
process.on('exit', exitHandler); | ||
//catches ctrl+c event | ||
process.on('SIGINT', exitHandler); | ||
// catches "kill pid" (for example: nodemon restart) | ||
process.on('SIGUSR1', exitHandler); | ||
process.on('SIGUSR2', exitHandler); | ||
//catches uncaught exceptions | ||
process.on('uncaughtException', exitHandler); |
{ | ||
"name": "swear-demo-react", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"license": "ISC", | ||
@@ -11,3 +11,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "7f174e602a96a5d347f54c06c04ee8aba967a33f" | ||
"gitHead": "5392cf7cc3053aac15992820b92a622195eb7a85" | ||
} |
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
485
6
1