Updated the Survey.
This commit is contained in:
parent
f59686eae0
commit
6d3ba1a714
1203 changed files with 140782 additions and 5 deletions
16
node_modules/nodemon/bin/nodemon.js
generated
vendored
Normal file
16
node_modules/nodemon/bin/nodemon.js
generated
vendored
Normal file
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
const cli = require('../lib/cli');
|
||||
const nodemon = require('../lib/');
|
||||
const options = cli.parse(process.argv);
|
||||
|
||||
nodemon(options);
|
||||
|
||||
const fs = require('fs');
|
||||
|
||||
// checks for available update and returns an instance
|
||||
const pkg = JSON.parse(fs.readFileSync(__dirname + '/../package.json'));
|
||||
|
||||
if (pkg.version.indexOf('0.0.0') !== 0 && options.noUpdateNotifier !== true) {
|
||||
require('update-notifier')({ pkg }).notify();
|
||||
}
|
29
node_modules/nodemon/bin/postinstall.js
generated
vendored
Normal file
29
node_modules/nodemon/bin/postinstall.js
generated
vendored
Normal file
|
@ -0,0 +1,29 @@
|
|||
#!/usr/bin/env node
|
||||
|
||||
function main() {
|
||||
if (process.env.SUPPRESS_SUPPORT || process.env.OPENCOLLECTIVE_HIDE || process.env.CI) {
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
const Configstore = require('configstore');
|
||||
const pkg = require(__dirname + '/../package.json');
|
||||
const now = Date.now();
|
||||
|
||||
var week = 1000 * 60 * 60 * 24 * 7;
|
||||
|
||||
// create a Configstore instance with an unique ID e.g.
|
||||
// Package name and optionally some default values
|
||||
const conf = new Configstore(pkg.name);
|
||||
const last = conf.get('lastCheck');
|
||||
|
||||
if (!last || now - week > last) {
|
||||
console.log('\u001b[32mLove nodemon? You can now support the project via the open collective:\u001b[22m\u001b[39m\n > \u001b[96m\u001b[1mhttps://opencollective.com/nodemon/donate\u001b[0m\n');
|
||||
conf.set('lastCheck', now);
|
||||
}
|
||||
} catch (e) {
|
||||
console.log('\u001b[32mLove nodemon? You can now support the project via the open collective:\u001b[22m\u001b[39m\n > \u001b[96m\u001b[1mhttps://opencollective.com/nodemon/donate\u001b[0m\n');
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
Loading…
Add table
Add a link
Reference in a new issue