Skip to content

Commit 13d7283

Browse files
committed
Updates
1 parent 90b1bab commit 13d7283

14 files changed

+121
-19
lines changed

apps/apps.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
[
2+
{
3+
"slug": "json-piml-converter",
4+
"to": "/apps/json-piml-converter",
5+
"title": "JSON - PIML Converter",
6+
"description": "Convert JSON to PIML and vice-versa.",
7+
"icon": "Code"
8+
},
29
{
310
"slug": "image-toolkit",
411
"to": "/apps/image-toolkit",
@@ -132,4 +139,4 @@
132139
"description": "Convert between px, em, rem, vw, vh, and % units.",
133140
"icon": "Ruler"
134141
}
135-
]
142+
]

asset-manifest.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": {
3-
"main.css": "/static/css/main.41dc2c5c.css",
4-
"main.js": "/static/js/main.df883002.js",
3+
"main.css": "/static/css/main.883922bf.css",
4+
"main.js": "/static/js/main.7f4a28c8.js",
55
"static/js/453.f568ff1d.chunk.js": "/static/js/453.f568ff1d.chunk.js",
66
"static/media/border.jpg": "/static/media/border.b7869a9ea7ccd009873c.jpg",
77
"static/media/parchment.png": "/static/media/parchment.c4af92656f29dc66bd67.png",
@@ -10,12 +10,12 @@
1010
"static/media/slick.ttf": "/static/media/slick.c94f7671dcc99dce43e2.ttf",
1111
"static/media/slick.woff": "/static/media/slick.295183786cd8a1389865.woff",
1212
"index.html": "/index.html",
13-
"main.41dc2c5c.css.map": "/static/css/main.41dc2c5c.css.map",
14-
"main.df883002.js.map": "/static/js/main.df883002.js.map",
13+
"main.883922bf.css.map": "/static/css/main.883922bf.css.map",
14+
"main.7f4a28c8.js.map": "/static/js/main.7f4a28c8.js.map",
1515
"453.f568ff1d.chunk.js.map": "/static/js/453.f568ff1d.chunk.js.map"
1616
},
1717
"entrypoints": [
18-
"static/css/main.41dc2c5c.css",
19-
"static/js/main.df883002.js"
18+
"static/css/main.883922bf.css",
19+
"static/js/main.7f4a28c8.js"
2020
]
2121
}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en" class="dark"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><link rel="icon" type="image/svg+xml" href="/favicon.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="alternate" type="application/rss+xml" title="Fezcodex RSS Feed" href="/rss.xml"/><meta name="description" content="codex by fezcode..."/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Arvo&family=Inter&family=Playfair+Display&display=swap" rel="stylesheet"><title>fezcodex</title><script defer="defer" src="/static/js/main.df883002.js"></script><link href="/static/css/main.41dc2c5c.css" rel="stylesheet"></head><body class="bg-slate-950"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>
1+
<!doctype html><html lang="en" class="dark"><head><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><link rel="icon" type="image/svg+xml" href="/favicon.svg"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><link rel="alternate" type="application/rss+xml" title="Fezcodex RSS Feed" href="/rss.xml"/><meta name="description" content="codex by fezcode..."/><link rel="apple-touch-icon" href="/logo192.png"/><link rel="manifest" href="/manifest.json"/><link rel="preconnect" href="https://fonts.googleapis.com"><link rel="preconnect" href="https://fonts.gstatic.com" crossorigin><link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet"><link href="https://fonts.googleapis.com/css2?family=Arvo&family=Inter&family=Playfair+Display&display=swap" rel="stylesheet"><title>fezcodex</title><script defer="defer" src="/static/js/main.7f4a28c8.js"></script><link href="/static/css/main.883922bf.css" rel="stylesheet"></head><body class="bg-slate-950"><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html>

