Download the PHP package drupalninja/drupalx_theme without Composer
On this page you can find all versions of the php package drupalninja/drupalx_theme. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download drupalninja/drupalx_theme
More information about drupalninja/drupalx_theme
Files in drupalninja/drupalx_theme
Package drupalx_theme
Short Description DrupalX Bootstrap, Storybook starter theme.
License GPL-2.0-or-later
Informations about the package drupalx_theme
DrupalX Theme Starter Kit
The DrupalX theme starter kit is intended to be used with the DrupalX distribution.
This starter kit includes Bootstrap 5, Storybook and full template integration with the DrupalX install profile.
Public Storybook: https://drupalx.netlify.app/
Generating the theme
The following commands will generate the new custom theme using the DrupalX starter as the template:
Enable the new theme:
Compiling Theme Assets
If you haven't yet, install nvm: https://github.com/creationix/nvm
Use the right version of node with the following:
This command will look at your .nvmrc
file and use the
version node.js specified in it. This ensures all developers
use the same version of node for consistency.
If that version of node isn't installed, install it with the following command:
Install npm dependencies:
Build all required theme assets:
Compile SASS as files are updated:
Run Storybook:
Run Cypress tests (requires Storybook running):
Managing the 'dist' Folder
By default, the .gitignore file does not ignore the dist folder for demonstration purposes. However, in most projects, you will want to ignore this folder.
To do this, you can uncomment the relevant lines in the .gitignore file to ignore the dist folder and its contents. Here are the steps:
Update .gitignore:
- Open the .gitignore file.
- Find the lines related to the dist folder, which are commented out.
- Uncomment these lines to ensure the dist folder is ignored by Git.
Deploying Your Application:
- If you choose to ignore the dist folder, you will need to incorporate an npm build process when you deploy your application. This ensures that the necessary assets are generated and included in your deployment package.