Skip to content

Commit 20582b3

Browse files
author
Andrew Welch
committed
Updated build config
1 parent d89405b commit 20582b3

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

Makefile

Lines changed: 33 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,50 @@
11
TAG?=12-alpine
2+
CONTAINER?=transcoder-buildchain
3+
DEST?=../../sites/nystudio107/web/docs/transcoder
24

5+
.PHONY: dist docker docs install npm
6+
7+
dist: docker docs install
8+
docker container run \
9+
--name ${CONTAINER} \
10+
--rm \
11+
-t \
12+
-v `pwd`:/app \
13+
nystudio107/${CONTAINER}:${TAG} \
14+
run build
315
docker:
416
docker build \
517
. \
6-
-t nystudio107/transcoder-buildchain:${TAG} \
18+
-t nystudio107/${CONTAINER}:${TAG} \
719
--build-arg TAG=${TAG} \
820
--no-cache
21+
docs:
22+
docker container run \
23+
--name ${CONTAINER} \
24+
--rm \
25+
-t \
26+
-v `pwd`:/app \
27+
nystudio107/${CONTAINER}:${TAG} \
28+
run docs
29+
rm -rf ${DEST}
30+
mv ./docs/docs/.vuepress/dist ${DEST}
31+
install:
32+
docker container run \
33+
--name ${CONTAINER} \
34+
--rm \
35+
-t \
36+
-v `pwd`:/app \
37+
nystudio107/${CONTAINER}:${TAG} \
38+
install
939
npm:
1040
docker container run \
11-
--name transcoder-buildchain \
41+
--name ${CONTAINER} \
1242
--network plugindev_default \
1343
--rm \
1444
-t \
1545
-p 8080:8080 \
1646
-v `pwd`:/app \
17-
nystudio107/transcoder-buildchain:${TAG} \
47+
nystudio107/${CONTAINER}:${TAG} \
1848
$(filter-out $@,$(MAKECMDGOALS))
1949
%:
2050
@:

buildchain/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@
130130
"check-types": "tsc",
131131
"debug": "nodemon -L",
132132
"dev": "nodemon -L",
133+
"docs": "cd ../docs && rm -f package-lock.json && npm install && npm run docs:build",
133134
"lint": "tsc --noEmit && eslint '../../src/**/*.{js,ts,vue}' --fix"
134135
},
135136
"version": "1.0.0"

docs/docs/.vuepress/config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ module.exports = {
22
title: 'Transcoder Documentation',
33
description: 'Documentation for the Transcoder plugin',
44
base: '/docs/transcoder/',
5-
dest: '../../../sites/nystudio107/web/docs/transcoder',
65
themeConfig: {
76
displayAllHeaders: true,
87
sidebar: [

0 commit comments

Comments
 (0)