-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from namics/feat/update-twig-2
Update to Twig 2
- Loading branch information
Showing
26 changed files
with
1,698 additions
and
712 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Drupal editor configuration normalization | ||
# @see http://editorconfig.org/ | ||
|
||
# This is the top-most .editorconfig file; do not search in parent directories. | ||
root = true | ||
|
||
# All files. | ||
[*] | ||
end_of_line = LF | ||
indent_style = space | ||
indent_size = 2 | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[composer.{json,lock}] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Twig Nitro Library | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
php_version: ['7.3', '7.4'] | ||
|
||
steps: | ||
- name: Setup PHP ${{ matrix.php_version }} | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php_version }} | ||
tools: composer | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Install dependencies | ||
run: composer install --prefer-dist --dev --no-progress --no-suggest | ||
|
||
- name: Run tests | ||
run: vendor/bin/phpunit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,60 @@ | ||
.idea | ||
# OSX system files | ||
.DS_Store | ||
.DS_Store? | ||
._* | ||
.Spotlight-V100 | ||
.Trashes | ||
ehthumbs.db | ||
Thumbs.db | ||
|
||
# Git | ||
*.git | ||
|
||
# Packages | ||
*.7z | ||
*.dmg | ||
*.gz | ||
*.iso | ||
*.jar | ||
*.rar | ||
*.tar | ||
*.zip | ||
|
||
# Logs and databases | ||
*.log | ||
*.sql | ||
*.sqlite | ||
|
||
# Temporary | ||
tmp | ||
.grunt | ||
|
||
# PHPStorm | ||
.idea/ | ||
.idea/* | ||
|
||
# NPM | ||
node_modules/ | ||
|
||
# SASS # | ||
######## | ||
.sass-cache/ | ||
*.css.map | ||
|
||
# Composer | ||
composer.phar | ||
composer.lock | ||
vendor/ | ||
|
||
|
||
# PHPUnit Tests | ||
.phpunit.result.cache | ||
|
||
# Drush | ||
drush.phar | ||
|
||
# Certificates | ||
*.pem | ||
*.crt | ||
*.cert | ||
*.key |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,24 +2,43 @@ | |
"name": "namics/twig-nitro-library", | ||
"description": "Extension to embrace the Terrific frontend methodology in Twig. Currently it adds a custom component tag to Twig which mimics Nitro's handlebars helper.", | ||
"type": "library", | ||
"keywords": ["terrific", "nitro", "twig", "integration", "namics"], | ||
"keywords": [ | ||
"terrific", | ||
"nitro", | ||
"twig", | ||
"integration", | ||
"namics" | ||
], | ||
"homepage": "https://github.com/namics/twig-nitro-library", | ||
"license": "MIT", | ||
"authors": [ | ||
{ | ||
"name": "Robert Vogt", | ||
"email": "[email protected]", | ||
"homepage": "https://github.com/deniaz" | ||
}, | ||
{ | ||
"name": "Namics", | ||
"email": "[email protected]", | ||
"homepage": "https://github.com/namics" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"Deniaz\\Terrific\\": "src/", | ||
"Deniaz\\Test\\Terrific\\": "test/" | ||
"Namics\\Terrific\\": "src/", | ||
"Namics\\Test\\Terrific\\": "test/" | ||
} | ||
}, | ||
"require": { | ||
"php": ">=5.4", | ||
"twig/twig": "~1.24" | ||
"php": ">=7.3", | ||
"twig/twig": "^2.13" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "^6.0" | ||
}, | ||
"scripts": { | ||
"tests": [ | ||
"vendor/bin/phpunit" | ||
] | ||
} | ||
} |
Oops, something went wrong.