Skip to content

Commit 0b733d3

Browse files
authored
Buildpack compatibility / Auto devops (#4)
chore: minor changes to allow for buildpack usage/auto devops * listen on all interfaces so it runs well in docker * listen on port 5000, helm default * specify node engine version in package.json * add standardized test script in package.json
1 parent 3ddab8b commit 0b733d3

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## 0.1.2 (2021-01-31)
7+
8+
### Auto Devops / buildpack compatibility
9+
* specify node engine version in package.json
10+
* switch to 5000 as default port
11+
* provide default test command
12+
13+
614
## 0.1.1 (2020-12-18)
715

816
### Fixed

lib/template/frameworks/nuxt/nuxt.config.ejs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,14 @@ const config: Configuration = {
99
...env,
1010
appName: '<%= name %>',
1111
branchName: env.BRANCH_NAME || '',
12-
},<% if (mode === 'spa') { %>
12+
},
13+
14+
server: {
15+
host: '0',
16+
port: 5000,
17+
},
18+
19+
<% if (mode === 'spa') { %>
1320
1421
// Disable server-side rendering: https://go.nuxtjs.dev/ssr-mode
1522
ssr: false,<% } %><% if (target === 'static') { %>

lib/template/frameworks/nuxt/package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
"version": "1.0.0",
44
"description": "A borek.digital client app based on Nuxt",
55
"private": true,
6+
"engines": {
7+
"node": "14.x"
8+
},
69
"scripts": {
710
"reset": "rm -rf ./node_modules ./.nuxt ./dist ./coverage",
811
"upgrade": "yarn reset && rm -rf ./yarn.lock && yarn",
@@ -12,7 +15,8 @@
1215
"start": "nuxt-ts start",
1316
"lint": "eslint --ext .ts,.js,.vue .",
1417
"lint:fix": "yarn lint --fix",
15-
"test:unit": "jest"
18+
"test:unit": "jest",
19+
"test": "jest"
1620
},
1721
"dependencies": {
1822
"@nuxt/typescript-runtime": "^2.0.0",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@borek-digital/create-client-app",
3-
"version": "0.1.1",
3+
"version": "0.1.2",
44
"description": "Create a borek.digital client app via cli in no time",
55
"bin": "lib/cli.js",
66
"files": [

0 commit comments

Comments
 (0)