1
1
mirror of https://github.com/jxnblk/mdx-deck.git synced 2024-09-11 06:35:24 +03:00

Add now config

This commit is contained in:
Brent Jackson 2019-03-10 21:44:13 -04:00
parent 79ef18f8a3
commit 97f2bb24da
3 changed files with 23 additions and 10 deletions

View File

@ -1,12 +1,3 @@
language: node_js
node_js:
- 10
before_deploy:
- yarn build
deploy:
provider: pages
skip_cleanup: true
github_token: $GH_TOKEN
local_dir: docs/dist
on:
branch: master

View File

@ -7,7 +7,8 @@
"license": "MIT",
"scripts": {
"start": "mdx-deck demo.mdx",
"build": "mdx-deck build demo.mdx"
"build": "mdx-deck build demo.mdx",
"now-build": "yarn build"
},
"dependencies": {
"@emotion/core": "^10.0.7",

21
now.json Normal file
View File

@ -0,0 +1,21 @@
{
"version": 2,
"public": true,
"name": "mdx-deck",
"alias": "mdx-deck.jxnblk.com",
"builds": [
{
"src": "docs/package.json",
"use": "@now/static-build",
"config": {
"distDir": "dist"
}
}
],
"routes": [
{
"src": "/(.*)",
"dest": "/docs/$1"
}
]
}