Skip to content

Commit

Permalink
Merge branch 'release/1.2.13' into v1
Browse files Browse the repository at this point in the history
  • Loading branch information
khalwat committed Apr 14, 2021
2 parents 8e53cf1 + cb874ae commit 8bb90a5
Show file tree
Hide file tree
Showing 8 changed files with 1,074 additions and 1,188 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,12 @@
# Twigpack Changelog

## 1.2.13 - 2021.04.13
### Added
* Added buildchain for docs

### Fixed
* Fixed a malformed `User-Agent` header in a request to `mix-manifest.json` (https://github.com/nystudio107/craft-twigpack/issues/62)

## 1.2.12 - 2021.04.05
### Changed
* Catch all errors thrown by Guzzle
Expand Down
8 changes: 8 additions & 0 deletions Dockerfile
@@ -0,0 +1,8 @@
ARG TAG=14-alpine
FROM nystudio107/node-dev-base:$TAG

WORKDIR /app/buildchain/

CMD ["run build"]

ENTRYPOINT ["npm"]
29 changes: 29 additions & 0 deletions Makefile
@@ -0,0 +1,29 @@
TAG?=14-alpine
CONTAINER?=$(shell basename $(CURDIR))-buildchain
DOCKERRUN=docker container run \
--name ${CONTAINER} \
--rm \
-t \
-v `pwd`:/app \
${CONTAINER}:${TAG}
DOCSDEST?=../../sites/nystudio107/web/docs/similar

.PHONY: docker docs npm

docker:
docker build \
. \
-t ${CONTAINER}:${TAG} \
--build-arg TAG=${TAG} \
--no-cache
docs: docker
${DOCKERRUN} \
run docs
rm -rf ${DOCSDEST}
mv ./docs/docs/.vuepress/dist ${DOCSDEST}
npm: docker
${DOCKERRUN} \
$(filter-out $@,$(MAKECMDGOALS))
%:
@:
# ref: https://stackoverflow.com/questions/6273608/how-to-pass-argument-to-makefile-from-command-line
36 changes: 36 additions & 0 deletions buildchain/package.json
@@ -0,0 +1,36 @@
{
"author": {
"email": "andrew@nystudio107.com",
"name": "Andrew Welch",
"url": "https://nystudio107.com"
},
"browser": "./src/Twigpack.php",
"bugs": {
"email": "andrew@nystudio107.com",
"url": "https://nystudio107.com"
},
"dependencies": {
},
"description": "Twigpack is a bridge between Twig and webpack, with manifest.json & webpack-dev-server HMR support",
"devDependencies": {
},
"homepage": "https://nystudio107.com",
"keywords": [
"twigpack",
"craftcms",
"craft",
"cms",
"plugin"
],
"license": "SEE LICENSE IN LICENSE.md",
"name": "twigpack",
"private": true,
"repository": {
"type": "git",
"url": "git+https://github.com/nystudio107/craft-twigpack.git"
},
"scripts": {
"docs": "cd ../docs && rm -f package-lock.json && npm install && npm run docs:build"
},
"version": "1.2.13"
}
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -2,7 +2,7 @@
"name": "nystudio107/craft-twigpack",
"description": "Twigpack is a bridge between Twig and webpack, with manifest.json & webpack-dev-server HMR support",
"type": "craft-plugin",
"version": "1.2.12",
"version": "1.2.13",
"keywords": [
"craftcms",
"craft-plugin",
Expand Down
1 change: 0 additions & 1 deletion docs/docs/.vuepress/config.js
Expand Up @@ -2,7 +2,6 @@ module.exports = {
title: 'Twigpack Documentation',
description: 'Documentation for the Twigpack plugin',
base: '/docs/twigpack/',
dest: '../../../sites/nystudio107/web/docs/twigpack',
themeConfig: {
displayAllHeaders: true,
sidebar: [
Expand Down

0 comments on commit 8bb90a5

Please sign in to comment.