This website requires JavaScript.
Explore
Help
Sign In
vitalif-js
/
prettier
Watch
1
Star
0
Fork
You've already forked prettier
0
Code
Issues
Pull Requests
Projects
Releases
Wiki
Activity
68d68d4a43
prettier
/
bin
/
prettier.js
6 lines
86 B
JavaScript
Raw
Normal View
History
Unescape
Escape
initial
2016-11-29 20:14:10 +03:00
#!/usr/bin/env node
Add newline after shebang if necessary. (#215)
2017-01-18 01:16:40 +03:00
Support back to node v4
2017-01-10 20:18:22 +03:00
"use strict"
;
Run prettier on 0.13.0 (#497)
2017-01-28 18:50:22 +03:00
refactor(cli): separate files and make it pure as possible (#2730) * refactor(bin): resolveConfig * refactor(bin): getOptionsForFile * refactor(bin): remove `mapSeries` * refactor: move content from bin to src/cli * refactor: wrap content with function * refactor: move constants to another file * refactor: move utils to another file * refactor: move functions * refactor: extract functions * refactor: remove unnecessary variable * refactor: move `src/cli` to `src` with prefix `cli` * refactor: use template literal * refactor: remove unnecessary variable * refactor: extract `listDifferent` * refactor: extract `format` * refactor: change error message `Invalid configuration:` * refactor: bind args with argv * refactor: extract `getOptionsForFile` * refactor: extract `formatStdin` * refactor: extract `eachFilename` * refactor: extract `formatFiles` * refactor: remove unnecessary export * refactor: use `globby.sync()` * refactor: add `runPrettier.sync()` helper * refactor: fix linting * refactor: mock `process.argv` * chore: use `--forceExit` to avoid process hanging * refactor: mock `get-stream` * refactor: remove unnecessary stuff * refactor: fix linting * refactor: wrap `run` with `try..catch.finally` * refactor: restore `process.exitCode` after testing
2017-09-03 12:21:06 +03:00
require
(
"../src/cli"
)
.
run
(
process
.
argv
.
slice
(
2
)
)
;