rtcamp / elementary
A starter theme that facilitates a quick head start for developing new block-based themes along with a bunch of developer-friendly features.
Installs: 105
Dependents: 0
Suggesters: 0
Security: 0
Stars: 27
Watchers: 30
Forks: 6
Open Issues: 15
Language:JavaScript
Type:wordpress-theme
Requires (Dev)
- dev-main
- v1.0.1
- v1.0.0
- dev-dependabot/composer/wp-phpunit/wp-phpunit-6.6.2
- dev-dependabot/composer/yoast/phpunit-polyfills-3.0.0
- dev-dependabot/npm_and_yarn/wordpress-packages-1d1ea40422
- dev-dependabot/npm_and_yarn/eslint-plugin-jest-28.8.3
- dev-dependabot/npm_and_yarn/eslint-plugin-import-2.30.0
- dev-dependabot/npm_and_yarn/eslint-9.11.1
- dev-dependabot/npm_and_yarn/browserslist-4.24.0
- dev-dependabot/npm_and_yarn/lint-staged-15.2.10
- dev-dependabot/github_actions/actions/setup-node-4.0.4
- dev-dependabot/npm_and_yarn/babel/core-7.25.2
- dev-feature/add-support-for-js-modules
- dev-feature/readme-update
- dev-fix/phpcs-issues
- dev-fix/theme-init
- dev-fix/readme
- dev-update/gutenberg-v17.3.0-packages
- dev-update/gutenberg-v17.2.3-packages
- dev-update/gutenberg-v17.2.1-packages
- dev-enhance/use-wp-cli-for-pot-file-generation
- dev-update/gutenberg-v17.2.0-packages
- dev-update/gutenberg-v17.1.4-packages
- dev-update/gutenberg-v17.1.3-packages
- dev-develop
This package is not auto-updated.
Last update: 2024-11-16 02:31:51 UTC
README
A starter theme that facilitates a quick head start for developing new block-based themes along with a bunch of developer-friendly features.
Understand the Folder Structure 📂
.
├── assets (Holds theme's assets)
│  └── src
│  └── js
│  └── css
├── bin (Holds scripts)
├── functions.php (PHP entry point)
├── inc
│  ├── classes (Holds all classes)
│  │  └── class-elementary-theme.php (Instantiates all of the classes)
│  ├── helpers (PHP Helpers)
│  │  └── custom-functions.php
│  └── traits (PHP Traits)
│  └── trait-singleton.php
├── index.php
├── parts (Block Template Parts)
├── patterns (Block Patterns)
│  ├── *.html
├── style.css
├── templates (Block Templates)
│  ├── *.html
├── tests (Holds JS & PHP tests)
│  ├── bootstrap.php
│  ├── js
│  └── php
└── theme.json
Get Started 🚀
Method 1 (Recommended)
composer create-project rtcamp/elementary [folder_name]
This command is equivalent to cloning the repository and running composer install && npm install
Method 2
Manually clone this repository using
git clone [URL to Git repo]
Having cloned this repository, install node packages and PHP dependencies using
composer install
In both the methods, you will be prompted with a theme setup wizard which will help you with the search-replace. That was all! You're good to go with building your block theme. ✨
Note: Refer to the .nvmrc
file to check the supported Node.js version for running this project. If your current Node.js version does not run the project successfully on localhost, please use Node Version Manager on your terminal to configure the right Node.js version.
Development 💻
Production
npm run build:prod
Watch changes
npm start
Linting & Formatting
Lint JS, CSS & PHP.
npm run lint:js
npm run lint:css
npm run lint:php #phpcs
Auto fix fixable linting errors for JS, CSS & PHP.
npm run lint:js:fix
npm run lint:css:fix
npm run lint:php:fix #phpcbf
Testing
Run all tests.
npm run test
Run JS tests.
npm run test:js
Watch JS tests.
npm run test:js:watch
Run PHP tests.
npm run test:php