Skip to content

Commit

Permalink
Update json files and builde rules
Browse files Browse the repository at this point in the history
Update package.json to align with LSX Design

- Changed project name to "lsx-design"
- Updated description to "The default WordPress theme for LSX Design"
- Updated author to "Lightspeed WP"
- Updated homepage and repository URLs to point to LightspeedWP GitHub repository
- Updated keywords to include "LSX Design"
- Adjusted script commands to use the "lsx-design" text domain
  • Loading branch information
ashleyshaw committed Oct 13, 2024
1 parent ba5e432 commit bd12728
Show file tree
Hide file tree
Showing 11 changed files with 3,311 additions and 38 deletions.
16 changes: 2 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
node_modules
.sass-cache
.idea
*.sublime-workspace
package-lock.json
vendor
wp-content
package.json
.DS_Store
templates/.DS_Store
.DS_Store
assets/.DS_Store
.DS_Store
.DS_Store
.DS_Store
assets/css/.DS_Store
*.DS_Store
.vscode
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20
22 changes: 15 additions & 7 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
<?xml version="1.0"?>
<ruleset
name="WordPress-LSX"
name="WordPress-LSX-Design"
namespace="WordPressCS\WordPress"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd"
>
<description>Coding standards</description>
<description>WordPress Coding Standards for HTML and PHP files in the project.</description>

<rule ref="WordPress"/>
<rule ref="WordPress-Core"/>
<rule ref="WordPress-Docs"/>
<rule ref="WordPress-Extra"/>

<!-- Paths to exclude from the scan -->
<exclude-pattern>vendor/*</exclude-pattern>
<exclude-pattern>node_modules/*</exclude-pattern>
<exclude-pattern>assets/*</exclude-pattern>
<exclude-pattern>styles/*</exclude-pattern>

<!-- Paths to scan -->
<file>.</file>
<exclude-pattern>/tests/</exclude-pattern>
<exclude-pattern>/vendor/</exclude-pattern>
<exclude-pattern>/wordpress/</exclude-pattern>
<exclude-pattern>/wp-content/</exclude-pattern>
<exclude-pattern>/dependencies/</exclude-pattern>


<arg name="extensions" value="php" />
<arg name="basepath" value="./" />
Expand Down
3 changes: 3 additions & 0 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-recommended"
}
23 changes: 20 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "lightspeeddevelopment/lsx",
"name": "lightspeedwp/lsx-design",
"description": "is a minimalistic WordPress theme that allows users to create fast, efficient and attractive websites that are feature-rich. The theme displays perfectly on all desktop and portable devices.",
"type": "wordpress-theme",
"keywords": [
"WordPress",
"Themes"
],
"require": {
"php": ">=8.0",
"composer/installers": "^2.0.0"
Expand Down Expand Up @@ -29,5 +33,18 @@
"dealerdirect/phpcodesniffer-composer-installer": true,
"johnpbloch/wordpress-core-installer": true
}
}
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.10",
"wp-coding-standards/wpcs": "^3.1"
},
"scripts": {
"format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source",
"lint": "phpcs --standard=phpcs.xml.dist"
}
}
8 changes: 8 additions & 0 deletions lsx-design.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"folders": [
{
"path": "../../.."
}
],
"settings": {}
}
Loading

0 comments on commit bd12728

Please sign in to comment.