Skip to content

Commit 708e00b

Browse files
authored
Merge pull request #3 from nutboltu/feature-html-tag
[Feature] wrapped html tag differently
2 parents 6b31165 + 902b595 commit 708e00b

File tree

7 files changed

+120
-2
lines changed

7 files changed

+120
-2
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
22
.idea
3+
.vscode

.npmignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
ignore all
2+
3+
*
4+
5+
# override above and include followings
6+
7+
!index.js
8+
!package.json

.travis.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
language: node_js
2+
node_js: stable
3+
cache: yarn
4+
before_install: yarn global add greenkeeper-lockfile@1
5+
before_script: greenkeeper-lockfile-update
6+
after_script: greenkeeper-lockfile-upload

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 Farhad Yasir
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

index.js

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ const postCssWrapperPlugin= postCss.plugin('postcss-wrapper-plugin', function(pr
1616

1717
const joinPrefix = function(prefix) {
1818
return function(selector) {
19+
if(selector === 'html') {
20+
return selector+prefix;
21+
}
1922
return _.join(' ', [prefix, selector]);
2023
};
2124
};

package-lock.json

+77
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "postcss-wrapper-loader",
3-
"version": "0.0.2",
3+
"version": "1.0.0",
44
"private": false,
55
"description": "This plugin wraps all the cssClasses in a css file with a prefix class while webpack bundled. It helps to scope a specific css file with a prefix class",
66
"main": "index.js",
@@ -12,7 +12,9 @@
1212
"test": "echo \"Error: no test specified\" && exit 1"
1313
},
1414
"keywords": [
15-
"postcss-wrapper"
15+
"postcss-wrapper",
16+
"global class wrapper",
17+
"parent class wrapper"
1618
],
1719
"author": "Farhad Yasir",
1820
"license": "MIT",

0 commit comments

Comments
 (0)