Skip to content

Commit a575403

Browse files
authored
Merge pull request #6 from react18-tools/examples
fix lite and scope
2 parents e00c10c + cdd30f3 commit a575403

File tree

24 files changed

+341
-54
lines changed

24 files changed

+341
-54
lines changed

.tkb

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,32 +24,39 @@
2424
"-FlzW8htLo-6jz5-ZqjEx": {
2525
"id": "-FlzW8htLo-6jz5-ZqjEx",
2626
"description": "update examples to showcase edge cases",
27-
"columnId": "column-todo"
27+
"columnId": "column-doing"
2828
},
29-
"5fLtFF1sHPxsPjq-wWOxv": {
30-
"id": "5fLtFF1sHPxsPjq-wWOxv",
31-
"description": "Fix turbo-repo template bug - replacing only first doc link in readme --- look at the [doc] with [TypeDoc]",
29+
"p1R-Q4atxMo-29mSa7mb6": {
30+
"id": "p1R-Q4atxMo-29mSa7mb6",
31+
"description": "Remove scoped packages from turborepo-template",
3232
"columnId": "column-todo"
33+
},
34+
"a7ksr41sN7kQNaH8Io-dV": {
35+
"id": "a7ksr41sN7kQNaH8Io-dV",
36+
"description": "Add support for css modules",
37+
"columnId": "column-done"
3338
}
3439
},
3540
"columns": [
3641
{
3742
"id": "column-todo",
3843
"title": "To do",
3944
"tasksIds": [
40-
"-FlzW8htLo-6jz5-ZqjEx",
41-
"5fLtFF1sHPxsPjq-wWOxv"
45+
"p1R-Q4atxMo-29mSa7mb6"
4246
]
4347
},
4448
{
4549
"id": "column-doing",
4650
"title": "Doing",
47-
"tasksIds": []
51+
"tasksIds": [
52+
"-FlzW8htLo-6jz5-ZqjEx"
53+
]
4854
},
4955
{
5056
"id": "column-done",
5157
"title": "Done",
5258
"tasksIds": [
59+
"a7ksr41sN7kQNaH8Io-dV",
5360
"RtA7NBfPOlfnVHqk54rMD",
5461
"fqhes_YS14GQopOUs7K-7",
5562
"task-ZJpp-dpxx3KxRMsAPNuMC",

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Nextjs-Themes-Ultralight
22

3-
[![test](https://github.com/react18-tools/nextjs-themes-ultralight/actions/workflows/test.yml/badge.svg)](https://github.com/react18-tools/nthul/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/85f6447e649201924a2c/maintainability)](https://codeclimate.com/github/react18-tools/nextjs-themes-ultralight/maintainability) [![codecov](https://codecov.io/gh/react18-tools/nextjs-themes-ultralight/graph/badge.svg)](https://codecov.io/gh/react18-tools/nextjs-themes-ultralight) [![Version](https://img.shields.io/npm/v/nthul.svg?colorB=green)](https://www.npmjs.com/package/nthul) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/dt/nthul.svg)](https://www.npmjs.com/package/nthul) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/nthul) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)
3+
[![test](https://github.com/react18-tools/nextjs-themes-ultralight/actions/workflows/test.yml/badge.svg)](https://github.com/react18-tools/nextjs-themes-ultralight/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/85f6447e649201924a2c/maintainability)](https://codeclimate.com/github/react18-tools/nextjs-themes-ultralight/maintainability) [![codecov](https://codecov.io/gh/react18-tools/nextjs-themes-ultralight/graph/badge.svg)](https://codecov.io/gh/react18-tools/nextjs-themes-ultralight) [![Version](https://img.shields.io/npm/v/nthul.svg?colorB=green)](https://www.npmjs.com/package/nthul) [![Downloads](https://img.jsdelivr.com/img.shields.io/npm/dt/nthul.svg)](https://www.npmjs.com/package/nthul) ![npm bundle size](https://img.shields.io/bundlephobia/minzip/nthul) [![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/from-referrer/)
44

55
🤟 👉 [Unleash the Power of React Server Components](https://medium.com/javascript-in-plain-english/unleash-the-power-of-react-server-components-eb3fe7201231)
66

examples/nextjs/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# nextjs-example
22

3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- Updated dependencies [bb06c15]
9+
10+
11+
312
## 0.0.1
413

514
### Patch Changes

examples/nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nextjs-example",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

examples/vite/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# vite-example
22

3+
## 0.0.2
4+
5+
### Patch Changes
6+
7+
- Updated dependencies
8+
- Updated dependencies [bb06c15]
9+
10+
11+
312
## 0.0.1
413

514
### Patch Changes

examples/vite/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vite-example",
33
"private": true,
4-
"version": "0.0.1",
4+
"version": "0.0.2",
55
"type": "module",
66
"scripts": {
77
"dev": "vite --port 3001",

lib/nthul/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# @mayank1513/fork-me
22

3+
## 0.1.0
4+
5+
### Minor Changes
6+
7+
- Add `nth-scoped` class to increase CSS specificity when applying themes only to specific container.
8+
- bb06c15: Support CSS Modules for scoped theming.
9+
310
## 0.0.1
411

512
### Patch Changes

lib/nthul/lite.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ const owner = process.env.OWNER;
1818
readMe = readMe.replace(new RegExp(`$${owner}/${ref}`, "g"), tmp);
1919
readMe = readMe.replace(new RegExp(ref, "g"), packageJson.name);
2020
readMe = readMe.replace(new RegExp(tmp, "g"), `$${owner}/${ref}`);
21-
readMe = readMe.replace(/## Want Lite Version.*> You need r18gs as a peer-dependency/m, "");
21+
readMe = readMe.replace(/## Want Lite Version(.|\n|\r)*You need r18gs as a peer-dependency/m, "");
2222
fs.writeFileSync(readMePath, readMe);

lib/nthul/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "nthul",
33
"author": "Mayank Kumar Chaudhari <https://mayank-chaudhari.vercel.app>",
44
"private": false,
5-
"version": "0.0.1",
5+
"version": "0.1.0",
66
"description": "Unleash the Power of React Server Components! Use multiple themes on your site with confidence, without losing any advantages of React Server Components.",
77
"main": "./index.ts",
88
"types": "./index.ts",

lib/nthul/scope.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ const fs = require("node:fs");
55
const path = require("node:path");
66

77
const owner = "mayank1513";
8-
const packageJson = require(path.resolve(process.cwd(), "package.json"));
8+
const pkgPath = path.resolve(__dirname, "dist", "package.json");
9+
const packageJson = require(pkgPath);
910
const ref = packageJson.name;
1011
if (!ref.startsWith(`@${owner}`)) {
1112
packageJson.name = `@${owner}/${packageJson.name}`;
12-
fs.writeFileSync(path.resolve(process.cwd(), "package.json"), JSON.stringify(packageJson, null, 2));
13-
const readMePath = path.resolve(process.cwd(), "README.md");
13+
fs.writeFileSync(pkgPath, JSON.stringify(packageJson, null, 2));
14+
const readMePath = path.resolve(__dirname, "dist", "README.md");
1415
let readMe = fs.readFileSync(readMePath, { encoding: "utf8" });
1516
const tmp = "!--|--!";
1617
readMe = readMe.replace(new RegExp(`$${owner}/${ref}`, "g"), tmp);

0 commit comments

Comments
 (0)