chore: add tests, gh actions and prettier config

This commit is contained in:
2025-09-30 17:50:49 -04:00
parent 4e7820e4d4
commit d2b5cdc016
16 changed files with 1844 additions and 13 deletions
+29 -5
View File
@@ -11,8 +11,24 @@
],
"author": "Didericis",
"license": "Apache-2.0",
"dependencies": {
"@babel/core": "^7.28.4"
"scripts": {
"test": "npm run lint && npm run test:build-project && npm run test:build-bundles && bare test/bare.js",
"test:build-project": "cd test/project && npm install",
"test:build-bundles": "mkdir -p test/bundles && npm run test:build-default-bundle && npm run test:build-plugin-bundle",
"test:build-default-bundle": "cd test/project && bare-pack app.js -o ../bundles/default.bundle",
"test:build-plugin-bundle": "cd test/project && bare-pack app.js | bare-bundle-transform --plugin ../../index.js -o ../bundles/plugin.bundle",
"lint": "prettier . --check"
},
"prettier": "prettier-config-standard",
"imports": {
"child_process": {
"bare": "bare-subprocess",
"default": "node:child_process"
},
"path": {
"bare": "bare-path",
"default": "node:path"
}
},
"release": {
"plugins": [
@@ -34,14 +50,22 @@
]
},
"branches": [
"master"
"main"
],
"devDependencies": {
"semantic-release": "^24.2.9",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/git": "^10.0.1",
"@semantic-release/npm": "^12.0.2",
"@semantic-release/release-notes-generator": "^14.1.0"
"@semantic-release/release-notes-generator": "^14.1.0",
"bare-bundle-transform": "^0.2.2",
"bare-pack": "^1.4.6",
"brittle": "^3.19.0",
"prettier": "^3.6.2",
"prettier-config-standard": "^7.0.0",
"semantic-release": "^24.2.9"
},
"dependencies": {
"@babel/core": "^7.28.4"
}
}