- Introduction
- Development requirements
- Setup environment
- Run
- Lint
- Installation on a drupal site
Source repository for the CLARIN Bootstrap Barrio sub-theme for Drupal 10.
The continuous integration system builds this repository and publishes the theme files to the theme distribution repository which can be used as a composer VCS.
For theme releases and instructions on how to install and use it in Drupal, check the the theme distribution repository instructions.
npm(see).- Drupal Bootstrap Barrio parent theme.
- You will need
npm(see).
Run build.sh from inside clarin-drupal-bootstrap-theme directory. The script will run all required setup commands, build the project and create a distribution build inside dist/.
Alternatively you can setup the development environment manually:
-
Checkout this repository.
-
From inside
clarin-drupal-bootstrap-themefolder runnpm install. -
Create a
distdirectory and extract the Bootstrap Barrio distribution in it:
mkdir dist
curl "https://ftp.drupal.org/files/projects/bootstrap_barrio-${BOOTSTRAP_BARRIO_VERSION}.tar.gz" | \
tar -x -z -p -C dist/
- From inside
clarin-drupal-bootstrap-themerun:gulp
Gulp will build the theme files to dist/clarin_bootstrap, launch a browsersync proxy and automatically listen for changes in the source files.
To view the full CLARIN website with the hot-deployed theme code go to: https://localhost:3000/ Browsersync will locally proxy the development server instance at https://grrr-www.clarin.eu/ and hot-deploy your code changes on top of that site.
- SCSS -> CSS code changes are automatically injected after built.
- JS and resource changes will trigger Gulp to automatically reload your browser after built.
To only build the output distribution without launching browsersync run: gulp dist
All SCSS and JS code is linted when running gulp [dist] and the build will fail in case of errors. You can also call gulp to only lint the code without building:
- Lint javascript:
gulp lintjs - Lint SCSS:
gulp lintscss
Both subcommands accept a --fix flag which attempts to automactically fix the found issues.
-
For regular installation instructions see the theme distribution repository.
-
To directly use your build in a drupal site:
- Get the theme build directory
dist/clarin_bootstrap. - Copy or link it in your Drupal themes directory.
- Install as you would normally install a contributed Drupal theme.
- Get the theme build directory