Skip to content

Commit

Permalink
Add config for using latest preprocessor
Browse files Browse the repository at this point in the history
  • Loading branch information
simonsmith committed Feb 8, 2016
1 parent b75d6b7 commit 14b049c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .stylelintrc
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-suitcss"
}
18 changes: 9 additions & 9 deletions package.json
Expand Up @@ -9,19 +9,19 @@
"lib"
],
"devDependencies": {
"autoprefixer": "^6.1.0",
"postcss-import": "^7.1.3",
"postcss-reporter": "^1.3.0",
"postcss-cli": "^2.3.2",
"suitcss-components-test": "*"
"stylelint-config-suitcss": "^3.0.0",
"suitcss-components-test": "*",
"suitcss-preprocessor": "^1.0.0"
},
"scripts": {
"build": "npm run setup && npm run preprocess",
"build-test": "npm run setup && npm run preprocess-test",
"preprocess": "postcss -u postcss-import -u autoprefixer -u postcss-reporter -o build/build.css index.css",
"preprocess-test": "postcss -u postcss-import -u autoprefixer -u postcss-reporter -o build/test.css test/test.css",
"setup": "npm install && mkdir -p build",
"watch": "npm run preprocess-test -- -w"
"lint": "suitcss -c test/config.json index.css build/lint.css && rm build/lint.css",
"preprocess": "suitcss index.css build/build.css",
"preprocess-test": "suitcss -i test test/test.css build/test.css",
"setup": "npm install",
"watch": "npm run preprocess-test -- -w -v",
"test": "npm run lint"
},
"repository": {
"type": "git",
Expand Down
7 changes: 7 additions & 0 deletions test/config.json
@@ -0,0 +1,7 @@
{
"lint": true,
"postcss-reporter": {
"plugins": ["stylelint"],
"throwError": true
}
}

0 comments on commit 14b049c

Please sign in to comment.