- Added public/style.css to .gitignore - Removed style.css from git tracking (git rm --cached) - Enhanced package.json scripts for better CSS workflow: - postinstall: Auto-builds CSS on npm install - build-css:dev: Development build with source maps - start: Now builds CSS before starting server - dev: Builds CSS before development mode - Updated README with CSS development documentation - Explains SCSS organization and build process - Documents all CSS-related npm scripts Benefits: ✅ Cleaner repository (no generated files) ✅ Prevents merge conflicts in generated CSS ✅ Automatic CSS generation on new machine setup ✅ Source of truth is SCSS files only ✅ Consistent build process across environments
44 lines
1.3 KiB
JSON
44 lines
1.3 KiB
JSON
{
|
|
"name": "great-lakes-ice-report",
|
|
"version": "1.0.0",
|
|
"description": "Great Lakes Ice Report - Community-driven winter road conditions tracker for Michigan",
|
|
"main": "server.js",
|
|
"scripts": {
|
|
"start": "npm run build && node server.js",
|
|
"dev": "npm run build-css && nodemon server.js",
|
|
"build-css": "sass src/scss/main.scss public/style.css --style=compressed",
|
|
"build-css:dev": "sass src/scss/main.scss public/style.css --style=expanded --source-map",
|
|
"watch-css": "sass src/scss/main.scss public/style.css --watch --style=expanded --source-map",
|
|
"dev-with-css": "concurrently \"npm run watch-css\" \"npm run dev\"",
|
|
"build": "npm run build-css",
|
|
"test": "jest --runInBand --forceExit",
|
|
"test:coverage": "jest --coverage",
|
|
"postinstall": "npm run build-css"
|
|
},
|
|
"dependencies": {
|
|
"cors": "^2.8.5",
|
|
"dotenv": "^17.0.1",
|
|
"express": "^4.18.2",
|
|
"node-cron": "^3.0.3",
|
|
"sqlite3": "^5.1.6"
|
|
},
|
|
"devDependencies": {
|
|
"concurrently": "^9.2.0",
|
|
"jest": "^29.7.0",
|
|
"nodemon": "^3.0.1",
|
|
"sass": "^1.89.2",
|
|
"supertest": "^6.3.4"
|
|
},
|
|
"keywords": [
|
|
"ice",
|
|
"winter",
|
|
"road conditions",
|
|
"michigan",
|
|
"great lakes",
|
|
"weather",
|
|
"tracking",
|
|
"map"
|
|
],
|
|
"author": "Your Name",
|
|
"license": "MIT"
|
|
}
|