Skip to content

Commit

Permalink
Add browserslist rc and stylelint-config-nebula
Browse files Browse the repository at this point in the history
  • Loading branch information
rbrtsmith committed Jul 24, 2017
1 parent e579519 commit e9ee8ee
Show file tree
Hide file tree
Showing 5 changed files with 293 additions and 211 deletions.
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
ie 9-11
26 changes: 2 additions & 24 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,30 +1,8 @@
{
"extends": "stylelint-config-sass-guidelines",
"extends": "stylelint-config-nebula",
"ignoreFiles": [
"nebula-css/tools/*",
"nebula-css/resets/_normalize.scss",
"demo/dist/main.css"
],
"plugins": [
"stylelint-scss",
"stylelint-selector-bem-pattern"
],
"rules": {
"selector-class-pattern": "",
"order/properties-alphabetical-order": null,
"selector-no-qualifying-type": [ true, {
"ignore": ["attribute"]
}],
"scss/selector-no-redundant-nesting-selector": true,
"scss/at-extend-no-missing-placeholder": true,
"scss/dollar-variable-no-missing-interpolation": true,
"scss/at-mixin-argumentless-call-parentheses": "never",
"plugin/selector-bem-pattern": {
"preset": "bem",
"componentName": "(([a-z0-9]+(?!-$)-?)+)",
"componentSelectors": {
"initial": "\\.{componentName}(((__|--)(([a-z0-9\\[\\]'=]+(?!-$)-?)+))+)?$"
}
}
}
]
}
6 changes: 0 additions & 6 deletions nebula-css/main.scss

This file was deleted.

13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"name": "nebula-css",
"version": "2.5.0",
"version": "2.6.0",
"description": "ITCSS and BEMIT based framework that is ultra exensible and scales to any project size",
"main": "index.js",
"scripts": {
"lint": "stylelint '*/**/*.scss' --syntax scss",
"sass": "node-sass --output-style compressed --include-path ./nebula-css/ -o demo demo/scss/main.scss",
"autoprefixer": "postcss -u autoprefixer --autoprefixer.browsers 'last 2 versions, ie 9-11' -r demo/main.css",
"autoprefixer": "postcss -u autoprefixer -r demo/main.css",
"build": "npm run sass && npm run autoprefixer",
"start": "npm run build && onchange '*/**/*.scss' -- npm run build",
"serve": "http-server demo -o",
"watch": "concurrently --kill-others \"onchange '*/**/*.scss' -- npm run build\" \"npm run serve\"",
"start": "npm run build && npm run watch",
"test": "npm run lint",
"deploy": "npm run lint && npm run build && gh-pages -d demo"
},
Expand All @@ -33,14 +34,14 @@
"homepage": "https://github.com/rbrtsmith/nebula-css#readme",
"devDependencies": {
"autoprefixer": "^7.1.2",
"concurrently": "^3.5.0",
"gh-pages": "^1.0.0",
"http-server": "^0.10.0",
"node-sass": "^4.5.3",
"onchange": "^3.2.1",
"postcss-cli": "^4.1.0",
"simple-autoreload-server": "^0.2.6",
"stylelint": "^8.0.0",
"stylelint-config-sass-guidelines": "^2.2.0",
"stylelint-scss": "^1.5.1",
"stylelint-selector-bem-pattern": "^1.1.0"
"stylelint-config-nebula": "^0.2.0"
}
}
Loading

0 comments on commit e9ee8ee

Please sign in to comment.