unoffical wafrn mirror wafrn.net
atproto social-network activitypub
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: development.wafrn environment

+52 -26
+1
package.json
··· 14 14 "frontend:serve": "cd packages/frontend && ng serve", 15 15 "frontend:develop": "cd packages/frontend && ng serve --configuration development", 16 16 "frontend:develop:prod": "cd packages/frontend && ng serve --configuration devprod", 17 + "frontend:develop:development": "cd packages/frontend && ng serve --configuration devdevelopment", 17 18 "frontend:build": "cd packages/frontend && ng build", 18 19 "frontend:deploy": "cd packages/frontend && ng build && rm -rf ../../frontend && mv dist/wafrn/browser ../../frontend", 19 20 "frontend:test": "cd packages/frontend && jest",
+22 -25
packages/frontend/angular.json
··· 2 2 "$schema": "./node_modules/@angular/cli/lib/config/schema.json", 3 3 "cli": { 4 4 "analytics": "2ed75e61-714f-4d01-bf90-aa49cf351d90", 5 - "schematicCollections": [ 6 - "@angular-eslint/schematics" 7 - ] 5 + "schematicCollections": ["@angular-eslint/schematics"] 8 6 }, 9 7 "version": 1, 10 8 "newProjectRoot": "projects", ··· 30 28 "base": "dist/wafrn" 31 29 }, 32 30 "index": "src/index.html", 33 - "polyfills": [ 34 - "src/polyfills.ts" 35 - ], 31 + "polyfills": ["src/polyfills.ts"], 36 32 "tsConfig": "tsconfig.app.json", 37 33 "inlineStyleLanguage": "scss", 38 34 "allowedCommonJsDependencies": [], 39 - "assets": [ 40 - "src/favicon.ico", 41 - "src/assets", 42 - "src/.htaccess", 43 - "src/manifest.webmanifest", 44 - "src/robots.txt" 45 - ], 46 - "styles": [ 47 - "../../node_modules/primeflex/primeflex.css", 48 - "src/styles.scss" 49 - ], 35 + "assets": ["src/favicon.ico", "src/assets", "src/.htaccess", "src/manifest.webmanifest", "src/robots.txt"], 36 + "styles": ["../../node_modules/primeflex/primeflex.css", "src/styles.scss"], 50 37 "scripts": [], 51 38 "serviceWorker": "ngsw-config.json", 52 39 "browser": "src/main.ts" ··· 151 138 "with": "src/environments/environment.devprod.ts" 152 139 } 153 140 ] 141 + }, 142 + "devdevelopment": { 143 + "optimization": false, 144 + "extractLicenses": false, 145 + "sourceMap": true, 146 + "namedChunks": true, 147 + "fileReplacements": [ 148 + { 149 + "replace": "src/environments/environment.ts", 150 + "with": "src/environments/environment.devdevelopment.ts" 151 + } 152 + ] 154 153 } 155 154 }, 156 155 "defaultConfiguration": "production" ··· 172 171 "devprod": { 173 172 "buildTarget": "wafrn:build:devprod", 174 173 "proxyConfig": "src/proxy.conf.prod.json" 174 + }, 175 + "devdevelopment": { 176 + "buildTarget": "wafrn:build:devdevelopment", 177 + "proxyConfig": "src/proxy.conf.prod.json" 175 178 } 176 179 }, 177 180 "defaultConfiguration": "development" ··· 186 189 "builder": "@angular-devkit/build-angular:jest", 187 190 "options": { 188 191 "tsConfig": "tsconfig.spec.json", 189 - "polyfills": [ 190 - "zone.js", 191 - "zone.js/testing" 192 - ] 192 + "polyfills": ["zone.js", "zone.js/testing"] 193 193 } 194 194 }, 195 195 "lint": { 196 196 "builder": "@angular-eslint/builder:lint", 197 197 "options": { 198 - "lintFilePatterns": [ 199 - "src/**/*.ts", 200 - "src/**/*.html" 201 - ] 198 + "lintFilePatterns": ["src/**/*.ts", "src/**/*.html"] 202 199 } 203 200 } 204 201 }
+28
packages/frontend/src/environments/environment.devdevelopment.ts
··· 1 + // This file can be replaced during build by using the `fileReplacements` array. 2 + // `ng build` replaces `environment.ts` with `environment.prod.ts`. 3 + // The list of file replacements can be found in `angular.json`. 4 + // 5 + // 6 + // This is for development options TODO: add jsdocs. 7 + export const environment = { 8 + production: false, 9 + maxUploadSize: '250', 10 + logo: '/assets/logo.png', 11 + baseUrl: 'https://development.wafrn.net/api', 12 + baseMediaUrl: 'https://development.wafrn.net/api/uploads', 13 + externalCacheurl: 'https://development.wafrn.net/api/cache?media=', 14 + frontUrl: 'http://localhost:4200', 15 + shortenPosts: 3, 16 + reviewRegistrations: true, 17 + disablePWA: false, 18 + maintenance: false 19 + } 20 + 21 + /* 22 + * For easier debugging in development mode, you can import the following file 23 + * to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`. 24 + * 25 + * This import should be commented out in production mode because it will have a negative impact 26 + * on performance if an error is thrown. 27 + */ 28 + import 'zone.js/plugins/zone-error' // Included with Angular CLI.
+1 -1
shell.nix
··· 4 4 5 5 pkgs.mkShell { 6 6 buildInputs = with pkgs; [ nodejs_24 jq ]; 7 - shellHook = "echo \"Use \"npm run frontend:develop:prod\" to start the development server\""; 7 + shellHook = "echo \"Use \"npm run frontend:develop:prod\" to start the development server, make sure to clear your cache if you run a switch servers!\""; 8 8 }