posts/posts.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
[
2+
{
3+
"slug": "publish-to-npm",
4+
"title": "Publishing to NPM",
5+
"date": "2025-11-13",
6+
"updated": "2025-11-13",
7+
"description": "A short explanation of publishing NPM packages",
8+
"tags": ["npm", "piml", "data-format", "serialization", "markup"],
9+
"category": "dev",
10+
"filename": "publishing-to-npm.txt"
11+
},
212
{
313
"slug": "piml",
414
"title": "Parenthesis Intended Markup Language",

posts/publishing-to-npm.txt

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# How to Publish a Node.js Library to npm
2+
3+
This document outlines the steps taken to publish the `piml.js` library to the npm registry.
4+
5+
## 1. Initial Setup and Conversion
6+
7+
- Creating a `piml.js` file to house the JavaScript library.
8+
- Creating a `piml.test.js` file to test the JavaScript library.
9+
10+
## 2. Setting up the Node.js Project
11+
12+
To prepare the project for npm, the following steps were taken:
13+
14+
- **`package.json`:** A `package.json` file was created to manage the project's metadata and dependencies. It was populated with the following information:
15+
- `name`: The name of the package on npm (e.g., "piml").
16+
- `version`: The initial version of the package (e.g., "1.0.0").
17+
- `description`: A brief description of the package.
18+
- `main`: The entry point of the package (e.g., "piml.js").
19+
- `scripts`: A "test" script to run the tests using Jest.
20+
- `keywords`: Keywords to help users find the package on npm.
21+
- `author`: The author of the package.
22+
- `license`: The license of the package (e.g., "MIT").
23+
- `devDependencies`: The development dependencies, such as `jest`.
24+
25+
- **`.gitignore`:** A `.gitignore` file was created to prevent unnecessary files from being committed to the repository, such as `node_modules`, logs, and system files.
26+
27+
- **Dependencies Installation:** The development dependencies were installed by running `npm install`.
28+
29+
## 3. Testing
30+
31+
With the project set up, the tests were run to ensure the library was working correctly:
32+
33+
```bash
34+
npm test
35+
```
36+
37+
Any failing tests were debugged and fixed until all tests passed.
38+
39+
## 4. Publishing to npm
40+
41+
Once the library was tested and ready, the following steps were taken to publish it to npm:
42+
43+
1. **Create an npm Account:** An npm account is required to publish packages. You can create one at [https://www.npmjs.com/signup](https://www.npmjs.com/signup).
44+
45+
2. **Log in to npm:** From the command line, you need to log in to your npm account:
46+
47+
```bash
48+
npm login
49+
```
50+
51+
You will be prompted to enter your npm username, password, and email address.
52+
53+
3. **Check Package Name Availability:** Before publishing, it's a good practice to check if the desired package name is available. This can be done by running:
54+
55+
```bash
56+
npm view <package-name>
57+
```
58+
59+
If the package exists, you will see information about it. If it doesn't, you will get a 404 error, which means the name is available.
60+
61+
4. **Publish the Package:** To publish the package, run the following command from the project's root directory:
62+
63+
```bash
64+
npm publish
65+
```
66+
67+
If the package name is scoped (e.g., `@username/package-name`), you need to use the `--access public` flag:
68+
69+
```bash
70+
npm publish --access public
71+
```
72+
73+
5. **Verify the Package:** After publishing, you can verify that the package is available on npm by visiting `https://www.npmjs.com/package/<your-package-name>`.
74+
75+
By following these steps, the `piml.js` library was successfully published to the npm registry.

rss.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,24 @@
99
<link>https://fezcode.com</link>
1010
</image>
1111
<generator>RSS for Node</generator>
12-
<lastBuildDate>Wed, 12 Nov 2025 23:05:13 GMT</lastBuildDate>
12+
<lastBuildDate>Thu, 13 Nov 2025 01:37:01 GMT</lastBuildDate>
1313
<atom:link href="https://fezcode.com/rss.xml" rel="self" type="application/rss+xml"/>
14-
<pubDate>Wed, 12 Nov 2025 23:05:13 GMT</pubDate>
14+
<pubDate>Thu, 13 Nov 2025 01:37:01 GMT</pubDate>
1515
<copyright><![CDATA[2025 Ahmed Samil Bulbul]]></copyright>
1616
<language><![CDATA[en]]></language>
1717
<managingEditor><![CDATA[samil.bulbul@gmail.com (Ahmed Samil Bulbul)]]></managingEditor>
1818
<webMaster><![CDATA[samil.bulbul@gmail.com (Ahmed Samil Bulbul)]]></webMaster>
1919
<ttl>60</ttl>
20+
<item>
21+
<title><![CDATA[Publishing to NPM]]></title>
22+
<description><![CDATA[[object Object]]]></description>
23+
<link>https://fezcode.com/#/blog/publish-to-npm</link>
24+
<guid isPermaLink="false">https://fezcode.com/#/blog/publish-to-npm</guid>
25+
<dc:creator><![CDATA[Ahmed Samil Bulbul]]></dc:creator>
26+
<pubDate>Thu, 13 Nov 2025 00:00:00 GMT</pubDate>
27+
<content:encoded><![CDATA[<h1>How to Publish a Node.js Library to npm</h1>
28+
<p><a href="https://fezcode.com/#/blog/publish-to-npm">Read more...</a></p>]]></content:encoded>
29+
</item>
2030
<item>
2131
<title><![CDATA[Parenthesis Intended Markup Language]]></title>
2232
<description><![CDATA[[object Object]]]></description>

static/css/main.41dc2c5c.css

Lines changed: 0 additions & 4 deletions
This file was deleted.

static/css/main.41dc2c5c.css.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

static/css/main.883922bf.css

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

static/css/main.883922bf.css.map

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)