@syncify/cli 0.3.0-beta → 1.0.0-unstable.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 +10 -6
- package/dist/api.js +32 -12
- package/dist/cli.js +610 -6
- package/dist/index.d.ts +2264 -0
- package/dist/index.js +10 -10
- package/dist/syncify.js +24248 -0
- package/hot.js.liquid +13 -2
- package/package.json +118 -115
- package/readme.md +110 -2176
- package/scripts/postinstall.js +116 -0
- package/scripts/postversion.js +60 -0
- package/dist/cjs.js +0 -236
- package/pnpm-lock.yaml +0 -5662
- package/schema/syncify.config.json +0 -676
- package/schema/syncify.env.json +0 -58
- package/schema/syncify.package.json +0 -11
- package/types/api.d.ts +0 -319
- package/types/bundle/cache.d.ts +0 -101
- package/types/bundle/commands.d.ts +0 -396
- package/types/bundle/errors.d.ts +0 -101
- package/types/bundle/file.d.ts +0 -285
- package/types/bundle/filters.d.ts +0 -81
- package/types/bundle/hot.d.ts +0 -185
- package/types/bundle/index.d.ts +0 -603
- package/types/bundle/plugin.d.ts +0 -127
- package/types/bundle/processors.d.ts +0 -54
- package/types/bundle/reports.d.ts +0 -123
- package/types/bundle/requests.d.ts +0 -374
- package/types/bundle/shared.d.ts +0 -124
- package/types/cli.d.ts +0 -547
- package/types/config/index.d.ts +0 -550
- package/types/config/terser.d.ts +0 -319
- package/types/config/views.d.ts +0 -191
- package/types/index.d.ts +0 -55
- package/types/modules/html-minifier-terser.d.ts +0 -218
- package/types/stores.d.ts +0 -11
- package/types/transforms/image.d.ts +0 -15
- package/types/transforms/json.d.ts +0 -51
- package/types/transforms/pages.d.ts +0 -254
- package/types/transforms/script.d.ts +0 -308
- package/types/transforms/style.d.ts +0 -219
- package/types/transforms/svg.d.ts +0 -189
package/LICENSE
CHANGED
@@ -1,9 +1,13 @@
|
|
1
|
-
|
1
|
+
Copyright 2025 Νίκος Σαβίδης
|
2
2
|
|
3
|
-
|
3
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
you may not use this file except in compliance with the License.
|
5
|
+
You may obtain a copy of the License at
|
4
6
|
|
5
|
-
|
7
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
6
8
|
|
7
|
-
|
8
|
-
|
9
|
-
|
9
|
+
Unless required by applicable law or agreed to in writing, software
|
10
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
See the License for the specific language governing permissions and
|
13
|
+
limitations under the License.
|
package/dist/api.js
CHANGED
@@ -1,16 +1,36 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
|
3
|
+
var syncify_js = require('./syncify.js');
|
4
4
|
|
5
|
-
|
5
|
+
// syncify/api.ts
|
6
|
+
function api(resource, options) {
|
7
|
+
if (syncify_js.isString(resource)) {
|
8
|
+
if (resource === "watch" || resource === "build" || resource === "export" || resource === "import" || resource === "upload") {
|
9
|
+
return (cb) => syncify_js.syncify();
|
10
|
+
} else {
|
11
|
+
throw new Error([
|
12
|
+
"Invalid Resource, available resource modes via API:",
|
13
|
+
"",
|
14
|
+
'- "watch"',
|
15
|
+
'- "build"',
|
16
|
+
'- "export"',
|
17
|
+
'- "import"',
|
18
|
+
'- "upload"',
|
19
|
+
""
|
20
|
+
].join("\n"));
|
21
|
+
}
|
22
|
+
} else if (syncify_js.isObject(resource)) {
|
23
|
+
if (!syncify_js.isUndefined(options)) {
|
24
|
+
throw new Error("You cannot provide options when running instance");
|
25
|
+
}
|
26
|
+
return {
|
27
|
+
watch: (cb) => syncify_js.syncify(),
|
28
|
+
build: (cb) => syncify_js.syncify(),
|
29
|
+
download: (cb) => syncify_js.syncify(),
|
30
|
+
upload: (cb) => syncify_js.syncify()
|
31
|
+
};
|
32
|
+
}
|
33
|
+
}
|
34
|
+
var api_default = api;
|
6
35
|
|
7
|
-
|
8
|
-
|
9
|
-
Object.defineProperty(exports, 'default', {
|
10
|
-
enumerable: true,
|
11
|
-
get: function () { return cjs_js.c; }
|
12
|
-
});
|
13
|
-
Object.defineProperty(exports, 'defineConfig', {
|
14
|
-
enumerable: true,
|
15
|
-
get: function () { return cjs_js.b; }
|
16
|
-
});
|
36
|
+
module.exports = api_default;
|