This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import authInterceptor from './auth.interceptor' | |
import template from '../layout/app-view.html'; | |
function AppConfig($httpProvider, $stateProvider, $locationProvider, $urlRouterProvider) { | |
'ngInject'; | |
$httpProvider.interceptors.push(authInterceptor); | |
/* | |
If you don't want hashbang routing, uncomment this line. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"build": { | |
"builder": "@nrwl/web:build", | |
"options": { | |
"outputPath": "dist/apps/realworld", | |
"index": "apps/realworld/src/index.html", | |
"main": "apps/realworld/src/main.ts", | |
"polyfills": "apps/realworld/src/polyfills.ts", | |
"tsConfig": "apps/realworld/tsconfig.app.json", | |
"assets": [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const path = require('path'); | |
module.exports = (config, context) => { | |
return { | |
...config, | |
module: { | |
strictExportPresence: true, | |
rules: [ | |
{ | |
test: /\.html$/, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
"build": { | |
"builder": "@nrwl/workspace:run-commands", | |
"options": { | |
"commands": [ | |
{ | |
"command": "npx gulp --gulpfile apps/realworld/gulpfile.js build" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var gulp = require('gulp'); | |
var notify = require('gulp-notify'); | |
var source = require('vinyl-source-stream'); | |
var browserify = require('browserify'); | |
var babelify = require('babelify'); | |
var ngAnnotate = require('browserify-ngannotate'); | |
var browserSync = require('browser-sync').create(); | |
var rename = require('gulp-rename'); | |
var templateCache = require('gulp-angular-templatecache'); | |
var uglify = require('gulp-uglify'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# libs/data-access/src/lib/graphql/operations.graphql | |
query setList { | |
allSets{ | |
id | |
name | |
numParts | |
year | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npx create-nx-workspace@latest nx-apollo-angular-example | |
? What to create in the new workspace angular-nest [a workspace with a | |
full stack application (Angular + Nest)] | |
? Application name nx-apollo | |
? Default stylesheet format CSS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apps/api/src/app/schema.graphql | |
type Set { | |
id: Int! | |
name: String | |
year: Int | |
numParts: Int | |
} | |
type Query { |
NewerOlder