From d93a75b615b36fdf2275f10cf85b7812a06ec048 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 4 Jul 2022 18:51:24 +0200 Subject: WIP: Implementing search --- package.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index e874f11..1a8e24c 100644 --- a/package.json +++ b/package.json @@ -30,10 +30,11 @@ "lint": "npm run lint:js && npm run lint:editorconfig", "lint:editorconfig": "editorconfig-checker", "lint:js": "eslint static/js/*.js assets/js/*.js", - "vendor:js": "ncp node_modules/jquery/dist/jquery.min.js assets/js/vendor/jquery.min.js" + "vendor:js": "ncp node_modules/jquery/dist/jquery.min.js assets/js/vendor/jquery.min.js; ncp node_modules/lunr/lunr.min.js assets/js/vendor/lunr.min.js" }, "dependencies": { - "jquery": "^3.6.0" + "jquery": "^3.6.0", + "lunr": "^2.3.9" }, "devDependencies": { "editorconfig-checker": "^4.0.2", -- cgit v1.2.3 From fff90c86733e20d7b9a35aad616ab65fe11f6ff8 Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 4 Jul 2022 19:32:24 +0200 Subject: Run npm install before build --- package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 1a8e24c..f8e2506 100644 --- a/package.json +++ b/package.json @@ -21,11 +21,11 @@ "main": "index.js", "scripts": { "clean": "rimraf public", - "build": "hugo --source=exampleSite --gc --verbose --destination ../public", - "build:prod": "hugo --source=exampleSite --destination ../public", - "build:split1": "hugo --source=exampleSite --enableGitInfo --destination ../public", - "build:preview": "HUGO_PREVIEW=true hugo --source=exampleSite --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL --destination ../public", - "build:branch": "hugo --source=exampleSite --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL --destination ../public", + "build": "npm install && hugo --source=exampleSite --gc --verbose --destination ../public", + "build:prod": "npm install && hugo --source=exampleSite --destination ../public", + "build:split1": "npm install && hugo --source=exampleSite --enableGitInfo --destination ../public", + "build:preview": "npm install && HUGO_PREVIEW=true hugo --source=exampleSite --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL --destination ../public", + "build:branch": "npm install && hugo --source=exampleSite --buildDrafts --buildFuture --baseURL $DEPLOY_PRIME_URL --destination ../public", "server": "HUGO_PREVIEW=true HUGO_ENV=development hugo server --verbose --source=exampleSite --buildDrafts --buildFuture --ignoreCache --disableFastRender", "lint": "npm run lint:js && npm run lint:editorconfig", "lint:editorconfig": "editorconfig-checker", -- cgit v1.2.3 From 6147926629ab0b0ceac9797ee780643c3592deed Mon Sep 17 00:00:00 2001 From: Serghei Iakovlev Date: Mon, 4 Jul 2022 20:46:01 +0200 Subject: Use hugo modules to bundle assets --- package.json | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index f8e2506..56e8b2e 100644 --- a/package.json +++ b/package.json @@ -29,13 +29,9 @@ "server": "HUGO_PREVIEW=true HUGO_ENV=development hugo server --verbose --source=exampleSite --buildDrafts --buildFuture --ignoreCache --disableFastRender", "lint": "npm run lint:js && npm run lint:editorconfig", "lint:editorconfig": "editorconfig-checker", - "lint:js": "eslint static/js/*.js assets/js/*.js", - "vendor:js": "ncp node_modules/jquery/dist/jquery.min.js assets/js/vendor/jquery.min.js; ncp node_modules/lunr/lunr.min.js assets/js/vendor/lunr.min.js" - }, - "dependencies": { - "jquery": "^3.6.0", - "lunr": "^2.3.9" + "lint:js": "eslint static/js/*.js assets/js/*.js" }, + "dependencies": {}, "devDependencies": { "editorconfig-checker": "^4.0.2", "eslint": "^8.19.0", -- cgit v1.2.3