Skip to content

Commit

Permalink
Adding Travis and other details
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanLovely committed Jul 3, 2018
1 parent c48b101 commit c3f9083
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 3 deletions.
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
language: php
php:
- 7.1

before_install:
- nvm install

install:
- npm run setup

script:
- npm run test

cache:
directories:
- $HOME/.composer/cache/files

notifications:
email:
on_success: never
on_failure: never
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
"test": "npm run lint && npm run jest",
"precommit": "npm run lint:fix",
"prepush": "npm test",
"prepublish": "composer install"
"prepublish": "composer install",
"setup": "composer install"
},
"dependencies": {
"execa": "^0.10.0",
Expand All @@ -33,14 +34,24 @@
"src",
"vendor"
],
"commentOnFiles": "we are explicitely including 'vendor' in the 'files' array above so it is present on install without the need to run 'composer install'. ",
"repository": {
"type": "git",
"url": "git+https://github.com/basaltinc/twig-renderer.git"
},
"keywords": [
"twig"
],
"author": "Basalt",
"maintainers": [
{
"name": "Evan Lovely",
"url": "http://evanlovely.com"
},
{
"name": "Salem Ghoweri",
"url": "https://twitter.com/salem_ghoweri"
}
],
"license": "MIT",
"bugs": {
"url": "https://github.com/basaltinc/twig-renderer/issues"
Expand Down
6 changes: 5 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Twig Renderer

> Render templates using Twig PHP, via this Node JS renderer.
*Special thanks to [Salem Ghoweri](https://twitter.com/salem_ghoweri) for collaboration on this project!*

# How to Use

**Currently in early beta - highly undocumented; use at your own risk. API will change often.**
Expand All @@ -15,5 +19,5 @@ npm install --save @basalt/twig-renderer

```bash
npm install
composer install
npm run setup
```

0 comments on commit c3f9083

Please sign in to comment.