Skip to content
Commits on Source (3)
# https://editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
node_modules
dist
.eslintcache
image: node:18-alpine
stages:
- test
include:
- project: 'sre/ci-building-blocks'
file: 'nodejs.yml'
unit tests:
stage: test
extends:
- .unit tests
variables:
KUBERNETES_CPU_REQUEST: 2
KUBERNETES_CPU_LIMIT: 3
KUBERNETES_MEMORY_REQUEST: 2Gi
KUBERNETES_MEMORY_LIMIT: 2Gi
script:
- apk add git
- yarn
- yarn test --ci --coverage
coverage: /^Lines\s*:\s\d+.\d+\%/
artifacts:
reports:
junit: output/junit.xml
coverage_report:
coverage_format: cobertura
path: output/coverage/cobertura-coverage.xml
needs: []
tags:
- kubernetes
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
npx lint-staged
.husky
.gitlab
.gitlab-ci.yml
test
.eslint*
.editorconfig
......@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
## [Unreleased]
## [0.5.4] - 2023-03-17
### Removed
- Test files from npm package [`9d76062`](https://gitlab.open-xchange.com/frontend/vite-plugin-ox-manifests/commit/9d760623362bcbbb7e52fd551a0693cc43c61ed5)
## [0.5.3] - 2023-03-17
### Added
......@@ -15,5 +22,6 @@ All notable changes to this project will be documented in this file.
- Start Changelog
[unreleased]: https://gitlab.open-xchange.com/frontend/vite-plugin-ox-manifests/compare/0.5.3...main
[unreleased]: https://gitlab.open-xchange.com/frontend/vite-plugin-ox-manifests/compare/0.5.4...main
[0.5.4]: https://gitlab.open-xchange.com/frontend/vite-plugin-ox-manifests/compare/0.5.3...0.5.4
[0.5.3]: https://gitlab.open-xchange.com/frontend/vite-plugin-ox-manifests/compare/0.5.2...0.5.3
{
"name": "@open-xchange/vite-plugin-ox-manifests",
"version": "0.5.3",
"version": "0.5.4",
"description": "A vite plugin to concat and serve ox manifests",
"main": "index.js",
"type": "module",
......
import { describe, it, expect } from '@jest/globals'
import { build } from 'vite'
import path from 'path'
import vitePluginOxManifests from '../../index'
import { getFileFromBundle } from '../util'
const __dirname = path.dirname(new URL(import.meta.url).pathname)
......