@maxdrellin/xenocline 0.0.5 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/xenocline.cjs +0 -0
- package/package.json +19 -19
- package/scripts/pre-commit-hook.sh +52 -0
package/dist/xenocline.cjs
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxdrellin/xenocline",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Xenocline provides a streamlined, modular framework to manage and execute Processor Pipelines—sequences of computational steps or tasks executed systematically to process data or events. It allows developers to define, connect, and orchestrate individual processors into efficient workflows, supporting clear separation of concerns, scalability, and ease of maintenance.",
|
|
5
5
|
"main": "dist/xenocline.cjs",
|
|
6
6
|
"module": "dist/xenocline.js",
|
|
@@ -19,6 +19,20 @@
|
|
|
19
19
|
"require": "./dist/xenocline.cjs"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "npm run lint && tsc --noEmit && vite build && copyfiles -u 1 \"src/**/*.md\" dist && copyfiles -u 1 \"src/**/*.yaml\" dist",
|
|
24
|
+
"start": "node dist/xenocline.cjs",
|
|
25
|
+
"dev": "vite",
|
|
26
|
+
"watch": "vite build --watch",
|
|
27
|
+
"test": "npm run test:coverage && npm run test:readme",
|
|
28
|
+
"test:coverage": "vitest run --coverage",
|
|
29
|
+
"test:readme": "doccident -c .doccident-setup.mjs README.md",
|
|
30
|
+
"lint": "eslint . --ext .ts",
|
|
31
|
+
"lint:fix": "eslint . --ext .ts --fix",
|
|
32
|
+
"clean": "rm -rf dist",
|
|
33
|
+
"precommit": "npm run build && npm run lint && npm run test",
|
|
34
|
+
"prepublishOnly": "npm run lint && npm run build && npm run test"
|
|
35
|
+
},
|
|
22
36
|
"keywords": [
|
|
23
37
|
"pipeline",
|
|
24
38
|
"execution",
|
|
@@ -36,34 +50,20 @@
|
|
|
36
50
|
"@babel/preset-typescript": "^7.27.1",
|
|
37
51
|
"@eslint/eslintrc": "^3.3.1",
|
|
38
52
|
"@eslint/js": "^9.30.1",
|
|
39
|
-
"@jest/globals": "^30.0.4",
|
|
40
53
|
"@rollup/plugin-replace": "^6.0.2",
|
|
41
54
|
"@swc/core": "^1.12.11",
|
|
42
|
-
"@types/jest": "^30.0.0",
|
|
43
55
|
"@types/node": "^24.0.12",
|
|
44
56
|
"@typescript-eslint/eslint-plugin": "^8.36.0",
|
|
45
57
|
"@typescript-eslint/parser": "^8.36.0",
|
|
58
|
+
"@vitest/coverage-v8": "^2.1.8",
|
|
46
59
|
"copyfiles": "^2.4.1",
|
|
47
60
|
"eslint": "^9.30.1",
|
|
48
61
|
"eslint-plugin-import": "^2.32.0",
|
|
49
62
|
"globals": "^16.3.0",
|
|
50
|
-
"jest": "^30.0.4",
|
|
51
|
-
"ts-jest": "^29.4.0",
|
|
52
63
|
"typescript": "^5.8.3",
|
|
53
64
|
"vite": "^7.0.4",
|
|
54
65
|
"vite-plugin-dts": "^4.5.4",
|
|
55
|
-
"vite-plugin-node": "^7.0.0"
|
|
56
|
-
|
|
57
|
-
"scripts": {
|
|
58
|
-
"build": "vite build && copyfiles -u 1 \"src/**/*.md\" dist && copyfiles -u 1 \"src/**/*.yaml\" dist",
|
|
59
|
-
"start": "node dist/xenocline.cjs",
|
|
60
|
-
"dev": "vite",
|
|
61
|
-
"watch": "vite build --watch",
|
|
62
|
-
"test": "pnpm run test:coverage && pnpm run test:readme",
|
|
63
|
-
"test:coverage": "jest --coverage",
|
|
64
|
-
"test:readme": "doccident -c .doccident-setup.mjs README.md",
|
|
65
|
-
"lint": "eslint . --ext .ts",
|
|
66
|
-
"lint:fix": "eslint . --ext .ts --fix",
|
|
67
|
-
"clean": "rm -rf dist"
|
|
66
|
+
"vite-plugin-node": "^7.0.0",
|
|
67
|
+
"vitest": "^2.1.8"
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
|
|
3
|
+
# Xenocline Pre-commit Hook
|
|
4
|
+
# Prevents committing package.json files that contain file: dependencies
|
|
5
|
+
#
|
|
6
|
+
# To install this hook:
|
|
7
|
+
# 1. Copy this file to .git/hooks/pre-commit
|
|
8
|
+
# 2. Make it executable: chmod +x .git/hooks/pre-commit
|
|
9
|
+
#
|
|
10
|
+
# Or run: npm run install-hooks (if you add this script to package.json)
|
|
11
|
+
|
|
12
|
+
echo "🔍 Checking for file: dependencies in staged package.json files..."
|
|
13
|
+
|
|
14
|
+
# Find all staged package.json files
|
|
15
|
+
staged_package_files=$(git diff --cached --name-only | grep "package\.json$")
|
|
16
|
+
|
|
17
|
+
if [ -z "$staged_package_files" ]; then
|
|
18
|
+
echo "✅ No package.json files staged for commit"
|
|
19
|
+
exit 0
|
|
20
|
+
fi
|
|
21
|
+
|
|
22
|
+
found_file_deps=false
|
|
23
|
+
|
|
24
|
+
# Check each staged package.json file for file: dependencies
|
|
25
|
+
for file in $staged_package_files; do
|
|
26
|
+
if [ -f "$file" ]; then
|
|
27
|
+
# Look for "file:" dependencies in the staged version
|
|
28
|
+
if git show :$file | grep -q '"file:'; then
|
|
29
|
+
echo "❌ Found file: dependencies in $file:"
|
|
30
|
+
git show :$file | grep '"file:' | sed 's/^/ /'
|
|
31
|
+
found_file_deps=true
|
|
32
|
+
fi
|
|
33
|
+
fi
|
|
34
|
+
done
|
|
35
|
+
|
|
36
|
+
if $found_file_deps; then
|
|
37
|
+
echo ""
|
|
38
|
+
echo "🚫 COMMIT BLOCKED: Cannot commit package.json files with file: dependencies"
|
|
39
|
+
echo ""
|
|
40
|
+
echo "💡 To fix this:"
|
|
41
|
+
echo " 1. Remove file: dependencies from package.json"
|
|
42
|
+
echo " 2. Commit your changes"
|
|
43
|
+
echo ""
|
|
44
|
+
echo " Or to commit anyway (not recommended):"
|
|
45
|
+
echo " git commit --no-verify"
|
|
46
|
+
echo ""
|
|
47
|
+
exit 1
|
|
48
|
+
fi
|
|
49
|
+
|
|
50
|
+
echo "✅ No file: dependencies found in staged package.json files"
|
|
51
|
+
exit 0
|
|
52
|
+
|