@upskale/flux 0.0.0-stage → 0.1.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.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +16 -2
  3. package/bin/flux.js +27 -0
  4. package/package.json +37 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Upskale Labs
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,17 @@
1
- # Temporary Holding Version
1
+ # @upskale/flux
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The `flux` CLI: check, build and serve [Flux](https://flux.upskalelabs.dev)
4
+ projects. One `.flx` source compiles to a React website and a Flutter app.
5
+
6
+ ```sh
7
+ npm create @upskale/flux@latest my-app
8
+ cd my-app
9
+ npx flux dev
10
+ ```
11
+
12
+ Or add it to a project: `npm install -D @upskale/flux`, then `npx flux check`.
13
+
14
+ npm installs the native build for your machine (Windows, macOS and Linux, x64
15
+ and arm64). There's nothing to compile, and you don't need Go.
16
+
17
+ MIT. Source: <https://github.com/iamsinyagepr/flux>
package/bin/flux.js ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env node
2
+ // Runs the flux binary npm installed for this machine: one of the
3
+ // @upskale/flux-<os>-<cpu> packages, each holding that platform's build.
4
+ const { spawnSync } = require("node:child_process");
5
+ const path = require("node:path");
6
+
7
+ const platform = `${process.platform}-${process.arch}`;
8
+ const exe = process.platform === "win32" ? "flux.exe" : "flux";
9
+ let binary = process.env.FLUX_BINARY;
10
+ if (!binary) {
11
+ try {
12
+ binary = require.resolve(`@upskale/flux-${platform}/bin/${exe}`);
13
+ } catch {
14
+ console.error(
15
+ `flux: no build for ${platform} was installed.\n` +
16
+ `Reinstall without --no-optional (npm install @upskale/flux), or install the binary\n` +
17
+ `from https://github.com/iamsinyagepr/flux/releases and put it on your PATH.`,
18
+ );
19
+ process.exit(1);
20
+ }
21
+ }
22
+ const result = spawnSync(binary, process.argv.slice(2), { stdio: "inherit" });
23
+ if (result.error) {
24
+ console.error(`flux: couldn't run ${path.basename(binary)}: ${result.error.message}`);
25
+ process.exit(1);
26
+ }
27
+ process.exit(result.status ?? 1);
package/package.json CHANGED
@@ -1,6 +1,39 @@
1
1
  {
2
2
  "name": "@upskale/flux",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.1",
4
+ "description": "Flux: one source, compiled to a website and a Flutter app. The flux CLI.",
5
+ "license": "MIT",
6
+ "homepage": "https://flux.upskalelabs.dev",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/iamsinyagepr/flux.git",
10
+ "directory": "npm/flux"
11
+ },
12
+ "keywords": [
13
+ "flux",
14
+ "flx",
15
+ "ui",
16
+ "language",
17
+ "compiler",
18
+ "flutter",
19
+ "react"
20
+ ],
21
+ "bin": {
22
+ "flux": "bin/flux.js"
23
+ },
24
+ "files": [
25
+ "bin/flux.js",
26
+ "README.md"
27
+ ],
28
+ "engines": {
29
+ "node": ">=18"
30
+ },
31
+ "optionalDependencies": {
32
+ "@upskale/flux-win32-x64": "0.1.1",
33
+ "@upskale/flux-win32-arm64": "0.1.1",
34
+ "@upskale/flux-darwin-x64": "0.1.1",
35
+ "@upskale/flux-darwin-arm64": "0.1.1",
36
+ "@upskale/flux-linux-x64": "0.1.1",
37
+ "@upskale/flux-linux-arm64": "0.1.1"
38
+ }
39
+ }