Add initial Nebula Core packages and docs
Import initial monorepo structure for Nebula Core: add packages (@nebula/core, core-glyphs, core-input, core-navigation, core-theme, core-ui, core-utils) with source, dist, tests and assets. Expand README with overview, quick start and API snippets, and add package-level documentation files. Add jsconfig.json for path mapping, package.json and lockfiles to bootstrap the repo. This commit sets up the project layout, docs, and local package links for further development.
This commit is contained in:
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-glyphs";
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
export * as input from "./input.js";
|
||||
export * as navigation from "./navigation.js";
|
||||
export * as theme from "./theme.js";
|
||||
export * as glyphs from "./glyphs.js";
|
||||
export * as ui from "./ui.js";
|
||||
export * as utils from "./utils.js";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-input";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-navigation";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-theme";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-ui";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-utils";
|
||||
+27
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "@nebulaproject/core",
|
||||
"version": "0.1.3",
|
||||
"description": "Controller-first foundation for SteamOS-friendly Nebula apps",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
"exports": {
|
||||
".": "./dist/index.js",
|
||||
"./input": "./dist/input.js",
|
||||
"./navigation": "./dist/navigation.js",
|
||||
"./theme": "./dist/theme.js",
|
||||
"./glyphs": "./dist/glyphs.js",
|
||||
"./ui": "./dist/ui.js",
|
||||
"./utils": "./dist/utils.js"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md",
|
||||
"LICENSE"
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "node scripts/build.js"
|
||||
}
|
||||
}
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
import fs from "node:fs";
|
||||
import path from "node:path";
|
||||
import { fileURLToPath } from "node:url";
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url);
|
||||
const __dirname = path.dirname(__filename);
|
||||
|
||||
const srcDir = path.resolve(__dirname, "..", "src");
|
||||
const distDir = path.resolve(__dirname, "..", "dist");
|
||||
|
||||
fs.rmSync(distDir, { recursive: true, force: true });
|
||||
fs.mkdirSync(distDir, { recursive: true });
|
||||
|
||||
for (const file of fs.readdirSync(srcDir)) {
|
||||
if (!file.endsWith(".js")) continue;
|
||||
fs.copyFileSync(path.join(srcDir, file), path.join(distDir, file));
|
||||
}
|
||||
|
||||
console.log("Built @nebula/core -> dist/");
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-glyphs";
|
||||
+6
@@ -0,0 +1,6 @@
|
||||
export * as input from "./input.js";
|
||||
export * as navigation from "./navigation.js";
|
||||
export * as theme from "./theme.js";
|
||||
export * as glyphs from "./glyphs.js";
|
||||
export * as ui from "./ui.js";
|
||||
export * as utils from "./utils.js";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-input";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-navigation";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-theme";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-ui";
|
||||
+1
@@ -0,0 +1 @@
|
||||
export * from "@nebula/core-utils";
|
||||
Reference in New Issue
Block a user