Welcome to Next.js!
Get started by editing{" "}
pages/index.js
Repository: thomaswang/next-chrome
Branch: main
Commit: 4a24e2362007
Files: 11
Total size: 6.6 KB
Directory structure:
gitextract_avat6x_9/
├── .gitignore
├── README.md
├── extension/
│ ├── manifest.json
│ └── manifest.v2.json
└── next-app/
├── .eslintrc.json
├── .gitignore
├── package.json
├── pages/
│ ├── _app.js
│ └── index.js
└── styles/
├── Home.module.css
└── globals.css
================================================
FILE CONTENTS
================================================
================================================
FILE: .gitignore
================================================
# Numerous always-ignore extensions
*.diff
*.err
*.log
*.orig
*.rej
*.swo
*.swp
*.vi
*.zip
*~
*.sass-cache
*.ruby-version
*.rbenv-version
# OS or Editor folders
._*
.cache
.DS_Store
.idea
.project
.settings
.tmproj
*.esproj
*.sublime-project
*.sublime-workspace
nbproject
Thumbs.db
.fseventsd
.DocumentRevisions*
.TemporaryItems
.Trashes
# Other paths to ignore
.awcache
bower_components
node_modules
package-lock.json
dist
================================================
FILE: README.md
================================================
`next-chrome` is a [Next.js](https://nextjs.org/) starter project to bootstrap a new Chrome extension.
[Helpful Tips for Starting a Next.js Chrome Extension | CSS-Tricks](https://css-tricks.com/nextjs-chrome-extension-starter/)
```sh
cd next-app
yarn # run once
yarn build # on macOS
yarn build:linux # on Linux
```

================================================
FILE: extension/manifest.json
================================================
{
"name": "Next Chrome",
"description": "Next.js Chrome Extension starter",
"version": "0.0.1",
"manifest_version": 3,
"action": {
"default_title": "Next.js app",
"default_popup": "index.html"
}
}
================================================
FILE: extension/manifest.v2.json
================================================
{
"name": "Next Chrome",
"description": "Next.js Chrome Extension starter",
"version": "0.0.1",
"manifest_version": 2,
"browser_action": {
"default_title": "Next.js app",
"default_popup": "index.html"
}
}
================================================
FILE: next-app/.eslintrc.json
================================================
{
"extends": "next/core-web-vitals"
}
================================================
FILE: next-app/.gitignore
================================================
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
# dependencies
/node_modules
/.pnp
.pnp.js
# testing
/coverage
# next.js
/.next/
/out/
# production
/build
# misc
.DS_Store
*.pem
# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
# vercel
.vercel
================================================
FILE: next-app/package.json
================================================
{
"name": "next-app",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build && next export && mv out/_next out/next && sed -i '' -e 's/\\/_next/\\.\\/next/g' out/**.html && mv out/index.html ../extension && rsync -va --delete-after out/next/ ../extension/next/ && rm -rf out && rsync -va --delete-after public/next-assets ../extension/",
"build:linux": "next build && next export && mv out/_next out/next && sed -i 's/\\/_next/\\.\\/next/g' out/**.html && mv out/index.html ../extension && rsync -va --delete-after out/next/ ../extension/next/ && rm -rf out && rsync -va --delete-after public/next-assets ../extension/",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"next": "latest",
"react": "latest",
"react-dom": "latest"
},
"devDependencies": {
"eslint": "latest",
"eslint-config-next": "latest"
}
}
================================================
FILE: next-app/pages/_app.js
================================================
import '../styles/globals.css'
function MyApp({ Component, pageProps }) {
return
Get started by editing{" "}
pages/index.js