oc-template-elm-compiler 0.2.0 → 0.2.1
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/lib/compile.d.ts +1 -3
- package/dist/lib/compile.js +4 -12
- package/package.json +2 -7
package/dist/lib/compile.d.ts
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export type CompilerOptions = ReturnType<typeof createCompile>;
|
|
3
|
-
export declare const compile: CompilerOptions;
|
|
1
|
+
export declare const compile: (options: import("oc-generic-template-compiler").CompilerOptions, callback: (err: Error | null, data: unknown) => void) => void;
|
package/dist/lib/compile.js
CHANGED
|
@@ -4,20 +4,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.compile = void 0;
|
|
7
|
-
const oc_generic_template_compiler_1 = require("oc-generic-template-compiler");
|
|
8
|
-
const oc_statics_compiler_1 = __importDefault(require("oc-statics-compiler"));
|
|
9
7
|
const oc_template_elm_1 = require("oc-template-elm");
|
|
10
|
-
const oc_vite_compiler_1 = require("oc-vite-compiler");
|
|
11
8
|
const vite_plugin_elm_1 = __importDefault(require("vite-plugin-elm"));
|
|
9
|
+
const oc_vite_compiler_1 = require("oc-vite-compiler");
|
|
12
10
|
const elmOCProviderTemplate_1 = __importDefault(require("./elmOCProviderTemplate"));
|
|
13
|
-
exports.compile = (0,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
plugins: [(0, vite_plugin_elm_1.default)()],
|
|
17
|
-
viewWrapper: elmOCProviderTemplate_1.default,
|
|
18
|
-
externals: (0, oc_template_elm_1.getInfo)().externals
|
|
19
|
-
}, cb),
|
|
20
|
-
compileServer: oc_vite_compiler_1.viteServer,
|
|
21
|
-
compileStatics: oc_statics_compiler_1.default,
|
|
11
|
+
exports.compile = (0, oc_vite_compiler_1.createCompile)({
|
|
12
|
+
plugins: [(0, vite_plugin_elm_1.default)()],
|
|
13
|
+
viewWrapper: elmOCProviderTemplate_1.default,
|
|
22
14
|
getInfo: oc_template_elm_1.getInfo
|
|
23
15
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oc-template-elm-compiler",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Compiler for the Elm OC template",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -29,14 +29,9 @@
|
|
|
29
29
|
},
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"chalk": "^3.0.0",
|
|
33
32
|
"elm": "^0.19.1-6",
|
|
34
|
-
"oc-generic-template-compiler": "2.0.4",
|
|
35
|
-
"oc-statics-compiler": "2.0.10",
|
|
36
33
|
"oc-template-elm": "^0.1.0",
|
|
37
|
-
"oc-
|
|
38
|
-
"oc-vite-compiler": "^3.1.1",
|
|
39
|
-
"resolve": "1.18.1",
|
|
34
|
+
"oc-vite-compiler": "^3.2.0",
|
|
40
35
|
"vite-plugin-elm": "^2.8.0"
|
|
41
36
|
},
|
|
42
37
|
"files": [
|