rollipop 0.1.0-alpha.0 → 0.1.0-alpha.2

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/index.cjs CHANGED
@@ -40,7 +40,6 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
40
40
  //#endregion
41
41
  let _rollipop_common = require("@rollipop/common");
42
42
  let _rollipop_core = require("@rollipop/core");
43
- let _rollipop_dev_server = require("@rollipop/dev-server");
44
43
  let _commander_js_extra_typings = require("@commander-js/extra-typings");
45
44
  let es_toolkit = require("es-toolkit");
46
45
  let _inquirer_prompts = require("@inquirer/prompts");
@@ -57,7 +56,7 @@ async function runBuild(config, options) {
57
56
  //#region src/run-server.ts
58
57
  async function runServer(config, options) {
59
58
  const { port, host } = options;
60
- const devServer = await (0, _rollipop_dev_server.createDevServer)(config, options);
59
+ const devServer = await (0, _rollipop_core.createDevServer)(config, options);
61
60
  await devServer.instance.listen({
62
61
  port,
63
62
  host
@@ -67,7 +66,7 @@ async function runServer(config, options) {
67
66
 
68
67
  //#endregion
69
68
  //#region package.json
70
- var version = "0.1.0-alpha.0";
69
+ var version = "0.1.0-alpha.2";
71
70
 
72
71
  //#endregion
73
72
  //#region src/node/constants.ts
@@ -85,7 +84,7 @@ function parseBoolean(value) {
85
84
 
86
85
  //#endregion
87
86
  //#region src/node/commands/bundle/index.ts
88
- const command$1 = new _commander_js_extra_typings.Command("build").description("Build the bundle for the provided JavaScript entry file.").option("--config <string>", "Path to the CLI configuration file").requiredOption("--entry-file <path>", "Path to the root JS file, either absolute or relative to JS root").requiredOption("--bundle-output <string>", "File name where to store the resulting bundle, ex. /tmp/groups.bundle").option("--platform <string>", "Either \"ios\" or \"android\"", "ios").option("--dev [boolean]", "If false, warnings are disabled and the bundle is minified", parseBoolean, true).option("--minify [boolean]", "Allows overriding whether bundle is minified. This defaults to false if dev is true, and true if dev is false. Disabling minification can be useful for speeding up production builds for testing purposes.", parseBoolean, false).option("--sourcemap-output <string>", "File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map").option("--sourcemap-sources-root <string>", "Path to make sourcemap's sources entries relative to, ex. /root/dir").option("--sourcemap-use-absolute-path", "Report SourceMapURL using its full path", false).option("--assets-dest <string>", "Directory name where to store assets referenced in the bundle").option("--cache [boolean]", "If false, the bundler will not cache anything", parseBoolean, true).option("--reset-cache", "Removes cached files").option("--transformer <string>", UNSUPPORTED_OPTION_DESCRIPTION).option("--bundle-encoding <string>", UNSUPPORTED_OPTION_DESCRIPTION, "utf8").option("--max-workers <number>", UNSUPPORTED_OPTION_DESCRIPTION, Number, 0).option("--unstable-transform-profile <string>", UNSUPPORTED_OPTION_DESCRIPTION, "default").option("--asset-catalog-dest [string]", UNSUPPORTED_OPTION_DESCRIPTION).option("--read-global-cache", UNSUPPORTED_OPTION_DESCRIPTION).option("--resolver-option <string...>", UNSUPPORTED_OPTION_DESCRIPTION).action(async (options) => {
87
+ const command$1 = new _commander_js_extra_typings.Command("bundle").description("Build the bundle for the provided JavaScript entry file.").option("--config <string>", "Path to the CLI configuration file").requiredOption("--entry-file <path>", "Path to the root JS file, either absolute or relative to JS root").requiredOption("--bundle-output <string>", "File name where to store the resulting bundle, ex. /tmp/groups.bundle").option("--platform <string>", "Either \"ios\" or \"android\"", "ios").option("--dev [boolean]", "If false, warnings are disabled and the bundle is minified", parseBoolean, true).option("--minify [boolean]", "Allows overriding whether bundle is minified. This defaults to false if dev is true, and true if dev is false. Disabling minification can be useful for speeding up production builds for testing purposes.", parseBoolean, false).option("--sourcemap-output <string>", "File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map").option("--sourcemap-sources-root <string>", "Path to make sourcemap's sources entries relative to, ex. /root/dir").option("--sourcemap-use-absolute-path", "Report SourceMapURL using its full path", false).option("--assets-dest <string>", "Directory name where to store assets referenced in the bundle").option("--cache [boolean]", "If false, the bundler will not cache anything", parseBoolean, true).option("--reset-cache", "Removes cached files").option("--transformer <string>", UNSUPPORTED_OPTION_DESCRIPTION).option("--bundle-encoding <string>", UNSUPPORTED_OPTION_DESCRIPTION, "utf8").option("--max-workers <number>", UNSUPPORTED_OPTION_DESCRIPTION, Number, 0).option("--unstable-transform-profile <string>", UNSUPPORTED_OPTION_DESCRIPTION, "default").option("--asset-catalog-dest [string]", UNSUPPORTED_OPTION_DESCRIPTION).option("--read-global-cache", UNSUPPORTED_OPTION_DESCRIPTION).option("--resolver-option <string...>", UNSUPPORTED_OPTION_DESCRIPTION).action(async (options) => {
89
88
  const cwd = process.cwd();
90
89
  const config = await Rollipop.loadConfig({
91
90
  cwd,
@@ -103,6 +102,7 @@ const command$1 = new _commander_js_extra_typings.Command("build").description("
103
102
  minify: options.minify,
104
103
  cache: options.cache,
105
104
  outfile: options.bundleOutput,
105
+ sourcemap: options.sourcemapOutput,
106
106
  assetsDir: options.assetsDest
107
107
  });
108
108
  });
@@ -243,7 +243,7 @@ function setupInteractiveMode(options) {
243
243
 
244
244
  //#endregion
245
245
  //#region src/node/commands/start/index.ts
246
- const command = new _commander_js_extra_typings.Command("start").description("Start the React Native development server.").option("--config <string>", "Path to the CLI configuration file").option("--host <string>", "Host to start the development server on", _rollipop_dev_server.DEFAULT_HOST).option("--port <number>", "Port to start the development server on", Number, _rollipop_dev_server.DEFAULT_PORT).option("--projectRoot <path>", "Path to a custom project root", "").option("--reset-cache", "Removes cached files").option("--https", "Enables https connections to the server").option("--key <path>", "Path to custom SSL key").option("--cert <path>", "Path to custom SSL cert").option("--no-interactive", "Disables interactive mode").option("--client-logs", "Enable plain text JavaScript log streaming for all connected apps. This feature is deprecated and will be removed in future.", false).option("--watchFolders <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--assetPlugins <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--sourceExts <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--max-workers <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--transformer", UNSUPPORTED_OPTION_DESCRIPTION).option("--custom-log-reporter-path", UNSUPPORTED_OPTION_DESCRIPTION).action(async (options) => {
246
+ const command = new _commander_js_extra_typings.Command("start").description("Start the React Native development server.").option("--config <string>", "Path to the CLI configuration file").option("--host <string>", "Host to start the development server on", _rollipop_core.DEFAULT_HOST).option("--port <number>", "Port to start the development server on", Number, _rollipop_core.DEFAULT_PORT).option("--projectRoot <path>", "Path to a custom project root", "").option("--reset-cache", "Removes cached files").option("--https", "Enables https connections to the server").option("--key <path>", "Path to custom SSL key").option("--cert <path>", "Path to custom SSL cert").option("--no-interactive", "Disables interactive mode").option("--client-logs", "Enable plain text JavaScript log streaming for all connected apps. This feature is deprecated and will be removed in future.", false).option("--watchFolders <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--assetPlugins <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--sourceExts <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--max-workers <list>", UNSUPPORTED_OPTION_DESCRIPTION).option("--transformer", UNSUPPORTED_OPTION_DESCRIPTION).option("--custom-log-reporter-path", UNSUPPORTED_OPTION_DESCRIPTION).action(async (options) => {
247
247
  const cwd = process.cwd();
248
248
  const config = await Rollipop.loadConfig({
249
249
  cwd,
@@ -257,7 +257,6 @@ const command = new _commander_js_extra_typings.Command("start").description("St
257
257
  if (options.clientLogs === false) config.reporter = { update: es_toolkit.noop };
258
258
  let debuggerOpened = false;
259
259
  const server = await Rollipop.runServer(config, {
260
- projectRoot: cwd,
261
260
  port: options.port,
262
261
  host: options.host,
263
262
  https: options.https,
@@ -303,13 +302,13 @@ const Rollipop = Object.freeze({
303
302
  Object.defineProperty(exports, 'DEFAULT_HOST', {
304
303
  enumerable: true,
305
304
  get: function () {
306
- return _rollipop_dev_server.DEFAULT_HOST;
305
+ return _rollipop_core.DEFAULT_HOST;
307
306
  }
308
307
  });
309
308
  Object.defineProperty(exports, 'DEFAULT_PORT', {
310
309
  enumerable: true,
311
310
  get: function () {
312
- return _rollipop_dev_server.DEFAULT_PORT;
311
+ return _rollipop_core.DEFAULT_PORT;
313
312
  }
314
313
  });
315
314
  Object.defineProperty(exports, 'PluginUtils', {
package/dist/index.d.cts CHANGED
@@ -1,7 +1,5 @@
1
1
  import { resetCache } from "@rollipop/common";
2
- import { BuildOptions, BuildOptions as BuildOptions$1, Config, DefaultConfig, PluginUtils, ReactNativeConfig, ReportableEvent, Reporter, ResolvedConfig, ResolvedConfig as ResolvedConfig$1, ResolverConfig, RolldownConfig, SerializerConfig, TerminalConfig, TransformerConfig, WatcherConfig, defineConfig, loadConfig, mergeConfig, rolldown } from "@rollipop/core";
3
- import { DEFAULT_HOST, DEFAULT_PORT, DevServer, DevServer as DevServer$1, ServerOptions, ServerOptions as ServerOptions$1 } from "@rollipop/dev-server";
4
- import { Plugin } from "rolldown";
2
+ import { BuildOptions, BuildOptions as BuildOptions$1, Config, DEFAULT_HOST, DEFAULT_PORT, DefaultConfig, DevServer, DevServer as DevServer$1, Plugin, PluginUtils, ReactNativeConfig, ReportableEvent, Reporter, ResolvedConfig, ResolvedConfig as ResolvedConfig$1, ResolverConfig, RolldownConfig, SerializerConfig, ServerOptions, ServerOptions as ServerOptions$1, TerminalConfig, TransformerConfig, WatcherConfig, defineConfig, loadConfig, mergeConfig, rolldown } from "@rollipop/core";
5
3
 
6
4
  //#region rolldown:runtime
7
5
  //#endregion
package/dist/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import { resetCache } from "@rollipop/common";
2
- import { BuildOptions, BuildOptions as BuildOptions$1, Config, DefaultConfig, PluginUtils, ReactNativeConfig, ReportableEvent, Reporter, ResolvedConfig, ResolvedConfig as ResolvedConfig$1, ResolverConfig, RolldownConfig, SerializerConfig, TerminalConfig, TransformerConfig, WatcherConfig, defineConfig, loadConfig, mergeConfig, rolldown } from "@rollipop/core";
3
- import { DEFAULT_HOST, DEFAULT_PORT, DevServer, DevServer as DevServer$1, ServerOptions, ServerOptions as ServerOptions$1 } from "@rollipop/dev-server";
4
- import { Plugin } from "rolldown";
2
+ import { BuildOptions, BuildOptions as BuildOptions$1, Config, DEFAULT_HOST, DEFAULT_PORT, DefaultConfig, DevServer, DevServer as DevServer$1, Plugin, PluginUtils, ReactNativeConfig, ReportableEvent, Reporter, ResolvedConfig, ResolvedConfig as ResolvedConfig$1, ResolverConfig, RolldownConfig, SerializerConfig, ServerOptions, ServerOptions as ServerOptions$1, TerminalConfig, TransformerConfig, WatcherConfig, defineConfig, loadConfig, mergeConfig, rolldown } from "@rollipop/core";
5
3
 
6
4
  //#region src/run-build.d.ts
7
5
  declare function runBuild(config: ResolvedConfig$1, options: BuildOptions$1): Promise<rolldown.OutputChunk>;
package/dist/index.js CHANGED
@@ -1,7 +1,6 @@
1
1
  import { t as __export } from "./chunk-BAz01cYq.js";
2
2
  import { Logger, Logo, chalk, loadSettings, resetCache, saveSettings } from "@rollipop/common";
3
- import { Bundler, PluginUtils, defineConfig, loadConfig, mergeConfig } from "@rollipop/core";
4
- import { DEFAULT_HOST, DEFAULT_HOST as DEFAULT_HOST$1, DEFAULT_PORT, DEFAULT_PORT as DEFAULT_PORT$1, createDevServer } from "@rollipop/dev-server";
3
+ import { Bundler, DEFAULT_HOST, DEFAULT_HOST as DEFAULT_HOST$1, DEFAULT_PORT, DEFAULT_PORT as DEFAULT_PORT$1, PluginUtils, createDevServer, defineConfig, loadConfig, mergeConfig } from "@rollipop/core";
5
4
  import { Command, program } from "@commander-js/extra-typings";
6
5
  import { merge, noop, throttle } from "es-toolkit";
7
6
  import { select } from "@inquirer/prompts";
@@ -27,7 +26,7 @@ async function runServer(config, options) {
27
26
 
28
27
  //#endregion
29
28
  //#region package.json
30
- var version = "0.1.0-alpha.0";
29
+ var version = "0.1.0-alpha.2";
31
30
 
32
31
  //#endregion
33
32
  //#region src/node/constants.ts
@@ -45,7 +44,7 @@ function parseBoolean(value) {
45
44
 
46
45
  //#endregion
47
46
  //#region src/node/commands/bundle/index.ts
48
- const command$1 = new Command("build").description("Build the bundle for the provided JavaScript entry file.").option("--config <string>", "Path to the CLI configuration file").requiredOption("--entry-file <path>", "Path to the root JS file, either absolute or relative to JS root").requiredOption("--bundle-output <string>", "File name where to store the resulting bundle, ex. /tmp/groups.bundle").option("--platform <string>", "Either \"ios\" or \"android\"", "ios").option("--dev [boolean]", "If false, warnings are disabled and the bundle is minified", parseBoolean, true).option("--minify [boolean]", "Allows overriding whether bundle is minified. This defaults to false if dev is true, and true if dev is false. Disabling minification can be useful for speeding up production builds for testing purposes.", parseBoolean, false).option("--sourcemap-output <string>", "File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map").option("--sourcemap-sources-root <string>", "Path to make sourcemap's sources entries relative to, ex. /root/dir").option("--sourcemap-use-absolute-path", "Report SourceMapURL using its full path", false).option("--assets-dest <string>", "Directory name where to store assets referenced in the bundle").option("--cache [boolean]", "If false, the bundler will not cache anything", parseBoolean, true).option("--reset-cache", "Removes cached files").option("--transformer <string>", UNSUPPORTED_OPTION_DESCRIPTION).option("--bundle-encoding <string>", UNSUPPORTED_OPTION_DESCRIPTION, "utf8").option("--max-workers <number>", UNSUPPORTED_OPTION_DESCRIPTION, Number, 0).option("--unstable-transform-profile <string>", UNSUPPORTED_OPTION_DESCRIPTION, "default").option("--asset-catalog-dest [string]", UNSUPPORTED_OPTION_DESCRIPTION).option("--read-global-cache", UNSUPPORTED_OPTION_DESCRIPTION).option("--resolver-option <string...>", UNSUPPORTED_OPTION_DESCRIPTION).action(async (options) => {
47
+ const command$1 = new Command("bundle").description("Build the bundle for the provided JavaScript entry file.").option("--config <string>", "Path to the CLI configuration file").requiredOption("--entry-file <path>", "Path to the root JS file, either absolute or relative to JS root").requiredOption("--bundle-output <string>", "File name where to store the resulting bundle, ex. /tmp/groups.bundle").option("--platform <string>", "Either \"ios\" or \"android\"", "ios").option("--dev [boolean]", "If false, warnings are disabled and the bundle is minified", parseBoolean, true).option("--minify [boolean]", "Allows overriding whether bundle is minified. This defaults to false if dev is true, and true if dev is false. Disabling minification can be useful for speeding up production builds for testing purposes.", parseBoolean, false).option("--sourcemap-output <string>", "File name where to store the sourcemap file for resulting bundle, ex. /tmp/groups.map").option("--sourcemap-sources-root <string>", "Path to make sourcemap's sources entries relative to, ex. /root/dir").option("--sourcemap-use-absolute-path", "Report SourceMapURL using its full path", false).option("--assets-dest <string>", "Directory name where to store assets referenced in the bundle").option("--cache [boolean]", "If false, the bundler will not cache anything", parseBoolean, true).option("--reset-cache", "Removes cached files").option("--transformer <string>", UNSUPPORTED_OPTION_DESCRIPTION).option("--bundle-encoding <string>", UNSUPPORTED_OPTION_DESCRIPTION, "utf8").option("--max-workers <number>", UNSUPPORTED_OPTION_DESCRIPTION, Number, 0).option("--unstable-transform-profile <string>", UNSUPPORTED_OPTION_DESCRIPTION, "default").option("--asset-catalog-dest [string]", UNSUPPORTED_OPTION_DESCRIPTION).option("--read-global-cache", UNSUPPORTED_OPTION_DESCRIPTION).option("--resolver-option <string...>", UNSUPPORTED_OPTION_DESCRIPTION).action(async (options) => {
49
48
  const cwd = process.cwd();
50
49
  const config = await Rollipop.loadConfig({
51
50
  cwd,
@@ -63,6 +62,7 @@ const command$1 = new Command("build").description("Build the bundle for the pro
63
62
  minify: options.minify,
64
63
  cache: options.cache,
65
64
  outfile: options.bundleOutput,
65
+ sourcemap: options.sourcemapOutput,
66
66
  assetsDir: options.assetsDest
67
67
  });
68
68
  });
@@ -217,7 +217,6 @@ const command = new Command("start").description("Start the React Native develop
217
217
  if (options.clientLogs === false) config.reporter = { update: noop };
218
218
  let debuggerOpened = false;
219
219
  const server = await Rollipop.runServer(config, {
220
- projectRoot: cwd,
221
220
  port: options.port,
222
221
  host: options.host,
223
222
  https: options.https,
@@ -0,0 +1,9 @@
1
+
2
+
3
+ var _rollipop_core_runtime = require("@rollipop/core/runtime");
4
+ Object.keys(_rollipop_core_runtime).forEach(function (k) {
5
+ if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, {
6
+ enumerable: true,
7
+ get: function () { return _rollipop_core_runtime[k]; }
8
+ });
9
+ });
@@ -0,0 +1 @@
1
+ export * from "@rollipop/core/runtime";
@@ -0,0 +1 @@
1
+ export * from "@rollipop/core/runtime";
@@ -0,0 +1 @@
1
+ export * from "@rollipop/core/runtime"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rollipop",
3
- "version": "0.1.0-alpha.0",
3
+ "version": "0.1.0-alpha.2",
4
4
  "type": "module",
5
5
  "bin": "./bin/index.js",
6
6
  "exports": {
@@ -14,6 +14,16 @@
14
14
  "default": "./dist/index.cjs"
15
15
  }
16
16
  },
17
+ "./runtime": {
18
+ "import": {
19
+ "types": "./dist/runtime.d.ts",
20
+ "default": "./dist/runtime.js"
21
+ },
22
+ "require": {
23
+ "types": "./dist/runtime.d.cts",
24
+ "default": "./dist/runtime.cjs"
25
+ }
26
+ },
17
27
  "./package.json": "./package.json"
18
28
  },
19
29
  "files": [
@@ -39,14 +49,13 @@
39
49
  "dependencies": {
40
50
  "@commander-js/extra-typings": "^14.0.0",
41
51
  "@inquirer/prompts": "^8.1.0",
42
- "@rollipop/common": "0.1.0-alpha.0",
43
- "@rollipop/core": "0.1.0-alpha.0",
44
- "@rollipop/dev-server": "0.1.0-alpha.0",
52
+ "@rollipop/common": "workspace:*",
53
+ "@rollipop/core": "workspace:*",
45
54
  "commander": "^14.0.2",
46
- "es-toolkit": "1.43.0"
55
+ "es-toolkit": "catalog:"
47
56
  },
48
57
  "devDependencies": {
49
- "tsdown": "0.18.1",
50
- "typescript": "5.9.3"
58
+ "tsdown": "catalog:",
59
+ "typescript": "catalog:"
51
60
  }
52
- }
61
+ }
package/CHANGELOG.md DELETED
@@ -1,14 +0,0 @@
1
- # rollipop
2
-
3
- ## 0.1.0-alpha.0
4
-
5
- ### Minor Changes
6
-
7
- - 7a1d9a7: pre-alpha
8
-
9
- ### Patch Changes
10
-
11
- - Updated dependencies [7a1d9a7]
12
- - @rollipop/common@0.1.0-alpha.0
13
- - @rollipop/core@0.1.0-alpha.0
14
- - @rollipop/dev-server@0.1.0-alpha.0