Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Commit

Permalink
Merge pull request #128 from fourkitchens/develop
Browse files Browse the repository at this point in the history
Deploy to master
  • Loading branch information
ModulesUnraveled committed Aug 18, 2017
2 parents 3cee10d + fccba92 commit 018510d
Show file tree
Hide file tree
Showing 8 changed files with 560 additions and 274 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
# Ignore compiled files.
dist
vendor

# Pattern Lab (ignored initially)
pattern-lab
**/bem.function.php

# Twig helper functions
**/add_attributes.function.php
**/bem.function.php

# NPM
node_modules
npm-debug.log
Expand Down
26 changes: 17 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,28 @@ Component-driven prototyping tool using [Pattern Lab v2](http://patternlab.io/)
3. [Composer](https://getcomposer.org/)
4. Optional: [Yarn](https://github.com/yarnpkg/yarn)

## Quickstart
## Quickstart (Emulsify Standalone)

1. `npm install` or `yarn install`
1. `composer create-project fourkitchens/emulsify --stability dev --no-interaction emulsify`
2. `cd emulsify`
3. `npm install` or `yarn install`

#### (Drupal-specific installation)
## Drupal-specific installation

1. Download and enable [Components](https://www.drupal.org/project/components) module
2. Download and enable this fork of the [Unified Twig Extensions](https://github.com/evanmwillhite/unified-twig-extensions/tree/develop) module
2. Enable Emulsify theme
### In a Composer-based Drupal install (recommended)

1. `composer require fourkitchens/emulsify`
2. `cd web/themes/contrib/emulsify/`
3. `npm install` or `yarn install`
4. Optional (but recommended): Create "child" theme `drush emulsify "Theme Name"` (run `drush help emulsify` for available options)
5. Enable the components and unified twig extensions modules `drush en -y components unified_twig_ext`
6. Enable the theme in Drupal

If you're not using a Composer-based Drupal install (e.g. tarball download from drupal.org) installation [instructions can be found on the Wiki](https://github.com/fourkitchens/emulsify/wiki/Installation).

## Starting Pattern Lab and watch task

Start up watches and local server after compiling (runs all gulp required tasks):
The `start` command spins up a local server, compiles everything (runs all required gulp tasks), and watches for changes.

1. `npm start` or `yarn start`

Expand All @@ -38,8 +47,7 @@ Component-driven prototyping tool using [Pattern Lab v2](http://patternlab.io/)
<tr><td>Stock Components </td><td><strong>✔</strong></td><td>with Drupal support built-in (https://github.com/fourkitchens/emulsify#emulsifys-built-in-components-with-drupal-support)</td></tr>
<tr><td>Performance Testing </td><td><strong>✔</strong></td><td>Support for testing via Google PageSpeed Insights and WebPageTest.org (https://github.com/fourkitchens/emulsify/wiki/Gulp-Config#performance-testing)</td></tr>
<tr><td>Automated Github Deployment </td><td><strong>✔</strong></td><td>Deploy your Pattern Lab instance as a Github page (https://github.com/fourkitchens/emulsify/wiki/Gulp-Config#deployment)</td></tr>
</tbody>
</table>
</tbody></table>

<h3 id="components">Emulsify's Built in Components with Drupal support</h3>
Forms, tables, video, accordion, cards, breadcrumbs, tabs, pager, status messages, grid
Expand Down
40 changes: 21 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,41 @@
"name": "fourkitchens/emulsify",
"description": "Project template for Drupal 8 themes",
"type": "drupal-theme",
"homepage": "http://emulsify.info",
"license": "MIT",
"authors": [
{
"name": "Evan Willhite",
"role": ""
},
{
"name": "Brian Lewis",
"role": ""
"email": "brian@fourkitchens.com"
},
{
"name": "Luke Herrington",
"role": ""
"name": "Chris Martin",
"email": "chris.martin@fourkitchens.com"
},
{
"name": "Ben Teegarden",
"role": ""
"name": "Evan Willhite",
"email": "evan@fourkitchens.com"
},
{
"name": "Randy Oest",
"role": ""
"email": "randy@fourkitchens.com"
}
],
"repositories": [],
"require": {},
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
},
"require": {
"drupal/components": "^1.0",
"drupal-pattern-lab/add-attributes-twig-extension": "^1.0",
"drupal-pattern-lab/bem-twig-extension": "^1.0",
"drupal-pattern-lab/unified-twig-extensions": "^0.1"
},
"require-dev": {},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"pre-install-cmd": [],
"pre-update-cmd": [],
"post-install-cmd": [],
"post-update-cmd": []
},
"extra": {}
"scripts": {},
"extra": []
}
Loading

0 comments on commit 018510d

Please sign in to comment.