Skip to content

Commit

Permalink
Merge pull request #1 from mbland/version-bumps-jsdoc-config-initial-…
Browse files Browse the repository at this point in the history
…test

Bump versions, add dependencies and JSDoc config, add first test
  • Loading branch information
mbland committed Jan 6, 2024
2 parents ad044d0 + 3bcf94e commit bdb53c6
Show file tree
Hide file tree
Showing 7 changed files with 278 additions and 127 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
_**Status**: I've still got a bit of work to do before publishing v1.0.0. I need
to add tests based on the mbland/tomcat-servlet-testing-example project from
whence this came, add more documentation, and refactor. I plan to finish this by
2024-01-05._
2024-01-06._

Source: <https://github.com/mbland/rollup-plugin-handlebars-precompiler>

Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import { createFilter } from '@rollup/pluginutils'
import Handlebars from 'handlebars'

const PLUGIN_NAME = 'handlebars-precompiler'
export const PLUGIN_NAME = 'handlebars-precompiler'
const DEFAULT_INCLUDE = ['**/*.hbs', '**/*.handlebars', '**/*.mustache']
const DEFAULT_EXCLUDE = 'node_modules/**'
const DEFAULT_PARTIALS = '**/_*'
Expand All @@ -57,7 +57,7 @@ const DEFAULT_PARTIAL_PATH = (partialName, importerPath) => {
return `./_${partialName}.${importerPath.replace(/.*\./, '')}`
}

const PLUGIN_ID = `\0${PLUGIN_NAME}`
export const PLUGIN_ID = `\0${PLUGIN_NAME}`
const HANDLEBARS_PATH = 'handlebars/lib/handlebars.runtime'
const IMPORT_HANDLEBARS = `import Handlebars from '${HANDLEBARS_PATH}'`
const IMPORT_HELPERS = `import Render from '${PLUGIN_ID}'`
Expand Down
14 changes: 14 additions & 0 deletions jsdoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"plugins": [ "plugins/markdown" ],
"recurseDepth": 10,
"source": {
"includePattern": ".+\\.js$",
"exclude": ["node_modules"]
},
"opts": {
"destination": "jsdoc",
"recurse": true,
"readme": "README.md",
"package": "package.json"
}
}
22 changes: 14 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
"test:ci": "eslint --color --max-warnings 0 . && vitest run -c ci/vitest.config.js",
"jsdoc": "jsdoc-cli-wrapper -c jsdoc.json ."
},
"files": [ "index.js" ],
"files": [
"index.js"
],
"keywords": [
"rollup",
"handlebars",
Expand All @@ -25,14 +27,18 @@
"repository": "https://github.com/mbland/rollup-plugin-handlebars-precompiler",
"bugs": "https://github.com/mbland/rollup-plugin-handlebars-precompiler/issues",
"devDependencies": {
"@stylistic/eslint-plugin-js": "^1.5.1",
"@vitest/coverage-istanbul": "^1.1.0",
"@vitest/coverage-v8": "^1.1.0",
"@vitest/ui": "^1.1.0",
"@stylistic/eslint-plugin-js": "^1.5.3",
"@vitest/coverage-istanbul": "^1.1.3",
"@vitest/coverage-v8": "^1.1.3",
"@vitest/ui": "^1.1.3",
"eslint": "^8.56.0",
"eslint-plugin-jsdoc": "^46.9.1",
"eslint-plugin-jsdoc": "^46.10.1",
"eslint-plugin-vitest": "^0.3.20",
"jsdoc-cli-wrapper": "^1.0.3",
"vitest": "^1.1.0"
"jsdoc-cli-wrapper": "^1.0.4",
"vitest": "^1.1.3"
},
"dependencies": {
"@rollup/pluginutils": "^5.1.0",
"handlebars": "^4.7.8"
}
}
Loading

0 comments on commit bdb53c6

Please sign in to comment.