Skip to content

Commit

Permalink
Development environment and husky added
Browse files Browse the repository at this point in the history
  • Loading branch information
Shiva Poudel committed Feb 12, 2019
1 parent 286b2a2 commit a187323
Show file tree
Hide file tree
Showing 24 changed files with 3,965 additions and 3,099 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*.min.js

/assets/js/jquery-tiptip/**
16 changes: 16 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"root": true,
"env": {
"browser": true,
"node": true
},
"globals": {
"wp": true
},
"rules": {
"camelcase": 0,
"indent": 0,
"max-len": [ 2, { "code": 142 } ],
"no-console": 1
}
}
58 changes: 0 additions & 58 deletions .stylelintrc

This file was deleted.

22 changes: 22 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": "stylelint-config-wordpress",
"rules": {
"at-rule-empty-line-before": null,
"at-rule-no-unknown": null,
"comment-empty-line-before": null,
"declaration-block-no-duplicate-properties": null,
"declaration-colon-newline-after": null,
"declaration-property-unit-whitelist": null,
"font-weight-notation": null,
"font-family-name-quotes": null,
"font-family-no-missing-generic-family-keyword": null,
"max-line-length": null,
"no-descending-specificity": null,
"no-duplicate-selectors": null,
"rule-empty-line-before": null,
"selector-class-pattern": null,
"string-quotes": "single",
"value-keyword-case": null,
"value-list-comma-newline-after": null
}
}
7 changes: 3 additions & 4 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ module.exports = function( grunt ){
files: [
'<%= dirs.css %>/*.scss'
],
tasks: ['sass', 'rtlcss', 'cssmin']
tasks: ['sass', 'rtlcss', 'postcss', 'cssmin']
},
js: {
files: [
Expand Down Expand Up @@ -192,8 +192,7 @@ module.exports = function( grunt ){
// PHP Code Sniffer.
phpcs: {
options: {
bin: 'vendor/bin/phpcs',
standard: './phpcs.ruleset.xml'
bin: 'vendor/bin/phpcs'
},
dist: {
src: [
Expand Down Expand Up @@ -226,7 +225,7 @@ module.exports = function( grunt ){
}
});

// Load NPM tasks to be used here
// Load NPM tasks to be used here.
grunt.loadNpmTasks( 'grunt-sass' );
grunt.loadNpmTasks( 'grunt-phpcs' );
grunt.loadNpmTasks( 'grunt-rtlcss' );
Expand Down
24 changes: 6 additions & 18 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,21 @@
"homepage": "https://themegrill.com/plugins/demo-importer/",
"type": "wordpress-plugin",
"license": "GPL-2.0+",
"prefer-stable": true,
"minimum-stability": "dev",
"require": {
"composer/installers": "~1.2"
},
"require-dev": {
"squizlabs/php_codesniffer": "*",
"wp-coding-standards/wpcs": "^0.14",
"wpeverest/wpeverest-git-hooks": "*",
"wpeverest/wpeverest-sniffs": "*",
"wimg/php-compatibility": "^8.0",
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.3"
"wpeverest/wpeverest-sniffs": "^0.0.2"
},
"scripts": {
"pre-update-cmd": [
"WPEverest\\GitHooks\\Hooks::preHooks"
],
"pre-install-cmd": [
"WPEverest\\GitHooks\\Hooks::preHooks"
],
"post-install-cmd": [
"WPEverest\\GitHooks\\Hooks::postHooks"
],
"post-update-cmd": [
"WPEverest\\GitHooks\\Hooks::postHooks"
],
"phpcs": [
"phpcs -s -p"
],
"phpcs-pre-commit": [
"phpcs -s -p -n"
],
"phpcbf": [
"phpcbf -p"
]
Expand Down
Loading

0 comments on commit a187323

Please sign in to comment.