postcss-prefixwrap
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -9,4 +9,4 @@ //------------------------------------------------------------------------------ | ||
hooks: { | ||
"pre-commit": "npm test" | ||
"pre-commit": "yarn test" | ||
} | ||
}; |
@@ -5,2 +5,8 @@ # [PostCSS Prefix Wrap](./README.md) / Changelog | ||
## [1.8.0](https://github.com/dbtedman/postcss-prefixwrap/releases/tag/1.8.0) | ||
### Features and Improvements | ||
- Jest | ||
## [1.7.0](https://github.com/dbtedman/postcss-prefixwrap/releases/tag/1.7.0) | ||
@@ -7,0 +13,0 @@ |
# [PostCSS Prefix Wrap](./README.md) / Contributing Guide | ||
- [Thanks](#thanks) | ||
- [Continuous Integration](#continuous-integration) | ||
- [Code Formatting](#code-formatting) | ||
- [Test](#test) | ||
- [Publishing](#publishing) | ||
## Thanks | ||
Thanks to all of the [Contributors](https://github.com/dbtedman/postcss-prefixwrap/graphs/contributors) who maintain PostCSS Prefix Wrap and [Jeff Teng](https://github.com/aj120426394) for contributing to the initial design. | ||
- [Testing and Code Quality](docs/CODE_QUALITY.md) | ||
- [Releasing](docs/RELEASING.md) | ||
## Continuous Integration | ||
Provided by [Travis CI](https://travis-ci.org/dbtedman/postcss-prefixwrap), run on every commit and pull request. | ||
## Code Formatting | ||
Code formatting support provided by [Prettier](https://prettier.io/) and [ESLint](http://eslint.org/). | ||
```bash | ||
yarn format | ||
``` | ||
## Test | ||
Tested using [Jest](https://jestjs.io/), using test cases defined in the `src/` directory matching `*.spec.ts` pattern. | ||
```bash | ||
yarn test | ||
``` | ||
## Publishing | ||
After updating the current version, run the following command: | ||
```bash | ||
yarn release | ||
``` | ||
You can test what will be published, run the following command: | ||
```bash | ||
yarn pack | ||
``` |
{ | ||
"name": "postcss-prefixwrap", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "A PostCSS plugin that is used to wrap css styles with a css selector to constrain their affect on parent elements in a page.", | ||
@@ -17,3 +17,3 @@ "license": "MIT", | ||
"nodejs", | ||
"npm", | ||
"yarn", | ||
"postcss", | ||
@@ -23,12 +23,10 @@ "postcss-plugin", | ||
], | ||
"main": "./build/main.js", | ||
"main": "./dist/main.js", | ||
"scripts": { | ||
"build": "tsc --build ./tsconfig.json && rm -rf ./build/{**/*,*}.spec.js && rm -rf ./build/acceptance", | ||
"clean": "rm -rf ./build/", | ||
"build": "tsc --build ./tsconfig.json --pretty", | ||
"format": "prettier './**/*.{md,yml,yaml,json,ts,js}' --write", | ||
"release": "npm run clean && npm run build && npm publish", | ||
"test": "npm run build && npm run test:lint && npm run test:unit && npm run test:acceptance", | ||
"test:acceptance": "nyc --reporter=text --reporter=lcov mocha --colors ./acceptance/**/*Test.js", | ||
"test:lint": "prettier './**/*.{md,yml,yaml,json,ts,js}' --check", | ||
"test:unit": "nyc --reporter=text --reporter=lcov mocha --colors -r ts-node/register ./unit/**/*Test.ts" | ||
"lint": "prettier './**/*.{md,yml,yaml,json,ts,js}' --check", | ||
"release": "yarn clean && yarn build && yarn publish", | ||
"test": "jest --coverage" | ||
}, | ||
@@ -39,15 +37,9 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@types/mocha": "5.2.7", | ||
"@types/jest": "24.0.19", | ||
"@types/node": "12.7.1", | ||
"ajv": "6.10.2", | ||
"ajv-keywords": "3.4.1", | ||
"codecov": "3.5.0", | ||
"fs-extra": "8.1.0", | ||
"gulp": "4.0.2", | ||
"gulp-postcss": "8.0.0", | ||
"husky": "3.0.3", | ||
"mocha": "6.2.0", | ||
"nyc": "14.1.1", | ||
"jest": "24.8.0", | ||
"postcss": "7.0.17", | ||
"prettier": "1.18.2", | ||
"ts-jest": "24.0.2", | ||
"ts-node": "8.3.0", | ||
@@ -54,0 +46,0 @@ "typescript": "3.5.3" |
@@ -14,2 +14,8 @@ # [PostCSS Prefix Wrap](https://github.com/dbtedman/postcss-prefixwrap) | ||
Using [Yarn](https://yarnpkg.com) | ||
```bash | ||
yarn add postcss-prefixwrap --save --exact | ||
``` | ||
Using [NPM](https://www.npmjs.com) | ||
@@ -16,0 +22,0 @@ |
@@ -12,3 +12,3 @@ { | ||
}, | ||
"sourceMap": true, | ||
"sourceMap": false, | ||
"strict": true, | ||
@@ -15,0 +15,0 @@ "target": "es5" |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
9
84
1
29166
49
601
1