This repository has been archived by the owner on Jan 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
44 additions
and
253 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,4 @@ | ||
language: node_js | ||
node_js: | ||
- 4 | ||
before_install: | ||
- npm install -g npm@3 | ||
- npm config set loglevel error | ||
- npm config -g list -l | ||
- npm --version | ||
script: npm run-script ci | ||
# Disable cache to force travis to use node_js ver 4 | ||
#cache: | ||
# directories: | ||
# - node_modules | ||
# Post build notifications to the Integrations Flowdock | ||
notifications: | ||
flowdock: e3dc17bc8a2c1b3412abe3e5747f8291 | ||
script: echo "Sunset" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,17 @@ | ||
#!/usr/bin/env node | ||
|
||
/* eslint no-sync:0 */ | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
var chalk = require('chalk'); | ||
var figures = require('figures'); | ||
var format = require('util').format; | ||
console.error('⚠ mongodb-js-fmt has been sunset!'); | ||
console.error(' Please read: https://github.com/mongodb-js/fmt'); | ||
console.error(` | ||
--- | ||
If you're seeing this message, it's because your module is still using 'mongodb-js-fmt' which has been sunset. It no longer is, it was. :) | ||
var usage = fs.readFileSync(path.resolve(__dirname, '../usage.txt')).toString(); | ||
var args = require('minimist')(process.argv.slice(2), { | ||
boolean: ['debug', 'dry', 'json'] | ||
}); | ||
mongodb-js-fmt never even made it to a minor release, but it snuck into lots of project templates so I'm including this message to help cleanup. | ||
if (args.debug) { | ||
process.env.DEBUG = 'mongodb-js-fmt'; | ||
} | ||
var fmt = require('../'); | ||
var pkg = require('../package.json'); | ||
Here's how to make this go away: | ||
args.globs = args._; | ||
|
||
|
||
if (args.help || args.h) { | ||
console.error(usage); | ||
process.exit(1); | ||
} | ||
if (args.version) { | ||
console.error(pkg.version); | ||
process.exit(1); | ||
} | ||
|
||
fmt(args, function(err, res) { | ||
if (err) { | ||
if (args.json) { | ||
err = JSON.stringify(err, null, 2); | ||
} | ||
console.error(chalk.red(figures.cross), err.message); | ||
console.error(chalk.gray(err.stack)); | ||
process.exit(1); | ||
return; | ||
} | ||
if (args.json) { | ||
console.log(JSON.stringify(res, null, 2)); | ||
} else { | ||
console.log(chalk.green(figures.tick), | ||
format('formatted (%d), unchanged (%d)', | ||
res.formatted.length, res.unchanged.length)); | ||
} | ||
}); | ||
1. Remove \`"fmt": "mongodb-js-fmt"\` from \`"scripts"\` in your package.json | ||
2. npm uninstall --save-dev mongodb-js-fmt | ||
3. Install prettier for the IDE/Editor of your choice: https://prettier.io/docs/en/editors.html | ||
4. If you see \`"mongodb-js-fmt": "0.0.3"\` in a friend's \`package.json\`, send them a PR or this link https://github.com/mongodb-js/fmt | ||
`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
module.exports = require('./lib'); | ||
module.exports = function(opts, done) { | ||
throw new Error('Project sunsetted'); | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.