-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
28 changed files
with
1,674 additions
and
378 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ | ||
"repo": "wayofdev/next-starter-tpl" | ||
} | ||
], | ||
"privatePackages": { | ||
"version": true, | ||
"tag": true | ||
}, | ||
"commit": true, | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "master", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
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,46 @@ | ||
# All node_modules directories | ||
node_modules/ | ||
# All secrets | ||
**/.env | ||
**/.env.local | ||
**/.env.*.local | ||
# local env files | ||
# By default all git files | ||
.git/ | ||
.gitignore | ||
.gitattributes | ||
.github/ | ||
|
||
# Tools caches | ||
.cache/* | ||
tsconfig.tsbuildinfo | ||
.eslintcache | ||
|
||
# Used when building with nextjs (next-eslint) | ||
!.eslintrc.base.json | ||
!.prettierignore | ||
!.prettierrc.js | ||
!.eslintignore | ||
|
||
# npm | ||
!.npmrc | ||
|
||
# Docker related | ||
.dockerignore | ||
Dockerfile | ||
docker-compose.*.yml | ||
docker-compose.yml | ||
docker/ | ||
|
||
# Log files | ||
logs/ | ||
*.log | ||
.turbo/ | ||
**/.turbo/ | ||
|
||
# Temp files | ||
tmp/ | ||
*.tmp | ||
|
||
# IDE related | ||
.idea/ |
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 |
---|---|---|
|
@@ -27,9 +27,12 @@ NEXT_SENTRY_TRACING=false | |
NEXT_SENTRY_UPLOAD_DRY_RUN=true | ||
|
||
SENTRY_DSN=https://[email protected]/0 | ||
|
||
SENTRY_URL=https://sentry.io/ | ||
SENTRY_ORG=wayofdev | ||
SENTRY_PROJECT=next-starter-tpl | ||
SENTRY_AUTH_TOKEN= | ||
|
||
SENTRY_LOG_LEVEL=debug | ||
|
||
# Development variables | ||
|
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 @@ | ||
tasks: | ||
- init: pnpm install | ||
command: pnpm run dev |
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,6 @@ | ||
# npm-check-updates configuration used by yarn deps:check && yarn deps:update | ||
# convenience scripts. | ||
# @link https://github.com/raineorshine/npm-check-updates | ||
|
||
# Add here exclusions on packages if any | ||
reject: [ ] |
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 +1,2 @@ | ||
strict-peer-dependencies=false | ||
engine-strict=true |
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,4 +1,6 @@ | ||
dist/ | ||
.next/ | ||
**/dist/** | ||
**/.next/** | ||
**/build/** | ||
**/tmp/** | ||
pnpm-lock.yaml | ||
.changeset/*.md |
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
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,29 +1,28 @@ | ||
{ | ||
"name": "docs", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev --port 3001", | ||
"build": "next build", | ||
"start": "next start", | ||
"lint": "next lint" | ||
"dev": "next dev --port 3001", | ||
"lint": "next lint", | ||
"start": "next start" | ||
}, | ||
"dependencies": { | ||
"@wayofdev/ui": "workspace:*", | ||
"next": "^13.1.1", | ||
"nextra": "^2.0.2", | ||
"nextra-theme-docs": "^2.0.2", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"@wayofdev/ui": "workspace:*", | ||
"nextra": "^2.0.1", | ||
"nextra-theme-docs": "^2.0.1" | ||
"react-dom": "^18.2.0" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^18.11.18", | ||
"@types/react": "^18.0.26", | ||
"@types/react-dom": "^18.0.10", | ||
"@wayofdev/browserslist-config": "^1.1.0", | ||
"@wayofdev/eslint-config-custom": "workspace:*", | ||
"eslint": "^8.30.0", | ||
"eslint-config-custom": "workspace:*", | ||
"tsconfig-config": "workspace:*", | ||
"typescript": "^4.9.4" | ||
} | ||
} |
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,24 @@ | ||
{ | ||
"extends": "tsconfig-config/next.json", | ||
"exclude": ["node_modules", "dist", "coverage"], | ||
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], | ||
"$schema": "https://json.schemastore.org/tsconfig", | ||
"extends": "../../tsconfig.base.json", | ||
"exclude": [ | ||
"node_modules", | ||
"dist", | ||
"coverage" | ||
], | ||
"include": [ | ||
"next-env.d.ts", | ||
"**/*.ts", | ||
"**/*.tsx" | ||
], | ||
"compilerOptions": { | ||
"lib": [ | ||
"dom", | ||
"dom.iterable", | ||
"esnext" | ||
], | ||
"outDir": "dist", | ||
"baseUrl": "./", | ||
// "paths": { | ||
// "@/*": [ | ||
// "src/*" | ||
// ] | ||
// } | ||
"moduleResolution": "node" | ||
"module": "esnext" | ||
} | ||
} |
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,46 +1,46 @@ | ||
{ | ||
"name": "web", | ||
"version": "0.0.0", | ||
"version": "1.0.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "next dev", | ||
"build": "next build", | ||
"start": "next start", | ||
"analyze": "BUNDLE_ANALYZE=both next build", | ||
"lint": "next lint" | ||
"build": "next build", | ||
"dev": "next dev", | ||
"lint": "eslint . --ext .ts,.tsx,.js,.jsx,.cjs,.mjs,.mdx --cache --cache-location ../../.cache/eslint/nextjs-app.eslintcache", | ||
"start": "next start" | ||
}, | ||
"dependencies": { | ||
"@wayofdev/ui": "workspace:*", | ||
"next": "^13.1.0", | ||
"next": "^13.1.1", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"tailwindcss": "^3.2.4" | ||
}, | ||
"devDependencies": { | ||
"@next/bundle-analyzer": "13.1.1", | ||
"@sentry/nextjs": "^7.28.1", | ||
"@sentry/react": "^7.28.1", | ||
"@types/jest": "^29.2.4", | ||
"jest": "^29.3.1", | ||
"jest-config": "workspace:*", | ||
"@types/node": "^18.11.17", | ||
"@types/node": "^18.11.18", | ||
"@types/react": "^18.0.26", | ||
"@types/react-dom": "^18.0.9", | ||
"@types/react-dom": "^18.0.10", | ||
"@wayofdev/browserslist-config": "^1.1.0", | ||
"postcss-100vh-fix": "^1.0.2", | ||
"postcss": "^8.4.20", | ||
"sanitize.css": "^13.0.0", | ||
"eslint": "^8.30.0", | ||
"eslint-config-custom": "workspace:*", | ||
"tsconfig-config": "workspace:*", | ||
"typescript": "^4.9.4", | ||
"@wayofdev/eslint-config-custom": "workspace:*", | ||
"autoprefixer": "^10.4.13", | ||
"browserslist": "^4.21.4", | ||
"eslint": "^8.30.0", | ||
"eslint-config-next": "^13.1.1", | ||
"jest": "^29.3.1", | ||
"@wayofdev/jest-config": "workspace:*", | ||
"picocolors": "1.0.0", | ||
"postcss": "^8.4.20", | ||
"postcss-100vh-fix": "^1.0.2", | ||
"postcss-cli": "^10.1.0", | ||
"postcss-flexbugs-fixes": "^5.0.2", | ||
"postcss-normalize": "^10.0.1", | ||
"postcss-preset-env": "^7.8.3", | ||
"postcss-reporter": "^7.0.5", | ||
"browserslist": "^4.21.4", | ||
"@sentry/nextjs": "^7.28.1", | ||
"@sentry/react": "^7.28.1", | ||
"picocolors": "1.0.0" | ||
"sanitize.css": "^13.0.0", | ||
"typescript": "^4.9.4" | ||
} | ||
} |
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,43 @@ | ||
/** | ||
* Convenience script to harmonize cache directories across various | ||
* tooling such as eslint and jest. | ||
* | ||
* Recently more & more tools like babel-loader tend to cache in | ||
* node_modules/.cache (@link https://github.com/avajs/find-cache-dir) | ||
* It's possible too. | ||
*/ | ||
// @ts-check | ||
'use strict'; | ||
|
||
const { resolve } = require('path'); | ||
|
||
const globalCachePath = resolve(`${__dirname}/.cache`); | ||
|
||
/** | ||
* @param {string} packageName | ||
* @returns string | ||
*/ | ||
function sanitize(packageName) { | ||
return packageName.replace('/', '.').replace(/[^a-z0-9.@_-]+/gi, '-'); | ||
} | ||
|
||
/** | ||
* @param {string} packageName | ||
* @returns string | ||
*/ | ||
function getEslintCachePath(packageName) { | ||
return `${globalCachePath}/${sanitize(packageName)}/eslint`; | ||
} | ||
|
||
/** | ||
* @param {string} packageName | ||
* @returns string | ||
*/ | ||
function getJestCachePath(packageName) { | ||
return `${globalCachePath}/${sanitize(packageName)}/jest`; | ||
} | ||
|
||
module.exports = { | ||
getJestCachePath, | ||
getEslintCachePath, | ||
}; |
Oops, something went wrong.