-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #405 from swiiny/feature/stylex
Feature/stylex
- Loading branch information
Showing
161 changed files
with
3,668 additions
and
36,640 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
create-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Semantic Release | ||
uses: cycjimmy/semantic-release-action@v4 | ||
id: semantic | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: '18' | ||
|
||
- name: Install dependencies | ||
run: npm install @octokit/rest | ||
|
||
- name: Rename release | ||
run: node scripts/rename_release.js | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,5 @@ yarn-error.log* | |
|
||
# typescript | ||
*.tsbuildinfo | ||
|
||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"branches": ["main", { "name": "develop", "prerelease": true }], | ||
"plugins": [ | ||
[ | ||
"@semantic-release/commit-analyzer", | ||
{ | ||
"preset": "angular", | ||
"releaseRules": [ | ||
{ "type": "feat", "section": "Features", "release": "minor" }, | ||
{ "type": "fix", "section": "Bug Fixes", "release": "patch" }, | ||
{ "type": "chore", "section": "Maintenance", "release": "patch" }, | ||
{ "type": "docs", "release": "patch" }, | ||
{ "type": "style", "release": "patch" }, | ||
{ "type": "refactor", "section": "♻️ Refactor", "release": "patch" }, | ||
{ "type": "perf", "release": "patch" }, | ||
{ "type": "test", "hidden": true, "release": "patch" } | ||
], | ||
"parserOpts": { | ||
"noteKeywords": ["BREAKING CHANGE", "BREAKING CHANGES"] | ||
} | ||
} | ||
], | ||
"@semantic-release/release-notes-generator", | ||
"@semantic-release/changelog", | ||
"@semantic-release/npm", | ||
"@semantic-release/git", | ||
"@semantic-release/github" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# [1.6.0-develop.1](https://github.com/swiiny/create-nextjs-dapp/compare/v1.5.3...v1.6.0-develop.1) (2024-01-01) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* fix portal component ts issue ([aae5c5d](https://github.com/swiiny/create-nextjs-dapp/commit/aae5c5d40eab00da041b63eafa6cd9b6c1a54926)) | ||
* fix portal component ts issue ([3c2dfe5](https://github.com/swiiny/create-nextjs-dapp/commit/3c2dfe57c1be86433bcd6a8715ec79f7ce80f269)) | ||
* fix releaserc file location ([4561ee2](https://github.com/swiiny/create-nextjs-dapp/commit/4561ee2802f5e1ec04cf86e408f48ce56755f271)) | ||
* set package as private to avoid semantic-release auto deploy to npm ([864b830](https://github.com/swiiny/create-nextjs-dapp/commit/864b8305aae19cbd806451205675865c12894df9)) | ||
|
||
|
||
### Features | ||
|
||
* add husky & add release automation ([fd23338](https://github.com/swiiny/create-nextjs-dapp/commit/fd233380a6d0428d5ae0e7a6fe24f4a701d64f88)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import React, { FC } from 'react'; | ||
import Head from 'next/head'; | ||
import { IMeta } from './Meta.type'; | ||
|
||
// used to add title, description and other meta tags to the page | ||
const Meta: FC<IMeta> = ({ title, description, children }) => ( | ||
<Head> | ||
<title>{title}</title> | ||
<meta property='og:title' content={title} key='title' /> | ||
<meta name='description' content={description} /> | ||
<meta property='og:title' content={title} key='title' /> | ||
<meta property='og:description' content={description} /> | ||
<meta property='og:image' content='https://create-nextjs-d.app/thumbnail.png' /> | ||
<meta name='language' content='English' /> | ||
<meta name='robots' content='index, follow' /> | ||
<meta name='keywords' content={`Create-Nextjs-Dapp`} /> | ||
|
||
<meta name='twitter:card' content='summary' /> | ||
<meta name='twitter:site' content='@Swiiny_' /> | ||
<meta name='twitter:creator ' content='@Swiiny_' /> | ||
<meta name='twitter:title' content={title} /> | ||
<meta name='twitter:description' content={description} /> | ||
<meta name='twitter:image' content='https://create-nextjs-d.app/thumbnail.png' /> | ||
<meta name='twitter:image:alt' content='Create Nextjs Dapp twitter card' /> | ||
|
||
{children} | ||
</Head> | ||
); | ||
|
||
export { Meta }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
interface IMeta { | ||
title: string; | ||
description?: string; | ||
children?: React.ReactNode; | ||
} | ||
|
||
export type { IMeta }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Meta as default } from './Meta'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { FC, PropsWithChildren, useEffect, useRef, useState } from 'react'; | ||
import { createPortal } from 'react-dom'; | ||
import { IPortal } from './Portal.type'; | ||
|
||
// client only portal | ||
const Portal: FC<PropsWithChildren<IPortal>> = ({ children, selector }) => { | ||
const ref = useRef<any | undefined>(); | ||
const [mounted, setMounted] = useState<boolean>(false); | ||
|
||
useEffect(() => { | ||
ref.current = document.querySelector(selector); | ||
setMounted(true); | ||
}, [selector]); | ||
|
||
return mounted ? createPortal(children, ref.current) : null; | ||
}; | ||
|
||
export { Portal }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
interface IPortal { | ||
selector: string; | ||
} | ||
|
||
export type { IPortal }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Portal as default } from './Portal'; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,30 @@ | ||
{ | ||
"name": "create-nextjs-dapp", | ||
"version": "1.5.3", | ||
"private": false, | ||
"version": "1.6.0-develop.1", | ||
"private": true, | ||
"type": "module", | ||
"scripts": { | ||
"dev": "npm run dev:styled-components", | ||
"dev:mui": "cd ./packages/mui && npm run dev", | ||
"dev:base": "cd ./packages/base && npm run dev", | ||
"dev:tailwind": "cd ./packages/tailwind && npm run dev", | ||
"dev:stylex": "cd ./packages/stylex && npm run dev", | ||
"dev:sc": "npm run dev:styled-components", | ||
"dev:styled-components": "cd ./packages/styled-components && npm run dev", | ||
"build": "node scripts/build.js" | ||
"build": "node scripts/share_files.js && node scripts/build.js", | ||
"share-files": "node scripts/share_files.js", | ||
"new-template": "node scripts/new_template.js", | ||
"husky": "husky install" | ||
}, | ||
"dependencies": { | ||
"chalk": "^5.3.0" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^17.8.1", | ||
"@commitlint/config-conventional": "^17.8.0", | ||
"@semantic-release/changelog": "^6.0.3", | ||
"@semantic-release/github": "^9.2.6", | ||
"husky": "^8.0.3", | ||
"semantic-release": "^22.0.12" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
import { ReactNode } from 'react'; | ||
|
||
interface IPortal { | ||
children: ReactNode; | ||
selector: string; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,11 +57,6 @@ | |
} | ||
|
||
.link { | ||
position: relative; | ||
|
||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
right: 0; | ||
bottom: 0; | ||
inset: 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.