Coder Social home page Coder Social logo

arknoll / df Goto Github PK

View Code? Open in Web Editor NEW

This project forked from acquia/df

0.0 2.0 0.0 39.95 MB

Mirror of https://git.drupal.org/project/df.git --

Home Page: https://www.drupal.org/project/df

Makefile 1.47% Shell 0.12% PHP 11.37% CSS 75.23% JavaScript 2.59% HTML 6.97% Gherkin 2.25%

df's Introduction

Demo Framework (DF)

Travis build status Scrutinizer code quality

Demo Framework is a distribution consisting of modules, themes and libraries. It highlights powerful features created by the Drupal community. It is intended to be used as a starterkit for promoting enterprise-ready solutions.

Demo Framework is powered by Lightning.

Installing Demo Framework

The preferred way to install Demo Framework is using our Composer-based project template. It's easy!

If you don't want to use Composer, you can install Demo Framework the traditional way by downloading a tarball from our drupal.org project page.

Before installing Demo Framework via drupal.org or after building it from scratch using Drush Make, you must download a small number of PHP libraries that cannot currently be packaged automatically due to limitations with both drupal.org and Drush.

composer require "commerceguys/intl: ~0.7" "commerceguys/addressing: ~1.0" "commerceguys/zone: ~1.0" "embed/embed: ~2.2"

A build script is also provided that wraps the composer install command and moves everything into a target directory as well.

./build.sh ~/Destination

You can add in commands for composer here. We suggest using the --no-dev option unless you want to run behat and have DF manage your version of Drush used on the site.

./build.sh ~/Destination --no-dev

At this point, you will need to prepare your settings.php file just as you would for a normal Drupal install.

We recommend Acquia Dev Desktop running PHP 5_6 and using the Import local Drupal site... function.

Now use the site-install command to install Drupal with the DF installation profile.

drush si df

Enable a DF Scenario using the enable-scenario command.

drush es dfs_tec

If everything worked correctly, you should see console output that some migrations ran.

You may now login to your site.

drush uli -l http://mysite.dd

You may also reset the content of a DF Scenario if it is enabled.

drush rs dfs_tec

Using the Zurb Foundation Sub Theme

To motify the CSS/JS you must use the scss files. You will find various different SCSS files in SCSS directory that root. There are specifc ones for the theme in base & layout. All the variables are set in _settings.scss, you will also be able to override variables there.

To compile scss you will need a few things installed on your machine:

Then you will need to run:

  • npm install
  • bower install

if you need to update the vendor js, I added in some gulp files that make that easy.

  • gulp copy will copy the bower_component files for zurb and motion ui
  • gulp concat will concatenate all the files into a single vendor.all.js file and put it in your js/ folder where its already being called by drupal

Once that is installed, start the gulp file which will watch for scss changes:

  • npm start

Running Tests

These instructions assume you have used Composer to install Demo Framework.

Behat

Demo Framework includes a copy of Behat, Mink and the Drupal Extension to Behat and Mink in the /bin folder located outside of the docroot. Alternatively, you may globally install and use the Drupal Extension.

Selenium is required to run the JavaScript tests. You can download Selenium from http://www.seleniumhq.org and run it with:

java -jar selenium.jar

Note that you may require a newer version of Java which can be downloaded from http://www.oracle.com/technetwork/java/javase/downloads/index.html.

The default browser for our tests is Google Chrome. You will need to add the Chromedriver to your path to run tests. Download the latest Chromedriver for your OS then unpack the archive and move the chromedriver file to /usr/local/bin/chromedriver. If you are not using OSX, see Google's Getting started docs for installing the WebDriver for Chrome.

Before running any tests you must edit the behat.local.yml file, located within DRUPAL_ROOT/profiles/df, replacing "base_url" with the URL to your site.

In order to run the tests, you must be in the DRUPAL_ROOT/profiles/df directory.

cd DRUPAL_ROOT/profiles/df

Check that behat is installed and running.

behat --help

Execute a batch of tagged features that apply to all DF Scenarios.

behat --tags=df

Execute a batch of tagged features for a specific DF Scenario.

behat --tags=dfs_dev

If you're using the copy of Behat included with DF, then substitute "behat" in the above examples with:

/path/to/MYPROJECT/bin/behat

Resources

Please file issues in our drupal.org issue queue.

df's People

Contributors

brantwynn avatar briancwald avatar devincarlson avatar typhonius avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.