Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Sunsetting this project
Browse files Browse the repository at this point in the history
  • Loading branch information
imlucas committed Jan 15, 2019
1 parent 2376730 commit 4045480
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 253 deletions.
14 changes: 1 addition & 13 deletions .travis.yml
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"
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,28 @@
# :wave: Sunset

If you're seeing this message, it's because your module is still using `mongodb-js-fmt` which has been sunset. This project has been hanging around for far too long... `jsfmt` has long been replaced by `prettier` and editor's are now completely different. It no longer is, it was. :)

`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.


Here's how to make this go away:

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

## Why?

This project has been hanging around for far too long... `jsfmt` has long been replaced by `prettier` and editor's are now completely different.

Install [prettier for the IDE/Editor of your choice](https://prettier.io/docs/en/editors.html).

The README below is preserved for future travelers.

---


# mongodb-js-fmt [![travis][travis_img]][travis_url] [![npm][npm_img]][npm_url]

> Automatically rewrites [our code][mongodb-js] to [a shared spec][styleguide] because style is for tailors.
Expand Down
57 changes: 12 additions & 45 deletions bin/mongodb-js-fmt.js
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
`);
4 changes: 3 additions & 1 deletion index.js
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');
};
135 changes: 0 additions & 135 deletions lib/index.js

This file was deleted.

53 changes: 3 additions & 50 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,61 +2,14 @@
"name": "mongodb-js-fmt",
"description": "Automatically rewrites our code to a shared spec because style is for tailors.",
"version": "0.0.3",
"scripts": {
"check": "mongodb-js-precommit",
"fmt": "node bin/mongodb-js-fmt.js",
"test": "mocha",
"ci": "npm run check && npm test"
},
"bin": {
"mongodb-js-fmt": "bin/mongodb-js-fmt.js"
},
"homepage": "http://mongodb-js.github.io/fmt",
"homepage": "https://github.com/mongodb-js/fmt",
"repository": {
"type": "git",
"url": "git://github.com/mongodb-js/fmt.git"
},
"dependencies": {
"async": "^2.1.2",
"chalk": "^1.1.1",
"debug": "^2.2.0",
"esformatter-braces": "^1.2.1",
"esformatter-dot-notation": "^1.3.1",
"esformatter-eol-last": "^1.0.0",
"esformatter-parseint": "^1.0.3",
"esformatter-quote-props": "^2.0.0",
"esformatter-quotes": "^1.0.3",
"esformatter-remove-trailing-commas": "^1.0.1",
"esformatter-semicolons": "^1.1.1",
"esformatter-spaced-lined-comment": "^2.0.1",
"esformatter-var-each": "^2.1.0",
"figures": "^2.0.0",
"glob": "^7.1.1",
"jsfmt": "^0.5.0",
"lodash.defaults": "^4.2.0",
"lodash.uniq": "^4.5.0",
"minimist": "^1.2.0"
},
"devDependencies": {
"eslint-config-mongodb-js": "^2.2.0",
"mocha": "^3.1.2",
"mongodb-js-precommit": "^0.2.2",
"pre-commit": "^1.1.1"
},
"license": "Apache 2",
"precommit": "check",
"dependency-check": {
"ignore": [
"esformatter-braces",
"esformatter-dot-notation",
"esformatter-eol-last",
"esformatter-parseint",
"esformatter-quote-props",
"esformatter-quotes",
"esformatter-remove-trailing-commas",
"esformatter-semicolons",
"esformatter-spaced-lined-comment",
"esformatter-var-each"
]
}
"dependencies": {},
"license": "Apache 2"
}
8 changes: 0 additions & 8 deletions test/index.test.js

This file was deleted.

1 change: 0 additions & 1 deletion test/mocha.opts

This file was deleted.

0 comments on commit 4045480

Please sign in to comment.