Skip to content

Commit

Permalink
Move stylelint from root to themes-default/slim (#5082)
Browse files Browse the repository at this point in the history
* Move stylelint from root to themes-default/slim

* Fix `no-empty-source`
  • Loading branch information
sharkykh authored and OmgImAlexis committed Aug 30, 2018
1 parent f24316b commit 843e7a6
Show file tree
Hide file tree
Showing 12 changed files with 956 additions and 2,099 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,15 @@ jobs:
install:
- 'curl -o- -L https://yarnpkg.com/install.sh | bash'
- 'export PATH="$HOME/.yarn/bin:$PATH"'
- yarn install --ignore-scripts
- >-
cd $TRAVIS_BUILD_DIR/themes-default/slim &&
yarn install --ignore-scripts &&
cd $TRAVIS_BUILD_DIR
script:
- ./.github/build-themes-check.sh
- yarn test-css
- cd $TRAVIS_BUILD_DIR/themes-default/slim
- yarn xo
- yarn lint-css
- yarn test
- yarn coverage
# backend tests start here
Expand Down
34 changes: 0 additions & 34 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,46 +11,12 @@
"homepage": "https://github.com/PyMedusa/Medusa#readme",
"scripts": {
"lint": "node ./themes-default/helper.js lint",
"test-css": "stylelint ./themes-default/**/static/css/*.css ./themes-default/**/src/components/**/*.vue",
"test-api": "node_modules/.bin/dredd --config dredd/dredd.yml",
"install": "yarn run lint"
},
"devDependencies": {
"@mapbox/stylelint-processor-arbitrary-tags": "0.2.0",
"dredd": "5.1.11",
"execa": "1.0.0",
"stylelint": "9.5.0",
"stylelint-config-standard": "18.2.0",
"yargs": "12.0.1"
},
"stylelint": {
"extends": "stylelint-config-standard",
"processors": [
[
"@mapbox/stylelint-processor-arbitrary-tags",
{
"fileFilterRegex": [
".vue$"
]
}
]
],
"rules": {
"indentation": [
4,
{
"ignore": [
"inside-parens"
],
"message": "Please use 4 spaces for indentation.",
"severity": "error"
}
],
"no-descending-specificity": null
},
"ignoreFiles": [
"themes-default/**/static/css/lib/**",
"themes-default/**/static/css/*.min.css"
]
}
}
34 changes: 34 additions & 0 deletions themes-default/slim/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"author": "p0psicles",
"scripts": {
"lint": "xo",
"lint-css": "stylelint ./static/css/*.css ./src/components/**/*.vue",
"dev": "webpack --mode development",
"build": "webpack --mode production",
"install": "yarn run lint",
Expand Down Expand Up @@ -32,6 +33,7 @@
"@babel/polyfill": "7.0.0",
"@babel/preset-env": "7.0.0",
"@babel/register": "7.0.0",
"@mapbox/stylelint-processor-arbitrary-tags": "0.2.0",
"@vue/test-utils": "1.0.0-beta.24",
"ava": "1.0.0-beta.8",
"axios": "0.18.0",
Expand Down Expand Up @@ -63,6 +65,8 @@
"require-extension-hooks-babel": "1.0.0-beta.1",
"require-extension-hooks-vue": "1.1.0",
"run-sequence": "2.2.1",
"stylelint": "9.5.0",
"stylelint-config-standard": "18.2.0",
"vue": "2.5.17",
"vue-async-computed": "3.4.1",
"vue-js-toggle-button": "1.3.0",
Expand Down Expand Up @@ -133,6 +137,36 @@
],
"esnext": true
},
"stylelint": {
"extends": "stylelint-config-standard",
"processors": [
[
"@mapbox/stylelint-processor-arbitrary-tags",
{
"fileFilterRegex": [
".vue$"
]
}
]
],
"rules": {
"indentation": [
4,
{
"ignore": [
"inside-parens"
],
"message": "Please use 4 spaces for indentation.",
"severity": "error"
}
],
"no-descending-specificity": null
},
"ignoreFiles": [
"static/css/lib/**",
"static/css/*.min.css"
]
},
"ava": {
"require": [
"esm",
Expand Down
4 changes: 4 additions & 0 deletions themes-default/slim/src/components/display-show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -508,3 +508,7 @@ export default {
}
};
</script>

<style>
/* placeholder */
</style>
4 changes: 4 additions & 0 deletions themes-default/slim/src/components/home.vue
Original file line number Diff line number Diff line change
Expand Up @@ -445,3 +445,7 @@ export default {
}
};
</script>

<style>
/* placeholder */
</style>
4 changes: 4 additions & 0 deletions themes-default/slim/src/components/manual-post-process.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ export default {
}
};
</script>

<style>
/* placeholder */
</style>
4 changes: 4 additions & 0 deletions themes-default/slim/src/components/snatch-selection.vue
Original file line number Diff line number Diff line change
Expand Up @@ -354,3 +354,7 @@ export default {
}
};
</script>

<style>
/* placeholder */
</style>
4 changes: 4 additions & 0 deletions themes-default/slim/src/components/status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,7 @@ export default {
}
};
</script>

<style>
/* placeholder */
</style>
Loading

0 comments on commit 843e7a6

Please sign in to comment.