@vamidicreations/arc-ui 0.1.0
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/LICENSE +21 -0
- package/README.md +2 -0
- package/dist/compiler/template-component.compiler.js +292 -0
- package/dist/component-plugin.js +45 -0
- package/dist/include-effect-plugin.js +48 -0
- package/dist/index.js +3 -0
- package/dist/main.mjs +48 -0
- package/dist/onejs/copy-assets.js +79 -0
- package/dist/onejs/decorator-fix.js +14 -0
- package/dist/onejs/import-transform.js +86 -0
- package/dist/onejs/index.js +3 -0
- package/dist/src/compiler/template-component.compiler.js +292 -0
- package/dist/src/component-plugin.js +45 -0
- package/dist/src/include-effect-plugin.js +48 -0
- package/dist/src/index.js +3 -0
- package/dist/src/onejs/copy-assets.js +79 -0
- package/dist/src/onejs/decorator-fix.js +14 -0
- package/dist/src/onejs/import-transform.js +86 -0
- package/dist/src/onejs/index.js +3 -0
- package/jest.config.js +13 -0
- package/main.mjs +48 -0
- package/main.mts +58 -0
- package/package.json +26 -0
- package/tsconfig.json +32 -0
package/main.mts
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default OneJS ESbuild Config
|
|
3
|
+
*/
|
|
4
|
+
import { context } from "esbuild";
|
|
5
|
+
import {
|
|
6
|
+
componentPlugin,
|
|
7
|
+
injectEffectPlugin,
|
|
8
|
+
importTransformationPlugin,
|
|
9
|
+
copyAssetsPlugin,
|
|
10
|
+
decoratorFixPlugin
|
|
11
|
+
} from "./src";
|
|
12
|
+
|
|
13
|
+
// @ts-ignore
|
|
14
|
+
const once = process.argv.includes("--once");
|
|
15
|
+
|
|
16
|
+
// !once && outputWatcherPlugin(),
|
|
17
|
+
const ctx = await context({
|
|
18
|
+
entryPoints: ["./src/main.ts"],
|
|
19
|
+
bundle: true,
|
|
20
|
+
plugins: [
|
|
21
|
+
componentPlugin(),
|
|
22
|
+
importTransformationPlugin(),
|
|
23
|
+
copyAssetsPlugin(),
|
|
24
|
+
decoratorFixPlugin(),
|
|
25
|
+
{
|
|
26
|
+
name: 'add-mjs',
|
|
27
|
+
setup(build) {
|
|
28
|
+
build.onResolve({ filter: /.*/ }, args => {
|
|
29
|
+
if (args.importer)
|
|
30
|
+
return { path: args.path + '.mjs', external: true }
|
|
31
|
+
})
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
injectEffectPlugin(),
|
|
35
|
+
],
|
|
36
|
+
inject: ["onejs-core/dist/index.js"],
|
|
37
|
+
platform: "node",
|
|
38
|
+
sourcemap: true,
|
|
39
|
+
sourceRoot: process.cwd() + "/index",
|
|
40
|
+
alias: {
|
|
41
|
+
"onejs": "onejs-core",
|
|
42
|
+
"esbuild": "esbuild",
|
|
43
|
+
},
|
|
44
|
+
outfile: "@outputs/esbuild/app.js",
|
|
45
|
+
write: false, // override
|
|
46
|
+
});
|
|
47
|
+
if (once) {
|
|
48
|
+
await ctx.rebuild();
|
|
49
|
+
await ctx.dispose();
|
|
50
|
+
console.log("Build finished.");
|
|
51
|
+
process.exit(0);
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
await ctx.watch();
|
|
55
|
+
console.log("Watching for changes…");
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vamidicreations/arc-ui",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"main": "dist/main.js",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"build": "npx tsc -p ./tsconfig.json"
|
|
7
|
+
},
|
|
8
|
+
"keywords": [],
|
|
9
|
+
"author": "",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"description": "",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"@types/jest": "^30.0.0",
|
|
14
|
+
"esbuild": "^0.25.9",
|
|
15
|
+
"jest": "^30.1.3",
|
|
16
|
+
"onejs-core": "^2.0.22",
|
|
17
|
+
"tslib": "^2.8.1"
|
|
18
|
+
},
|
|
19
|
+
"devDependencies": {
|
|
20
|
+
"parse5": "^8.0.0",
|
|
21
|
+
"ts-jest": "^29.4.4",
|
|
22
|
+
"ts-node": "^10.9.2",
|
|
23
|
+
"tsx": "^4.20.5",
|
|
24
|
+
"typescript": "^5.9.2"
|
|
25
|
+
}
|
|
26
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"rootDir": "./",
|
|
4
|
+
"outDir": "dist",
|
|
5
|
+
"module": "esnext",
|
|
6
|
+
"target": "esnext",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"esModuleInterop": true,
|
|
9
|
+
"forceConsistentCasingInFileNames": true,
|
|
10
|
+
"strict": true,
|
|
11
|
+
"skipLibCheck": true,
|
|
12
|
+
// For Node.js:
|
|
13
|
+
"lib": ["esnext"],
|
|
14
|
+
"types": [
|
|
15
|
+
"node",
|
|
16
|
+
"jest"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"main.mts"
|
|
21
|
+
],
|
|
22
|
+
"include": [
|
|
23
|
+
"scripts/**/*.ts",
|
|
24
|
+
"scripts/**/*.mts",
|
|
25
|
+
"scripts/**/*.d.ts"
|
|
26
|
+
],
|
|
27
|
+
"exclude": [
|
|
28
|
+
"./node_modules",
|
|
29
|
+
"./dist",
|
|
30
|
+
"./bak"
|
|
31
|
+
]
|
|
32
|
+
}
|