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

Commit 4045480

Browse files
committedJan 15, 2019
Sunsetting this project
1 parent 2376730 commit 4045480

8 files changed

+44
-253
lines changed
 

‎.travis.yml

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,4 @@
11
language: node_js
22
node_js:
33
- 4
4-
before_install:
5-
- npm install -g npm@3
6-
- npm config set loglevel error
7-
- npm config -g list -l
8-
- npm --version
9-
script: npm run-script ci
10-
# Disable cache to force travis to use node_js ver 4
11-
#cache:
12-
# directories:
13-
# - node_modules
14-
# Post build notifications to the Integrations Flowdock
15-
notifications:
16-
flowdock: e3dc17bc8a2c1b3412abe3e5747f8291
4+
script: echo "Sunset"

‎README.md

+25
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,28 @@
1+
# :wave: Sunset
2+
3+
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. :)
4+
5+
`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.
6+
7+
8+
Here's how to make this go away:
9+
10+
1. Remove `"fmt": "mongodb-js-fmt"` from `"scripts"` in your package.json
11+
2. `npm uninstall --save-dev mongodb-js-fmt`
12+
3. Install [prettier for the IDE/Editor of your choice](https://prettier.io/docs/en/editors.html)
13+
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
14+
15+
## Why?
16+
17+
This project has been hanging around for far too long... `jsfmt` has long been replaced by `prettier` and editor's are now completely different.
18+
19+
Install [prettier for the IDE/Editor of your choice](https://prettier.io/docs/en/editors.html).
20+
21+
The README below is preserved for future travelers.
22+
23+
---
24+
25+
126
# mongodb-js-fmt [![travis][travis_img]][travis_url] [![npm][npm_img]][npm_url]
227

328
> Automatically rewrites [our code][mongodb-js] to [a shared spec][styleguide] because style is for tailors.

‎bin/mongodb-js-fmt.js

+12-45
Original file line numberDiff line numberDiff line change
@@ -1,50 +1,17 @@
11
#!/usr/bin/env node
22

3-
/* eslint no-sync:0 */
4-
var path = require('path');
5-
var fs = require('fs');
6-
var chalk = require('chalk');
7-
var figures = require('figures');
8-
var format = require('util').format;
3+
console.error('⚠ mongodb-js-fmt has been sunset!');
4+
console.error(' Please read: https://github.com/mongodb-js/fmt');
5+
console.error(`
6+
---
7+
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. :)
98
10-
var usage = fs.readFileSync(path.resolve(__dirname, '../usage.txt')).toString();
11-
var args = require('minimist')(process.argv.slice(2), {
12-
boolean: ['debug', 'dry', 'json']
13-
});
9+
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.
1410
15-
if (args.debug) {
16-
process.env.DEBUG = 'mongodb-js-fmt';
17-
}
18-
var fmt = require('../');
19-
var pkg = require('../package.json');
11+
Here's how to make this go away:
2012
21-
args.globs = args._;
22-
23-
24-
if (args.help || args.h) {
25-
console.error(usage);
26-
process.exit(1);
27-
}
28-
if (args.version) {
29-
console.error(pkg.version);
30-
process.exit(1);
31-
}
32-
33-
fmt(args, function(err, res) {
34-
if (err) {
35-
if (args.json) {
36-
err = JSON.stringify(err, null, 2);
37-
}
38-
console.error(chalk.red(figures.cross), err.message);
39-
console.error(chalk.gray(err.stack));
40-
process.exit(1);
41-
return;
42-
}
43-
if (args.json) {
44-
console.log(JSON.stringify(res, null, 2));
45-
} else {
46-
console.log(chalk.green(figures.tick),
47-
format('formatted (%d), unchanged (%d)',
48-
res.formatted.length, res.unchanged.length));
49-
}
50-
});
13+
1. Remove \`"fmt": "mongodb-js-fmt"\` from \`"scripts"\` in your package.json
14+
2. npm uninstall --save-dev mongodb-js-fmt
15+
3. Install prettier for the IDE/Editor of your choice: https://prettier.io/docs/en/editors.html
16+
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
17+
`);

‎index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
module.exports = require('./lib');
1+
module.exports = function(opts, done) {
2+
throw new Error('Project sunsetted');
3+
};

‎lib/index.js

-135
This file was deleted.

‎package.json

+3-50
Original file line numberDiff line numberDiff line change
@@ -2,61 +2,14 @@
22
"name": "mongodb-js-fmt",
33
"description": "Automatically rewrites our code to a shared spec because style is for tailors.",
44
"version": "0.0.3",
5-
"scripts": {
6-
"check": "mongodb-js-precommit",
7-
"fmt": "node bin/mongodb-js-fmt.js",
8-
"test": "mocha",
9-
"ci": "npm run check && npm test"
10-
},
115
"bin": {
126
"mongodb-js-fmt": "bin/mongodb-js-fmt.js"
137
},
14-
"homepage": "http://mongodb-js.github.io/fmt",
8+
"homepage": "https://github.com/mongodb-js/fmt",
159
"repository": {
1610
"type": "git",
1711
"url": "git://github.com/mongodb-js/fmt.git"
1812
},
19-
"dependencies": {
20-
"async": "^2.1.2",
21-
"chalk": "^1.1.1",
22-
"debug": "^2.2.0",
23-
"esformatter-braces": "^1.2.1",
24-
"esformatter-dot-notation": "^1.3.1",
25-
"esformatter-eol-last": "^1.0.0",
26-
"esformatter-parseint": "^1.0.3",
27-
"esformatter-quote-props": "^2.0.0",
28-
"esformatter-quotes": "^1.0.3",
29-
"esformatter-remove-trailing-commas": "^1.0.1",
30-
"esformatter-semicolons": "^1.1.1",
31-
"esformatter-spaced-lined-comment": "^2.0.1",
32-
"esformatter-var-each": "^2.1.0",
33-
"figures": "^2.0.0",
34-
"glob": "^7.1.1",
35-
"jsfmt": "^0.5.0",
36-
"lodash.defaults": "^4.2.0",
37-
"lodash.uniq": "^4.5.0",
38-
"minimist": "^1.2.0"
39-
},
40-
"devDependencies": {
41-
"eslint-config-mongodb-js": "^2.2.0",
42-
"mocha": "^3.1.2",
43-
"mongodb-js-precommit": "^0.2.2",
44-
"pre-commit": "^1.1.1"
45-
},
46-
"license": "Apache 2",
47-
"precommit": "check",
48-
"dependency-check": {
49-
"ignore": [
50-
"esformatter-braces",
51-
"esformatter-dot-notation",
52-
"esformatter-eol-last",
53-
"esformatter-parseint",
54-
"esformatter-quote-props",
55-
"esformatter-quotes",
56-
"esformatter-remove-trailing-commas",
57-
"esformatter-semicolons",
58-
"esformatter-spaced-lined-comment",
59-
"esformatter-var-each"
60-
]
61-
}
13+
"dependencies": {},
14+
"license": "Apache 2"
6215
}

‎test/index.test.js

-8
This file was deleted.

‎test/mocha.opts

-1
This file was deleted.

0 commit comments

Comments
 (0)
This repository has been archived.