git-history-ui 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.dockerignore +19 -0
- package/Dockerfile +29 -0
- package/README.md +38 -237
- package/dist/backend/server.d.ts.map +1 -1
- package/dist/backend/server.js +11 -5
- package/dist/backend/server.js.map +1 -1
- package/dist/config/paths.d.ts +14 -0
- package/dist/config/paths.d.ts.map +1 -0
- package/dist/config/paths.js +35 -0
- package/dist/config/paths.js.map +1 -0
- package/frontend/package-lock.json +708 -2
- package/frontend/package.json +3 -0
- package/frontend/postcss.config.js +6 -0
- package/frontend/src/styles.css +4 -0
- package/frontend/tailwind.config.js +11 -0
- package/package.json +3 -1
- package/public/index.html +0 -1
- package/src/backend/server.ts +13 -5
package/.dockerignore
ADDED
package/Dockerfile
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Use Node.js 18 Alpine for smaller image size
|
|
2
|
+
FROM node:18-alpine
|
|
3
|
+
|
|
4
|
+
# Set working directory
|
|
5
|
+
WORKDIR /app
|
|
6
|
+
|
|
7
|
+
# Copy package files
|
|
8
|
+
COPY package*.json ./
|
|
9
|
+
COPY frontend/package*.json ./frontend/
|
|
10
|
+
|
|
11
|
+
# Install dependencies
|
|
12
|
+
RUN npm ci --only=production && \
|
|
13
|
+
cd frontend && npm ci --only=production && cd ..
|
|
14
|
+
|
|
15
|
+
# Copy source code
|
|
16
|
+
COPY . .
|
|
17
|
+
|
|
18
|
+
# Build the application
|
|
19
|
+
RUN npm run build:production
|
|
20
|
+
|
|
21
|
+
# Expose port
|
|
22
|
+
EXPOSE 3000
|
|
23
|
+
|
|
24
|
+
# Set environment variables
|
|
25
|
+
ENV NODE_ENV=production
|
|
26
|
+
ENV PORT=3000
|
|
27
|
+
|
|
28
|
+
# Start the application
|
|
29
|
+
CMD ["npm", "run", "start:production"]
|
package/README.md
CHANGED
|
@@ -1,57 +1,26 @@
|
|
|
1
1
|
# Git History UI
|
|
2
2
|
|
|
3
|
-
[](https://badge.fury.io/js/git-history-ui)
|
|
4
|
-
[](https://www.npmjs.com/package/git-history-ui)
|
|
5
|
-
[](https://www.npmjs.com/package/git-history-ui)
|
|
6
|
-
[](https://www.npmjs.com/package/git-history-ui)
|
|
7
|
-
[](https://github.com/ankit-sharma/git-history-ui)
|
|
8
|
-
[](https://github.com/ankit-sharma/git-history-ui/issues)
|
|
9
|
-
|
|
10
3
|
A beautiful, modern web UI for visualizing git history with interactive commit graphs, search, filtering, and diff visualization. Built with Angular and Node.js.
|
|
11
4
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## 📋 Requirements
|
|
15
|
-
|
|
16
|
-
- **Node.js**: 18.0.0 or higher
|
|
17
|
-
- **Angular**: 20.2.1
|
|
18
|
-
- **Git**: Any version (must be in a git repository)
|
|
19
|
-
|
|
20
|
-
## ✨ Features
|
|
21
|
-
|
|
22
|
-
- **🎨 Interactive Commit Graph** - Beautiful D3.js-powered visualizations with branch tracking and merge detection
|
|
23
|
-
- **🔍 Advanced Search & Filtering** - Search by author, date range, commit message, or specific files
|
|
24
|
-
- **📊 Dual View Modes** - Switch between graph view and list view
|
|
25
|
-
- **🎨 Color Palette System** - Choose from 6 light and 6 dark themes
|
|
26
|
-
- **🌙 Dark/Light Mode** - Toggle between themes with persistent preferences
|
|
27
|
-
- **📱 Responsive Design** - Works on desktop and mobile devices
|
|
28
|
-
- **⚡ Real-time Search** - Live filtering and search results
|
|
29
|
-
- **🔧 Modern Tech Stack** - Angular 20 frontend with Node.js backend
|
|
30
|
-
|
|
31
|
-
## 🚀 Quick Start (1 Step!)
|
|
5
|
+
## 🚀 Quick Start
|
|
32
6
|
|
|
33
|
-
### Prerequisites
|
|
34
|
-
- **Node.js 18.0.0+** - [Download here](https://nodejs.org/)
|
|
35
|
-
- **Git repository** - Must be in a git repository
|
|
36
|
-
|
|
37
|
-
### Step 1: Run the Application
|
|
38
7
|
```bash
|
|
39
8
|
# Run directly with npx (no installation needed)
|
|
40
9
|
npx git-history-ui
|
|
41
10
|
```
|
|
42
11
|
|
|
43
|
-
That's it!
|
|
44
|
-
- Start the backend server on port 3000
|
|
45
|
-
- Start the frontend server on port 4200
|
|
46
|
-
- Open your browser to `http://localhost:4200`
|
|
12
|
+
That's it! The application will start on `http://localhost:3000` and open your browser automatically.
|
|
47
13
|
|
|
48
|
-
##
|
|
14
|
+
## ✨ Features
|
|
49
15
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
16
|
+
- **🎨 Interactive Commit Graph** - D3.js-powered visualizations with branch tracking
|
|
17
|
+
- **🔍 Advanced Search & Filtering** - Search by author, date, commit message, or files
|
|
18
|
+
- **📊 Dual View Modes** - Switch between graph view and list view
|
|
19
|
+
- **🎨 Color Palette System** - 6 light and 6 dark themes
|
|
20
|
+
- **🌙 Dark/Light Mode** - Toggle between themes
|
|
21
|
+
- **📱 Responsive Design** - Works on desktop and mobile
|
|
22
|
+
|
|
23
|
+
## 📖 Usage
|
|
55
24
|
|
|
56
25
|
### CLI Options
|
|
57
26
|
```bash
|
|
@@ -74,231 +43,63 @@ npx git-history-ui --no-open
|
|
|
74
43
|
npx git-history-ui --help
|
|
75
44
|
```
|
|
76
45
|
|
|
77
|
-
|
|
78
|
-
```bash
|
|
79
|
-
# Use in specific directory
|
|
80
|
-
cd /path/to/your/repo
|
|
81
|
-
npx git-history-ui
|
|
82
|
-
|
|
83
|
-
# Use with environment variables
|
|
84
|
-
PORT=8080 npx git-history-ui
|
|
85
|
-
|
|
86
|
-
# Use with different host
|
|
87
|
-
HOST=0.0.0.0 npx git-history-ui
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
## 🎯 Key Features Explained
|
|
91
|
-
|
|
92
|
-
### 📊 Graph View
|
|
93
|
-
- **Interactive Commit Graph**: Click any commit node to view details
|
|
94
|
-
- **Branch Visualization**: Different colors for different branches
|
|
95
|
-
- **Merge Detection**: Purple nodes indicate merge commits
|
|
96
|
-
- **Force-Directed Layout**: Automatic positioning for optimal viewing
|
|
97
|
-
|
|
98
|
-
### 📋 List View
|
|
99
|
-
- **Organized Commit List**: Clean, readable commit information
|
|
100
|
-
- **File Change Summary**: See how many files were changed
|
|
101
|
-
- **Author & Date Info**: Quick access to commit metadata
|
|
102
|
-
- **Search Integration**: Real-time filtering as you type
|
|
103
|
-
|
|
104
|
-
### 🔍 Search & Filtering
|
|
105
|
-
- **Real-time Search**: Search across commit messages, authors, and hashes
|
|
106
|
-
- **Date Range Filter**: Use the date picker to filter by specific dates
|
|
107
|
-
- **Author Filter**: Dropdown to filter by specific authors
|
|
108
|
-
- **File Filter**: Search for commits that touched specific files
|
|
109
|
-
|
|
110
|
-
### 🎨 Theme System
|
|
111
|
-
- **6 Light Themes**: Default, Ocean, Forest, Sunset, Monochrome, Neon
|
|
112
|
-
- **6 Dark Themes**: Matching dark versions of all themes
|
|
113
|
-
- **Persistent Preferences**: Your theme choice is saved automatically
|
|
114
|
-
- **Dark Mode Toggle**: Quick switch between light and dark modes
|
|
115
|
-
|
|
116
|
-
## 🛠️ Development Setup
|
|
117
|
-
|
|
118
|
-
### Prerequisites
|
|
119
|
-
- **Node.js 18.0.0+** - [Download here](https://nodejs.org/)
|
|
120
|
-
- **Git repository** - Must be in a git repository
|
|
121
|
-
|
|
122
|
-
### Project Structure
|
|
123
|
-
```
|
|
124
|
-
git-history-ui/
|
|
125
|
-
├── frontend/ # Angular 20 application
|
|
126
|
-
│ ├── src/app/
|
|
127
|
-
│ │ ├── components/ # UI components
|
|
128
|
-
│ │ │ ├── commit-graph/ # D3.js graph visualization
|
|
129
|
-
│ │ │ ├── commit-list/ # List view component
|
|
130
|
-
│ │ │ ├── commit-detail/ # Commit details modal
|
|
131
|
-
│ │ │ └── color-palette-selector/ # Theme selector
|
|
132
|
-
│ │ ├── services/ # Angular services
|
|
133
|
-
│ │ └── models/ # TypeScript interfaces
|
|
134
|
-
│ └── angular.json # Angular configuration
|
|
135
|
-
├── src/backend/ # Node.js backend
|
|
136
|
-
│ ├── server.ts # Express server
|
|
137
|
-
│ └── gitService.ts # Git operations
|
|
138
|
-
├── package.json # Dependencies and scripts
|
|
139
|
-
└── README.md # This file
|
|
140
|
-
```
|
|
141
|
-
|
|
142
|
-
## 🎯 Use Cases & Examples
|
|
143
|
-
|
|
144
|
-
### Code Review Workflow
|
|
145
|
-
```bash
|
|
146
|
-
# 1. Start the application
|
|
147
|
-
npx git-history-ui
|
|
148
|
-
|
|
149
|
-
# 2. Open http://localhost:4200
|
|
150
|
-
|
|
151
|
-
# 3. Use the search bar to find specific commits
|
|
152
|
-
# Example: Search for "bug fix" or "feature"
|
|
153
|
-
|
|
154
|
-
# 4. Filter by date to review recent changes
|
|
155
|
-
# Use the date picker to select "Last week"
|
|
156
|
-
|
|
157
|
-
# 5. Switch to graph view to see branch structure
|
|
158
|
-
# Click "Graph View" button
|
|
159
|
-
|
|
160
|
-
# 6. Click any commit to see detailed changes
|
|
161
|
-
# View file diffs and commit information
|
|
162
|
-
```
|
|
163
|
-
|
|
164
|
-
### Release Planning
|
|
165
|
-
```bash
|
|
166
|
-
# 1. Filter commits since last release
|
|
167
|
-
# Use date picker to select release date
|
|
168
|
-
|
|
169
|
-
# 2. Review all changes in list view
|
|
170
|
-
# See commit messages and file changes
|
|
46
|
+
## 🏭 Production
|
|
171
47
|
|
|
172
|
-
|
|
173
|
-
# Identify feature branches and merges
|
|
174
|
-
|
|
175
|
-
# 4. Copy commit information for release notes
|
|
176
|
-
# Manually copy relevant commit details
|
|
177
|
-
```
|
|
178
|
-
|
|
179
|
-
### Bug Investigation
|
|
48
|
+
### Build for Production
|
|
180
49
|
```bash
|
|
181
|
-
#
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
# 2. Filter by author if you know who made changes
|
|
185
|
-
# Select author from dropdown
|
|
186
|
-
|
|
187
|
-
# 3. Use date range to narrow down timeframe
|
|
188
|
-
# Select date range around when bug appeared
|
|
50
|
+
# Build both backend and frontend
|
|
51
|
+
npm run build:production
|
|
189
52
|
|
|
190
|
-
#
|
|
191
|
-
|
|
53
|
+
# Start production server
|
|
54
|
+
npm run start:production
|
|
192
55
|
```
|
|
193
56
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
### Environment Variables
|
|
57
|
+
### Docker
|
|
197
58
|
```bash
|
|
198
|
-
#
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
# Custom host (default: localhost)
|
|
202
|
-
HOST=0.0.0.0 npm run dev
|
|
59
|
+
# Build and run with Docker
|
|
60
|
+
docker build -t git-history-ui .
|
|
61
|
+
docker run -p 3000:3000 git-history-ui
|
|
203
62
|
```
|
|
204
63
|
|
|
205
|
-
|
|
206
|
-
- **Light Themes**: Default, Ocean, Forest, Sunset, Monochrome, Neon
|
|
207
|
-
- **Dark Themes**: Matching dark versions of all themes
|
|
208
|
-
- **Auto-save**: Your theme preference is automatically saved
|
|
209
|
-
- **System Integration**: Respects system dark mode preference
|
|
210
|
-
|
|
211
|
-
### Browser Compatibility
|
|
212
|
-
- **Chrome/Edge**: Full support with all features
|
|
213
|
-
- **Firefox**: Full support with all features
|
|
214
|
-
- **Safari**: Full support with all features
|
|
215
|
-
- **Mobile**: Basic responsive design support
|
|
64
|
+
## 🛠️ Development
|
|
216
65
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
### For Contributors
|
|
66
|
+
### Setup
|
|
220
67
|
```bash
|
|
221
|
-
# Clone
|
|
68
|
+
# Clone and install
|
|
222
69
|
git clone https://github.com/ankit-sharma/git-history-ui.git
|
|
223
70
|
cd git-history-ui
|
|
224
|
-
|
|
225
|
-
# Install dependencies
|
|
226
71
|
npm install
|
|
227
72
|
|
|
228
73
|
# Start development servers
|
|
229
74
|
npm run dev
|
|
230
|
-
|
|
231
|
-
# Build for production
|
|
232
|
-
npm run build
|
|
233
75
|
```
|
|
234
76
|
|
|
235
|
-
###
|
|
77
|
+
### Testing
|
|
236
78
|
```bash
|
|
237
|
-
#
|
|
238
|
-
|
|
79
|
+
# Run backend tests
|
|
80
|
+
npm test
|
|
239
81
|
|
|
240
|
-
# Run
|
|
241
|
-
|
|
82
|
+
# Run frontend tests
|
|
83
|
+
cd frontend && npm test
|
|
242
84
|
```
|
|
243
85
|
|
|
244
|
-
##
|
|
245
|
-
|
|
246
|
-
We welcome contributions! Here's how to get started:
|
|
247
|
-
|
|
248
|
-
### Development Setup
|
|
249
|
-
```bash
|
|
250
|
-
# 1. Fork and clone the repository
|
|
251
|
-
git clone https://github.com/ankit-sharma/git-history-ui.git
|
|
252
|
-
cd git-history-ui
|
|
253
|
-
|
|
254
|
-
# 2. Install dependencies
|
|
255
|
-
npm install
|
|
86
|
+
## 📋 Requirements
|
|
256
87
|
|
|
257
|
-
|
|
258
|
-
|
|
88
|
+
- **Node.js**: 18.0.0 or higher
|
|
89
|
+
- **Git**: Any version (must be in a git repository)
|
|
259
90
|
|
|
260
|
-
|
|
261
|
-
# 5. Test your changes
|
|
262
|
-
# 6. Submit a pull request
|
|
263
|
-
```
|
|
91
|
+
## 🤝 Contributing
|
|
264
92
|
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
- **Testing**: Add unit tests, integration tests
|
|
93
|
+
1. Fork the repository
|
|
94
|
+
2. Create a feature branch
|
|
95
|
+
3. Make your changes
|
|
96
|
+
4. Run tests
|
|
97
|
+
5. Submit a pull request
|
|
271
98
|
|
|
272
99
|
## 📄 License
|
|
273
100
|
|
|
274
101
|
MIT License - see [LICENSE](LICENSE) file for details
|
|
275
102
|
|
|
276
|
-
## 🙏 Acknowledgments
|
|
277
|
-
|
|
278
|
-
- **[D3.js](https://d3js.org/)** - Beautiful data visualizations
|
|
279
|
-
- **[Angular](https://angular.io/)** - Modern frontend framework
|
|
280
|
-
- **[simple-git](https://github.com/steveukx/git-js)** - Git operations
|
|
281
|
-
- **[Express](https://expressjs.com/)** - Backend server framework
|
|
282
|
-
|
|
283
|
-
## 🐛 Issues & Support
|
|
284
|
-
|
|
285
|
-
- **🐛 Bug Reports**: Please include steps to reproduce and browser information
|
|
286
|
-
- **💡 Feature Requests**: Describe the use case and expected behavior
|
|
287
|
-
- **❓ Questions**: Open a discussion for general questions
|
|
288
|
-
|
|
289
|
-
## 📊 Project Status
|
|
290
|
-
|
|
291
|
-
- ✅ **Core Features**: Complete
|
|
292
|
-
- ✅ **Dark Mode**: Complete
|
|
293
|
-
- ✅ **Theme System**: Complete
|
|
294
|
-
- ✅ **Search & Filtering**: Complete
|
|
295
|
-
- ✅ **Commit Graph Visualization**: Complete
|
|
296
|
-
- ✅ **Diff Viewer**: Complete
|
|
297
|
-
- 🚧 **Performance Optimization**: In Progress
|
|
298
|
-
- 📋 **Export Features**: Planned
|
|
299
|
-
- 📋 **Blame Visualization**: Backend ready, UI pending
|
|
300
|
-
- 📋 **npm Package**: Ready for publishing
|
|
301
|
-
|
|
302
103
|
---
|
|
303
104
|
|
|
304
105
|
Made with ❤️ for developers who love beautiful git visualizations
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/backend/server.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,WAAW,CAC/B,IAAI,GAAE,MAAa,EACnB,IAAI,GAAE,MAAoB,EAC1B,OAAO,GAAE,OAAO,CAAC,aAAa,CAAM,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/backend/server.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,aAAa;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,WAAW,CAC/B,IAAI,GAAE,MAAa,EACnB,IAAI,GAAE,MAAoB,EAC1B,OAAO,GAAE,OAAO,CAAC,aAAa,CAAM,iBAyHrC"}
|
package/dist/backend/server.js
CHANGED
|
@@ -13,15 +13,21 @@ const gitService_1 = require("./gitService");
|
|
|
13
13
|
async function startServer(port = 3000, host = 'localhost', options = {}) {
|
|
14
14
|
const app = (0, express_1.default)();
|
|
15
15
|
const server = (0, http_1.createServer)(app);
|
|
16
|
+
// CORS configuration
|
|
17
|
+
const corsOptions = {
|
|
18
|
+
origin: process.env.NODE_ENV === 'production'
|
|
19
|
+
? ['http://localhost:4200', 'http://localhost:3000', 'http://127.0.0.1:4200', 'http://127.0.0.1:3000']
|
|
20
|
+
: true,
|
|
21
|
+
credentials: true,
|
|
22
|
+
methods: ['GET', 'POST', 'PUT', 'DELETE', 'OPTIONS'],
|
|
23
|
+
allowedHeaders: ['Content-Type', 'Authorization', 'X-Requested-With']
|
|
24
|
+
};
|
|
16
25
|
const io = new socket_io_1.Server(server, {
|
|
17
|
-
cors:
|
|
18
|
-
origin: "*",
|
|
19
|
-
methods: ["GET", "POST"]
|
|
20
|
-
}
|
|
26
|
+
cors: corsOptions
|
|
21
27
|
});
|
|
22
28
|
const gitService = new gitService_1.GitService();
|
|
23
29
|
// Middleware
|
|
24
|
-
app.use((0, cors_1.default)());
|
|
30
|
+
app.use((0, cors_1.default)(corsOptions));
|
|
25
31
|
app.use(express_1.default.json());
|
|
26
32
|
// Serve Angular build files
|
|
27
33
|
app.use(express_1.default.static(path_1.default.join(__dirname, '../../frontend/dist/frontend/browser')));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.js","sourceRoot":"","sources":["../../src/backend/server.ts"],"names":[],"mappings":";;;;;AAeA,
|
|
1
|
+
{"version":3,"file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CAAC,IAAI,CAAC,SAAS,EAAE,iDAAiD,CAAC,CAAC,CAAC;IACxF,CAAC,CAAC,CAAC;IAEH,kCAAkC;IAClC,EAAE,CAAC,EAAE,CAAC,YAAY,EAAE,CAAC,MAAM,EAAE,EAAE;QAC7B,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;QAEhC,MAAM,CAAC,EAAE,CAAC,YAAY,EAAE,GAAG,EAAE;YAC3B,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,IAAI,OAAO,CAAO,CAAC,OAAO,EAAE,EAAE;QACnC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE;YAC7B,OAAO,CAAC,GAAG,CAAC,4BAA4B,IAAI,IAAI,IAAI,EAAE,CAAC,CAAC;YACxD,OAAO,EAAE,CAAC;QACZ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface PathConfig {
|
|
2
|
+
publicPath: string;
|
|
3
|
+
frontendPath: string;
|
|
4
|
+
frontendIndexPath: string;
|
|
5
|
+
distPath: string;
|
|
6
|
+
srcPath: string;
|
|
7
|
+
}
|
|
8
|
+
export declare function getPathConfig(): PathConfig;
|
|
9
|
+
export declare function getTailwindPaths(): string[];
|
|
10
|
+
export declare function getBuildPaths(): {
|
|
11
|
+
input: string;
|
|
12
|
+
output: string;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../src/config/paths.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,UAAU;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,aAAa,IAAI,UAAU,CAU1C;AAED,wBAAgB,gBAAgB,IAAI,MAAM,EAAE,CAQ3C;AAED,wBAAgB,aAAa,IAAI;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAOjE"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getPathConfig = getPathConfig;
|
|
7
|
+
exports.getTailwindPaths = getTailwindPaths;
|
|
8
|
+
exports.getBuildPaths = getBuildPaths;
|
|
9
|
+
const path_1 = __importDefault(require("path"));
|
|
10
|
+
function getPathConfig() {
|
|
11
|
+
const cwd = process.cwd();
|
|
12
|
+
return {
|
|
13
|
+
publicPath: process.env.PUBLIC_PATH || path_1.default.join(cwd, 'public'),
|
|
14
|
+
frontendPath: process.env.FRONTEND_PATH || path_1.default.join(cwd, 'frontend', 'dist', 'frontend', 'browser'),
|
|
15
|
+
frontendIndexPath: process.env.FRONTEND_INDEX_PATH || path_1.default.join(cwd, 'frontend', 'dist', 'frontend', 'browser', 'index.html'),
|
|
16
|
+
distPath: process.env.DIST_PATH || path_1.default.join(cwd, 'dist'),
|
|
17
|
+
srcPath: process.env.SRC_PATH || path_1.default.join(cwd, 'src')
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
function getTailwindPaths() {
|
|
21
|
+
const cwd = process.cwd();
|
|
22
|
+
return [
|
|
23
|
+
process.env.TAILWIND_PUBLIC_PATH || path_1.default.join(cwd, 'public', '**', '*.{html,js}'),
|
|
24
|
+
process.env.TAILWIND_SRC_PATH || path_1.default.join(cwd, 'src', '**', '*.{html,ts,js}'),
|
|
25
|
+
process.env.TAILWIND_FRONTEND_PATH || path_1.default.join(cwd, 'frontend', 'src', '**', '*.{html,ts,js}')
|
|
26
|
+
];
|
|
27
|
+
}
|
|
28
|
+
function getBuildPaths() {
|
|
29
|
+
const cwd = process.cwd();
|
|
30
|
+
return {
|
|
31
|
+
input: process.env.BUILD_INPUT_PATH || path_1.default.join(cwd, 'public', 'styles.css'),
|
|
32
|
+
output: process.env.BUILD_OUTPUT_PATH || path_1.default.join(cwd, 'public', 'tailwind.css')
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=paths.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paths.js","sourceRoot":"","sources":["../../src/config/paths.ts"],"names":[],"mappings":";;;;;AAUA,sCAUC;AAED,4CAQC;AAED,sCAOC;AAvCD,gDAAwB;AAUxB,SAAgB,aAAa;IAC3B,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;IAE1B,OAAO;QACL,UAAU,EAAE,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,QAAQ,CAAC;QAC/D,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,CAAC;QACpG,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,mBAAmB,IAAI,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC;QAC7H,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC;QACzD,OAAO,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,cAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,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