Skip to content

Commit e9ee8ee

Browse files
committed
Add browserslist rc and stylelint-config-nebula
1 parent e579519 commit e9ee8ee

File tree

5 files changed

+293
-211
lines changed

5 files changed

+293
-211
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
ie 9-11

.stylelintrc

Lines changed: 2 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,8 @@
11
{
2-
"extends": "stylelint-config-sass-guidelines",
2+
"extends": "stylelint-config-nebula",
33
"ignoreFiles": [
44
"nebula-css/tools/*",
55
"nebula-css/resets/_normalize.scss",
66
"demo/dist/main.css"
7-
],
8-
"plugins": [
9-
"stylelint-scss",
10-
"stylelint-selector-bem-pattern"
11-
],
12-
"rules": {
13-
"selector-class-pattern": "",
14-
"order/properties-alphabetical-order": null,
15-
"selector-no-qualifying-type": [ true, {
16-
"ignore": ["attribute"]
17-
}],
18-
"scss/selector-no-redundant-nesting-selector": true,
19-
"scss/at-extend-no-missing-placeholder": true,
20-
"scss/dollar-variable-no-missing-interpolation": true,
21-
"scss/at-mixin-argumentless-call-parentheses": "never",
22-
"plugin/selector-bem-pattern": {
23-
"preset": "bem",
24-
"componentName": "(([a-z0-9]+(?!-$)-?)+)",
25-
"componentSelectors": {
26-
"initial": "\\.{componentName}(((__|--)(([a-z0-9\\[\\]'=]+(?!-$)-?)+))+)?$"
27-
}
28-
}
29-
}
7+
]
308
}

nebula-css/main.scss

Lines changed: 0 additions & 6 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
{
22
"name": "nebula-css",
3-
"version": "2.5.0",
3+
"version": "2.6.0",
44
"description": "ITCSS and BEMIT based framework that is ultra exensible and scales to any project size",
55
"main": "index.js",
66
"scripts": {
77
"lint": "stylelint '*/**/*.scss' --syntax scss",
88
"sass": "node-sass --output-style compressed --include-path ./nebula-css/ -o demo demo/scss/main.scss",
9-
"autoprefixer": "postcss -u autoprefixer --autoprefixer.browsers 'last 2 versions, ie 9-11' -r demo/main.css",
9+
"autoprefixer": "postcss -u autoprefixer -r demo/main.css",
1010
"build": "npm run sass && npm run autoprefixer",
11-
"start": "npm run build && onchange '*/**/*.scss' -- npm run build",
1211
"serve": "http-server demo -o",
12+
"watch": "concurrently --kill-others \"onchange '*/**/*.scss' -- npm run build\" \"npm run serve\"",
13+
"start": "npm run build && npm run watch",
1314
"test": "npm run lint",
1415
"deploy": "npm run lint && npm run build && gh-pages -d demo"
1516
},
@@ -33,14 +34,14 @@
3334
"homepage": "https://github.com/rbrtsmith/nebula-css#readme",
3435
"devDependencies": {
3536
"autoprefixer": "^7.1.2",
37+
"concurrently": "^3.5.0",
3638
"gh-pages": "^1.0.0",
3739
"http-server": "^0.10.0",
3840
"node-sass": "^4.5.3",
3941
"onchange": "^3.2.1",
4042
"postcss-cli": "^4.1.0",
43+
"simple-autoreload-server": "^0.2.6",
4144
"stylelint": "^8.0.0",
42-
"stylelint-config-sass-guidelines": "^2.2.0",
43-
"stylelint-scss": "^1.5.1",
44-
"stylelint-selector-bem-pattern": "^1.1.0"
45+
"stylelint-config-nebula": "^0.2.0"
4546
}
4647
}

0 commit comments

Comments
 (0)