Download the PHP package droptica/droopler-project without Composer
On this page you can find all versions of the php package droptica/droopler-project. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download droptica/droopler-project
More information about droptica/droopler-project
Files in droptica/droopler-project
Package droopler-project
Short Description Project template for Droopler with Composer
License GPL-2.0-or-later
Homepage https://www.droopler.com
Informations about the package droopler-project
Droopler template for new project
About
Droopler is a Drupal 10 profile designed to kickstart a new webpage in a few minutes. It's based on the latest frontend technologies, including Bootstrap 5. The maintainer of Droopler is Droptica.
- Official website: droptica.com/droopler
- Tutorials: droptica.com/droopler/tutorials
- Demo: droopler-demo.droptica.com
- Profile repository: github.com/droptica/droopler
- Drupal.org project: drupal.org/project/droopler
- Issue queue: drupal.org/project/issues/droopler
For the latest news, follow us on Facebook and Twitter.
What is this Droopler template?
It's a skeleton, a boilerplate for new projects based on Droopler. If you wish to use Droopler - fork (or download) this repository. It contains a minimal set of code to start your new site. Threat it the same way as drupal/recommended-project or drupal-composer/drupal-project.
This repository includes:
- composer.json with all dependencies required to run Droopler.
- .gitignore adjusted to use GIT with Drupal.
- Boilerplate subtheme with minimal required CSS/SCSS and Javascript. It contains gulpfile.js to speed up development of Drupal's frontend.
Deploy on Platform.sh
You can deploy and host your Droopler installation on Platform.sh.
Quick start
Fork this repository and clone the newly created to your local machine.
Local development
This section provides instructions for running the Droopler
distribution locally.
Using custom development environment
- Run
composer create-project droptica/droopler-project:^4.0-alpha <path>
to install the project and its dependencies. -
Run npm to download the theme dependencies and compile assets.
Droopler uses the npm stack to speed up the development of new sites. It compiles SCSS to CSS, allows Autoprefixer to handle browser compatibility, and minimizes all JavaScript files. Install Node v18 and npm on your computer and run the following commands in the root directory of your project: - Run Drupal installation.
Go to http://yourserver.local/install.php and follow the steps of configuration.
Using DDEV
- Install ddev.
- Run
ddev config
to configure the project. - Run
ddev start
to start the project. - Run
ddev composer install
to download the project dependencies. - If you notice problems with accessing to the repository, run
ddev auth ssh
to add the keys from your~/.ssh
directory to the web container and runddev composer install
command once again. - Run
ddev theme
to install the theme dependencies and compile assets. By default, production assets are compiled. You can runddev theme dev
to compile assets for development. You can also runddev theme watch
to watch for changes in SCSS and JS and process them on the fly. - Go to the URL provided by ddev and finish installing the website. You can also run
ddev build-profile
to build the Droopler profile from the CLI (you will get a fully featured version, with blog, products and demo content).
Using Lando
- Install lando.
- Run
lando start
to start the project. - Run
lando prepare
to build the project's code. Alternatively, you can runlando composer install
to download the project dependencies, and thenlando theme-production
andlando subtheme-production
to compile assets. - Go to the URL provided by
lando info
and finish installing the website. You can also build the Droopler profile from the CLI. Runlando build-full-profile
for the fully-featured version, orlando build-full-profile
for the minimal one.
Using DDEV connected to a database instance on an active Platform.sh environment
This is instructions for running the template locally, connected to a live database instance on an active Platform.sh environment.
In all cases for developing with Platform.sh, it's important to develop on an isolated environment - do not connect to data on your production environment when developing locally. Each of the options below assume that you have already deployed this template to Platform.sh, as well as the following starting commands:
DDEV provides an integration with Platform.sh that makes it simple to develop Drupal locally. Check the providers documentation for the most up-to-date information.
In general, the steps are as follows:
- Install ddev.
- A configuration file has already been provided at
.ddev/providers/platform.yaml
, so you should not need to runddev config
. - Retrieve an API token for your organization via the management console.
-
Update your ddev global configuration file to use the token you've just retrieved:
- Run
ddev restart
. - Get your project ID with
platform project:info
. If you have not already connected your local repo with the project (as is the case with a source integration, by default), you can runplatform project:list
to locate the project ID, andplatform project:set-remote PROJECT_ID
to configure Platform.sh locally. -
Update the
.ddev/providers/platform.yaml
file for your current setup: - Get the current environment's data with
ddev pull platform
. - When you have finished with your work, run
ddev stop
andddev poweroff
.
Note:
For many of the steps above, you may need to include the CLI flags
-p PROJECT_ID
and-e ENVIRONMENT_ID
if you are not in the project directory or if the environment is associated with an existing pull request.
How to work with the subtheme?
Using DDEV
There are several comands that help you to work with the subtheme. You can run them from the root directory of your project.
ddev theme watch
- watches for changes in SCSS and JS and processes them on the flyddev theme dev
- cleans derivative files and compiles all SCSS/JS in the subtheme for DEV environmentddev theme production
- cleans derivative files and compiles all SCSS/JS in the subtheme for PROD environment
Using lando
There are several comands that help you to work with the subtheme. You can run them from the root directory of your project.
lando theme-watch
orlando subtheme-watch
- watches for changes in SCSS and JS and processes them on the flylando theme-dev
orlando subtheme-dev
- cleans derivative files and compiles all SCSS/JS in the theme for DEV environmentlando theme-production
orlando subtheme-production
- cleans derivative files and compiles all SCSS/JS in the theme for PROD environment
Running npm on your own
First run npm run watch in your subtheme's directory. It will track all the changes in theme source files and compile assets in the fly.
There are also other npm commands for theme developers, here's the full reference:
npm run watch
- watches for changes in SCSS and JS and processes them on the flynpm run dev
- cleans derivative files and compiles all SCSS/JS in the subtheme for DEV environmentnpm run production
- cleans derivative files and compiles all SCSS/JS in the subtheme for PROD environmentnpm run stylint
- run stylintnpm run stylint-fix
- run stylint and fix errors automatically
SCSS structure
- src/scss/main.style.scss - combines all SCSS code from base theme and subtheme
- src/components - directory where you can keep all your components, see components/README.md
You can use any SCSS structure you like. We recommend dividing files into layout/ and components/ directories. Just remember to include your files in main.style.scss.
SCSS Configuration
Droopler is designed to make your work easier. You don't have to override SCSS or CSS code to make your own adjustments. In most cases it is enough to modify the configuration.
Just look into variables definitions in the subtheme.
Use src/scss/bootstrap/_variables.scss file to overwrite base bootstrap variables.
Use src/scss/base/_themes.scss file to overwrite project specific colors in each theme.
Use src/scss/base/_variables.scss file to overwrite components/paragraphs variables.
When you save this config file, npm run dev will recompile all SCSS with your own config.
Extending and overwriting components
Instead of overwriting the particular component through the CSS variables in the
_variables.scss
file, you can extend or overwrite it in thesrc/components
directory.See: components/README.md
Updating Droopler
See the UPDATE.md file from the Droopler profile.
How to install Google Fonts?
By default Droopler uses free Inter webfont. If you wish to install your own fonts from Google - put their definitions into droopler_subtheme.libraries.yml like this:
How to install icon fonts?
If you wish to install FontAwesome or Glyphicons from the CDN - just grab their URLs and follow the steps described in previous chapter about Google Fonts. You'll find a FontAwesome example in droopler_subtheme.libraries.yml and droopler_subtheme.info.yml.
Setup git hooks
In the .githooks
directory you can find the pre-commit hooks to run the quality tools and to make sure that the front-end has been compiled in the production
mode.
To set-up git hooks run:
For the first time or when you get no permission error add +x
to those scripts.
All versions of droopler-project with dependencies
droptica/droopler Version 4.0.0-alpha3
drupal/better_exposed_filters Version ^6.0
drupal/core-composer-scaffold Version ^10.0
drupal/core-recommended Version ^10.0
drupal/facets Version ^2.0
drupal/redis Version ^1.7
drupal/search_api Version ^1.29
drupal/tvi Version 2.0.x-dev@dev
drush/drush Version ^12
oomphinc/composer-installers-extender Version ^2.0
platformsh/config-reader Version ^2.4