Skip to content

Commit f915219

Browse files
committed
Adding netlify-cli to make local dev environment better match target
removing yarn adding package lock adding node version to netlify.toml Signed-off-by: Nate W <[email protected]>
1 parent f66574a commit f915219

File tree

5 files changed

+14
-1093
lines changed

5 files changed

+14
-1093
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ node_modules/
1111

1212
# htmltest
1313
tmp/
14+
15+
# Local Netlify folder
16+
.netlify

Makefile

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
yarn:
2-
yarn
1+
npm-install:
2+
npm install
33

4-
serve: yarn
5-
hugo server \
6-
--buildDrafts \
7-
--buildFuture \
8-
--disableFastRender
4+
serve: npm-install
5+
npm run serve
96

107
production-build:
118
hugo \

netlify.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ publish = "public"
33
command = "make production-build"
44

55
[build.environment]
6+
NODE_VERSION = "18.16.0"
67
HUGO_VERSION = "0.115.1"
78

89
[context.deploy-preview]

package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"scripts": {
3+
"serve": "netlify dev -c \"hugo serve --minify -DFE -w\""
4+
},
25
"dependencies": {
36
"@fullhuman/postcss-purgecss": "^2.1.0",
47
"autoprefixer": "^9.7.5",
@@ -7,5 +10,8 @@
710
"postcss-import": "^12.0.1",
811
"postcss-reporter": "^6.0.1",
912
"tailwindcss": "^1.2.0"
13+
},
14+
"devDependencies": {
15+
"netlify-cli": "^15.8.1"
1016
}
1117
}

0 commit comments

Comments
 (0)