Skip to content

phase2/d8pltwig

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drupal 8 - Pattern Lab Node - Twig

This project will help guide the development of Pattern Lab Node + Twig and the Drupal 8 module available to make Drupal aware of these Twig files.

Requirements

  1. Update homebrew: brew update
  2. Ansible 2.0.0: brew install ansible
  3. Vagrant 1.8.1
  4. Vagrant Hosts Updater: vagrant plugin install vagrant-hostsupdater
  5. VirtualBox 5.0.14

Installation

Run all commands from root:

Clone repo:

git clone git@github.com:geerlingguy/drupal-vm.git

Setup:

cd drupal-vm
ln -s ../config.yml ./config.yml
sudo ansible-galaxy install -r provisioning/requirements.yml --force
vagrant up

Install other repo:

cd dev 
git clone git@github.com:phase2/patternlab_connector.git
cd ..

Setup:

mkdir -p dev/drupal/modules/custom
cd dev/drupal/modules/custom
ln -s ../../../patternlab_connector ./patternlab_connector
cd -

Install 3rd repo:

cd dev 
git clone git@github.com:phase2/patternlab-node.git

Troubleshooting

If you use P2 devtools, it is recommended that you work with Vagrant and Vagrant-based projects outside the /Users directory. The following commands should make /opt/vms to hold Vagrant files and /opt/project to move the d8pltwig folder to.

  1. Add the following to your .bashrc/.zshrc

      # Vagrant updates for docker-tools
      export VAGRANT_HOME=/opt/vms
    
  2. Immediately update your terminal:

        source ~/.bashrc
    

    or

        source ~/.zshrc
    
  3. Make the directories and set

      sudo mkdir /opt/projects
      sudo mkdir /opt/vms
      sudo chmod -R 0755 /opt/projects
      sudo chmod -R 0755 /opt/vms
      sudo chown -R $USER: /opt/projects
      sudo chown -R $USER: /opt/vms
    
  4. Move the entire d8pltwig project to /opt/projects/d8pltwig

  5. Destroy the Vagrant box and re-up it from within d8pltwig/drupal-vm:

     vagrant destroy && vagrant up
    

About

A project encompassing PL Twig + Drupal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published