prettier-webpack-plugin
Advanced tools
Comparing version 0.2.2 to 0.2.3
@@ -0,0 +0,0 @@ const webpack = require("webpack"); |
@@ -0,0 +0,0 @@ |
29
index.js
@@ -5,14 +5,19 @@ const prettier = require("prettier"); | ||
const DEFAULT_EXTENSIONS = [ | ||
".js", | ||
".jsx", | ||
".ts", | ||
".tsx", | ||
".css", | ||
".less", | ||
".scss", | ||
".sass", | ||
".graphql", | ||
".json" | ||
]; | ||
const DEFAULT_EXTENSIONS = prettier.getSupportInfo | ||
? prettier | ||
.getSupportInfo() | ||
.languages.map(l => l.extensions) | ||
.reduce((accumulator, currentValue) => accumulator.concat(currentValue)) | ||
: [ | ||
".js", | ||
".jsx", | ||
".ts", | ||
".tsx", | ||
".css", | ||
".less", | ||
".scss", | ||
".sass", | ||
".graphql", | ||
".json" | ||
]; | ||
@@ -19,0 +24,0 @@ const DEFAULT_ENCODING = "utf-8"; |
{ | ||
"name": "prettier-webpack-plugin", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Automatically process your source files with Prettier when bundling via Webpack", | ||
@@ -31,8 +31,9 @@ "main": "index.js", | ||
"homepage": "https://github.com/hawkins/prettier-webpack-plugin#readme", | ||
"dependencies": { | ||
"prettier": "^1.6.1" | ||
"peerDependencies": { | ||
"prettier": "^1.0.0" | ||
}, | ||
"devDependencies": { | ||
"all-contributors-cli": "^4.3.0", | ||
"jest": "^20.0.4", | ||
"jest": "^22.0.1", | ||
"prettier": "^1.0.0", | ||
"uuid": "^3.0.1", | ||
@@ -39,0 +40,0 @@ "webpack": "^3.1.0" |
@@ -21,3 +21,3 @@ # Prettier Webpack Plugin | ||
Simply run `npm install --save-dev prettier-webpack-plugin` or `yarn add --dev prettier-webpack-plugin` to install. | ||
Simply run `npm install --save-dev prettier prettier-webpack-plugin` or `yarn add --dev prettier prettier-webpack-plugin` to install. | ||
@@ -24,0 +24,0 @@ Then, in your Webpack config files, add the lines: |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
219
15549
5
8
- Removedprettier@^1.6.1