🛠 Added .travis.yml and gscan tests (#470)

- Add gscan dependency & travis.yml file, so that we can run gscan as a test for this repo
- This check tells us whether or not the theme is valid & compatible with Ghost according to gscan
- We recommend that all themes do this!
This commit is contained in:
Hannah Wolfe 2018-08-14 22:10:01 +01:00 committed by GitHub
parent 0ea375643b
commit 9d803067a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 768 additions and 41 deletions

6
.travis.yml Normal file
View file

@ -0,0 +1,6 @@
language: node_js
sudo: false
node_js:
- "8"

View file

@ -12,8 +12,9 @@
"mobile": "assets/screenshot-mobile.jpg" "mobile": "assets/screenshot-mobile.jpg"
}, },
"scripts": { "scripts": {
"dev": "gulp", "dev": "gulp",
"zip": "gulp zip" "zip": "gulp zip",
"test": "gscan ."
}, },
"author": { "author": {
"name": "Ghost Foundation", "name": "Ghost Foundation",
@ -41,6 +42,7 @@
"devDependencies": { "devDependencies": {
"autoprefixer": "6.3.6", "autoprefixer": "6.3.6",
"cssnano": "3.7.1", "cssnano": "3.7.1",
"gscan": "^2.0.0",
"gulp": "3.9.1", "gulp": "3.9.1",
"gulp-livereload": "3.8.1", "gulp-livereload": "3.8.1",
"gulp-postcss": "6.1.1", "gulp-postcss": "6.1.1",

797
yarn.lock

File diff suppressed because it is too large Load diff