This is a very handy way of playing out with prettier without having to install it. People have already been using it actively in the issues. Putting it directly inside of the repo would be better than on mine.
52 lines
1.3 KiB
JSON
52 lines
1.3 KiB
JSON
{
|
|
"name": "prettier",
|
|
"version": "0.0.4",
|
|
"bin": {
|
|
"prettier": "./bin/prettier.js"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/jlongster/prettier.git"
|
|
},
|
|
"author": "James Long",
|
|
"bugs": {
|
|
"url": "https://github.com/jlongster/prettier/issues"
|
|
},
|
|
"main": "./index.js",
|
|
"dependencies": {
|
|
"ast-types": "git+https://github.com/jlongster/ast-types.git",
|
|
"babylon": "^6.15.0",
|
|
"flow-parser": "^0.37.0",
|
|
"get-stdin": "^5.0.1",
|
|
"minimist": "^1.2.0",
|
|
"private": "^0.1.6",
|
|
"recast": "^0.11.18",
|
|
"source-map": "^0.5.6"
|
|
},
|
|
"devDependencies": {
|
|
"jest": "^18.0.0",
|
|
"rollup": "^0.41.1",
|
|
"rollup-plugin-commonjs": "^7.0.0",
|
|
"rollup-plugin-node-builtins": "^2.0.0",
|
|
"rollup-plugin-node-resolve": "^2.0.0",
|
|
"rollup-plugin-real-babili": "^1.0.0-alpha3"
|
|
},
|
|
"scripts": {
|
|
"test": "jest",
|
|
"format": "./bin/prettier.js --write",
|
|
"format:single": "npm run format -- src/printer.js",
|
|
"format:all": "npm run format -- src/*.js bin/*.js",
|
|
"build:docs": "rollup -c docs/rollup.config.js"
|
|
},
|
|
"jest": {
|
|
"setupFiles": [
|
|
"<rootDir>/tests_config/run_spec.js"
|
|
],
|
|
"testRegex": "jsfmt\\.spec\\.js$",
|
|
"testPathIgnorePatterns": [
|
|
"tests/new_react",
|
|
"tests/more_react"
|
|
]
|
|
}
|
|
}
|