Skip to content

Commit

Permalink
Add package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
m-e-h committed Jul 10, 2017
1 parent b9dd2a4 commit 3b576e6
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Dependency directories
node_modules/
yarn.lock
46 changes: 46 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "_s",
"version": "1.0.0",
"scripts": {
"css-build": "npm run css-lint && npm run css-compile && npm run css-prefix && npm run css-format && npm run css-fix",
"css-lint": "stylelint style.css",
"css-compile": "node-sass sass/style.scss style.css --output-style expanded --indent-type tab --indent-width 1",
"css-prefix": "postcss style.css -u autoprefixer -o style.css --no-map",
"css-format": "stylefmt style.css",
"css-fix": "stylelint style.css --fix",
"scss-lint": "stylelint sass/**/*.scss",
"js-lint": "eslint js/**",
"js-fix": "eslint js/** --fix"
},
"devDependencies": {
"autoprefixer": "^7.1.2",
"browserslist": "^2.1.5",
"eslint": "^4.1.1",
"eslint-config-wordpress": "^2.0.0",
"node-sass": "^4.5.3",
"postcss-cli": "^4.1.0",
"stylefmt": "^6.0.0",
"stylelint": "^7.12.0",
"stylelint-config-wordpress": "^11.0.0"
},
"stylelint": {
"defaultSeverity": "warning",
"extends": "stylelint-config-wordpress",
"rules": {
"max-line-length": [ 80, {
"ignorePattern": ["/\b(Description:).*\n/", "/https?:\/\/[0-9,a-z]*.*/"]
} ]
}
},
"eslintConfig": {
"extends": "wordpress"
},
"eslintIgnore": [
"js/**.min.js"
],
"browserslist": [
"> 1%",
"last 2 versions",
"IE 11"
]
}

0 comments on commit 3b576e6

Please sign in to comment.