Skip to content

Commit

Permalink
Merge pull request #84 from mbland/use-rollup-plugin-handlebars-preco…
Browse files Browse the repository at this point in the history
…mpiler-npm

Use rollup-plugin-handlebars-precompiler npm
  • Loading branch information
mbland authored Jan 11, 2024
2 parents b0f1709 + 5cbb490 commit 218d2f7
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 193 deletions.
1 change: 1 addition & 0 deletions strcalc/src/main/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"handlebars": "^4.7.8",
"jsdoc-cli-wrapper": "^1.0.4",
"jsdom": "^23.1.0",
"rollup-plugin-handlebars-precompiler": "^1.0.0",
"test-page-opener": "^1.0.3",
"vite": "^5.0.11",
"vitest": "^1.1.3",
Expand Down

This file was deleted.

13 changes: 13 additions & 0 deletions strcalc/src/main/frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 3 additions & 8 deletions strcalc/src/main/frontend/vite.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import handlebarsPrecompiler from
'./plugins/rollup-plugin-handlebars-precompiler.js'
import HandlebarsPrecompiler from 'rollup-plugin-handlebars-precompiler'
import { defineConfig } from 'vite'
import { configDefaults } from 'vitest/config'
import fs from 'node:fs'
import os from 'node:os'
import path from 'node:path/posix'
Expand Down Expand Up @@ -69,7 +67,7 @@ function getProviderOptions(){
export default defineConfig({
base: '/strcalc/',
plugins: [
handlebarsPrecompiler({ helpers: ['components/helpers.js'] })
HandlebarsPrecompiler({ helpers: ['components/helpers.js'] })
],
define: {
STRCALC_BACKEND: JSON.stringify(process.env.STRCALC_BACKEND)
Expand All @@ -84,10 +82,7 @@ export default defineConfig({
test: {
outputFile: buildDir('test-results/test-frontend/TESTS-TestSuites.xml'),
coverage: {
reportsDirectory: buildDir('reports/frontend/coverage'),
// Remove 'exclude:' once rollup-plugin-handlebars-precompile
// and bin/jsdoc-cli-wrapper.js move into their own repositories.
exclude: [ ...configDefaults.coverage.exclude, 'plugins/*', 'bin/*' ]
reportsDirectory: buildDir('reports/frontend/coverage')
},
server: {
deps: {
Expand Down

0 comments on commit 218d2f7

Please sign in to comment.