|
1 |
| -This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app). |
| 1 | +# Source Map Online Parser |
| 2 | + |
| 3 | +<div align="center"> |
| 4 | + <img src="design/logo.svg" alt="Source Map Online Parser Logo" width="200"/> |
| 5 | + <br/> |
| 6 | + <p><em>Online JavaScript Source Map parser, supporting single file parsing and error stack parsing</em></p> |
| 7 | +</div> |
| 8 | + |
| 9 | +## Features |
| 10 | + |
| 11 | +- 🔍 **Source Map Parsing**: Parse and analyze JavaScript source maps online |
| 12 | +- 📝 **Error Stack Parsing**: Convert minified error stacks to original source locations |
| 13 | +- 🎯 **Single File Support**: Parse individual source map files |
| 14 | +- 🌙 **Dark Mode**: Support for both light and dark themes |
| 15 | +- 📱 **Responsive Design**: Works seamlessly on desktop and mobile devices |
| 16 | +- 🚀 **Fast & Efficient**: Built with Next.js and optimized for performance |
2 | 17 |
|
3 | 18 | ## Getting Started
|
4 | 19 |
|
5 |
| -First, run the development server: |
| 20 | +### Prerequisites |
| 21 | + |
| 22 | +- Node.js >= 22.15.0 |
| 23 | +- pnpm >= 10.11.0 |
| 24 | + |
| 25 | +### Installation |
| 26 | + |
| 27 | +1. Clone the repository: |
| 28 | +```bash |
| 29 | +git clone https://github.com/whale4113/sourcemap-online |
| 30 | +cd sourcemap-online |
| 31 | +``` |
| 32 | + |
| 33 | +2. Install dependencies: |
| 34 | +```bash |
| 35 | +pnpm install |
| 36 | +``` |
6 | 37 |
|
| 38 | +3. Start the development server: |
7 | 39 | ```bash
|
8 |
| -npm run dev |
9 |
| -# or |
10 |
| -yarn dev |
11 |
| -# or |
12 | 40 | pnpm dev
|
13 |
| -# or |
14 |
| -bun dev |
15 | 41 | ```
|
16 | 42 |
|
17 |
| -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
| 43 | +4. Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. |
| 44 | + |
| 45 | +## Development |
| 46 | + |
| 47 | +### Project Structure |
| 48 | + |
| 49 | +``` |
| 50 | +sourcemap-online/ |
| 51 | +├── app/ # Next.js app directory |
| 52 | +├── components/ # React components |
| 53 | +├── lib/ # Utility functions and shared logic |
| 54 | +├── public/ # Static assets |
| 55 | +└── styles/ # Global styles |
| 56 | +``` |
| 57 | + |
| 58 | +### Available Scripts |
| 59 | + |
| 60 | +- `pnpm dev` - Start development server |
| 61 | +- `pnpm build` - Build for production |
| 62 | +- `pnpm start` - Start production server |
| 63 | +- `pnpm lint` - Run ESLint |
| 64 | + |
| 65 | +### Tech Stack |
| 66 | + |
| 67 | +- [Next.js](https://nextjs.org/) - React framework |
| 68 | +- [TypeScript](https://www.typescriptlang.org/) - Type safety |
| 69 | +- [Tailwind CSS](https://tailwindcss.com/) - Styling |
| 70 | +- [Zustand](https://github.com/pmndrs/zustand) - State management |
| 71 | +- [source-map-js](https://github.com/7rulnik/source-map-js) - Source map parsing |
| 72 | + |
| 73 | +## Contributing |
18 | 74 |
|
19 |
| -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. |
| 75 | +We welcome contributions! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change. |
20 | 76 |
|
21 |
| -This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel. |
| 77 | +### How to Contribute |
22 | 78 |
|
23 |
| -## Learn More |
| 79 | +1. Fork the repository |
| 80 | +2. Create your feature branch (`git checkout -b feature/amazing-feature`) |
| 81 | +3. Commit your changes (`git commit -m 'Add some amazing feature'`) |
| 82 | +4. Push to the branch (`git push origin feature/amazing-feature`) |
| 83 | +5. Open a Pull Request |
24 | 84 |
|
25 |
| -To learn more about Next.js, take a look at the following resources: |
| 85 | +### Development Guidelines |
26 | 86 |
|
27 |
| -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. |
28 |
| -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. |
| 87 | +- Follow the existing code style |
| 88 | +- Write meaningful commit messages |
| 89 | +- Add tests for new features |
| 90 | +- Update documentation as needed |
29 | 91 |
|
30 |
| -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome! |
| 92 | +## License |
31 | 93 |
|
32 |
| -## Deploy on Vercel |
| 94 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
33 | 95 |
|
34 |
| -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. |
| 96 | +## Acknowledgments |
35 | 97 |
|
36 |
| -Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details. |
| 98 | +- [Next.js](https://nextjs.org/) for the amazing framework |
| 99 | +- [source-map-js](https://github.com/7rulnik/source-map-js) for the source map parsing library |
| 100 | +- All contributors who have helped shape this project |
0 commit comments