Skip to content

Commit 869ede2

Browse files
author
William Troup
authored
Merge pull request #14 from williamtroup/2.0.0
2.0.0
2 parents 5b5b50f + 3b1006d commit 869ede2

40 files changed

+6009
-2317
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
/.vscode
33
.DS_Store
44
*.nupkg
5-
/.idea
5+
/.idea
6+
/build
7+
/node_modules

.npmignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/.github
2+
/.vscode
3+
/test
4+
/build
5+
CODE_OF_CONDUCT.md
6+
CONTRIBUTING.md
7+
jhson.js.nuspec
8+
PACK.sh
9+
PUBLISH.sh
10+
README_NUGET.md
11+
SECURITY.md
12+
SERVE.sh
13+
package-lock.json
14+
tsconfig.json
15+
tsup.build.config.ts
16+
tsup.build.esm.config.ts
17+
tsup.build.min.config.ts
18+
BUILD_INSTRUCTIONS.md
19+
*.nupkg

BUILD_INSTRUCTIONS.md

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# Building JHson.js
2+
3+
Before getting started with JHson.js, please read through the following instructions:
4+
5+
6+
## Step 1: Install Packages:
7+
8+
Install the packages using the following NPM commands:
9+
10+
### 1. Install TypeScript:
11+
12+
```markdown
13+
npm install -g typescript
14+
```
15+
16+
### 2. Install tsup:
17+
18+
```markdown
19+
npm i tsup -D
20+
```
21+
22+
### 3. Install terser:
23+
24+
```markdown
25+
npm install terser -D
26+
```
27+
28+
### 4. Install swc/core (if ES5 is required):
29+
30+
```markdown
31+
npm install @swc/core -D
32+
```
33+
34+
35+
## Step 2: Build Project:
36+
37+
### 1. Full Build:
38+
39+
To build the TypeScript, run the following command:
40+
41+
```markdown
42+
npm run build-typescript
43+
```
44+
45+
To build the SASS, run the following command:
46+
47+
```markdown
48+
npm run build-sass
49+
```
50+
51+
To build the everything, run the following command:
52+
53+
```markdown
54+
npm run build
55+
```
56+
57+
### 2. Minimized Build:
58+
59+
To build the TypeScript, run the following command:
60+
61+
```markdown
62+
npm run build-minimized-typescript
63+
```
64+
65+
To build the SASS, run the following command:
66+
67+
```markdown
68+
npm run build-minimized-sass
69+
```
70+
71+
To build the everything, run the following command:
72+
73+
```markdown
74+
npm run build-minimized
75+
```
76+
77+
### 3. ESM Build:
78+
79+
To build the TypeScript, run the following command:
80+
81+
```markdown
82+
npm run build-typescript-esm
83+
```

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,23 @@
22
JHson.js
33

44
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=JHson.js%2C%20a%20free%20JavaScript%json%20converter&url=https://github.com/williamtroup/JHson.js&hashtags=javascript,json,html,converter)
5-
[![npm](https://img.shields.io/badge/npmjs-v1.2.2-blue)](https://www.npmjs.com/package/jhson.js)
6-
[![nuget](https://img.shields.io/badge/nuget-v1.2.2-purple)](https://www.nuget.org/packages/JHson.js/)
5+
[![npm](https://img.shields.io/badge/npmjs-v2.0.0-blue)](https://www.npmjs.com/package/jhson.js)
6+
[![nuget](https://img.shields.io/badge/nuget-v2.0.0-purple)](https://www.nuget.org/packages/JHson.js/)
77
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/JHson.js/blob/main/LICENSE.txt)
88
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/JHson.js/discussions)
99
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://william-troup.com/)
1010
</h1>
1111

1212
> <p align="center">📃 A JavaScript library for converting between HTML and JSON, with binding, templating, attributes, and CSS support.</p>
13-
> <p align="center">v1.2.2</p>
13+
> <p align="center">v2.0.0</p>
1414
<br />
1515
<br />
1616
1717

1818
<h1>What features does JHson.js have?</h1>
1919

2020
- Zero-dependencies and extremely lightweight!
21-
- Exportable for use in other frameworks!
21+
- Written in TypeScript, allowing greater support for React, Angular, and other libraries!
2222
- Full API available via public functions.
2323
- Full support for Attributes, CSS style properties, and formatted text!
2424
- Write your JSON directly to any DOM element for rendering.
@@ -55,8 +55,8 @@ npm install jhson.js
5555
You can also use the following CDN links:
5656

5757
```markdown
58-
https://cdn.jsdelivr.net/gh/williamtroup/JHson.js@1.2.2/dist/jhson.min.js
59-
https://cdn.jsdelivr.net/gh/williamtroup/JHson.js@1.2.2/dist/jhson.export.js
58+
https://cdn.jsdelivr.net/gh/williamtroup/JHson.js@2.0.0/dist/jhson.min.js
59+
https://cdn.jsdelivr.net/gh/williamtroup/JHson.js@2.0.0/dist/jhson.export.js
6060
```
6161
<br>
6262
<br>

README_NUGET.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# JHson.js v1.2.2
1+
# JHson.js v2.0.0
22

33
[![Tweet](https://img.shields.io/twitter/url/http/shields.io.svg?style=social)](https://twitter.com/intent/tweet?text=JHson.js%2C%20a%20free%20JavaScript%json%20converter&url=https://github.com/williamtroup/JHson.js&hashtags=javascript,json,html,converter)
4-
[![npm](https://img.shields.io/badge/npmjs-v1.2.2-blue)](https://www.npmjs.com/package/jhson.js)
5-
[![nuget](https://img.shields.io/badge/nuget-v1.2.2-purple)](https://www.nuget.org/packages/JHson.js/)
4+
[![npm](https://img.shields.io/badge/npmjs-v2.0.0-blue)](https://www.npmjs.com/package/jhson.js)
5+
[![nuget](https://img.shields.io/badge/nuget-v2.0.0-purple)](https://www.nuget.org/packages/JHson.js/)
66
[![license](https://img.shields.io/badge/license-MIT-green)](https://github.com/williamtroup/JHson.js/blob/main/LICENSE.txt)
77
[![discussions Welcome](https://img.shields.io/badge/discussions-Welcome-red)](https://github.com/williamtroup/JHson.js/discussions)
88
[![coded by William Troup](https://img.shields.io/badge/coded_by-William_Troup-yellow)](https://william-troup.com/)
@@ -13,7 +13,7 @@
1313
## What features does JHson.js have?
1414

1515
- Zero-dependencies and extremely lightweight!
16-
- Exportable for use in other frameworks!
16+
- Written in TypeScript, allowing greater support for React, Angular, and other libraries!
1717
- Full API available via public functions.
1818
- Full support for Attributes, CSS style properties, and formatted text!
1919
- Write your JSON directly to any DOM element for rendering.
@@ -44,8 +44,8 @@ npm install jhson.js
4444
You can also use the following CDN links:
4545

4646
```markdown
47-
https://cdn.jsdelivr.net/gh/williamtroup/JHson.js@1.2.2/dist/jhson.min.js
48-
https://cdn.jsdelivr.net/gh/williamtroup/JHson.js@1.2.2/dist/jhson.export.js
47+
https://cdn.jsdelivr.net/gh/williamtroup/JHson.js@2.0.0/dist/jhson.min.js
48+
https://cdn.jsdelivr.net/gh/williamtroup/JHson.js@2.0.0/dist/jhson.export.js
4949
```
5050

5151

dist/jhson.d.mts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
export { }

dist/jhson.d.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
2+
export { }

0 commit comments

Comments
 (0)