Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .buildignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ webpack.config.js
.eslintignore
.eslintrc.js
.npmrc
.stylelintrc

tests/
test-results/
Expand Down
24 changes: 24 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"extends": "@wordpress/stylelint-config",
"rules": {
"selector-class-pattern": null,
"selector-id-pattern": null
},
"overrides": [
{
"files": ["**/*.scss"],
"plugins": ["stylelint-scss"],
"rules": {
"at-rule-no-unknown": null,
"scss/at-rule-no-unknown": true
}
}
],
"ignoreFiles": [
"**/node_modules/**",
"**/vendor/**",
"assets/**",
"coverage/**",
"tests/**"
]
}
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
}
},
"scripts": {
"lint": "phpcs --extensions=php --standard=./phpcs.xml --ignore=node_modules,vendor,assets,tmp -p .",
"lint:fix": "vendor/bin/phpcbf --extensions=php --standard=./phpcs.xml --ignore=node_modules,vendor,assets,tmp .",
"lint:php": "vendor/bin/phpcs --extensions=php --standard=./phpcs.xml --ignore=node_modules,vendor,assets,tmp -p .",
"lint:php:fix": "vendor/bin/phpcbf --extensions=php --standard=./phpcs.xml --ignore=node_modules,vendor,assets,tmp .",
"test": "phpunit --testsuite hello-elementor",
"test:install": "bash ./bin/install-wp-tests-local.sh"
}
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@
"start": "wp-scripts start",
"build:dev": "composer update && composer install && wp-scripts build --env=developemntWithWatch",
"build:prod": "composer install --no-dev && wp-scripts build --env=production",
"lint": "npm run lint:css && npm run lint:js && npm run lint:php",
"lint:css": "wp-scripts lint-style",
"lint:css:fix": "wp-scripts lint-style --fix",
"lint:js": "wp-scripts lint-js",
"lint:js:fix": "wp-scripts lint-js --fix",
"lint:php": "composer lint:php",
"lint:php:fix": "composer lint:php:fix",
"clean:build": "rm -rf assets && rm -rf $npm_package_name",
"build:dir": "npm run clean:build && npm run build:prod && rsync -av --exclude-from=.buildignore . $npm_package_name",
"package": "npm run clean:build && npm run build:prod && rsync -av --exclude-from=.buildignore . $npm_package_name",
Expand Down
Loading