Skip to content
This repository has been archived by the owner on Jun 10, 2019. It is now read-only.

Commit

Permalink
Nx, NgRx, RxJS, much more
Browse files Browse the repository at this point in the history
Greatly modernize the example:

Switch from Lerna to Nx, which has off-the-shelf support for some of the things made to work with considerable effort under Lerna.

Upgrade Angular and CLI.

Revamp state code to follow current NgRx patterns (although some remains the old way).

Rename to enterprise-example.

Remove I from interface names, This idea had some very early popularity but has fallen by the wayside.

Stop using rxjs/add/blah, take advantage of new pipeable operators.

Compodoc.

Combine old separate servers into one server, to enable easy demo deployment.
  • Loading branch information
Kyle Cordes committed Mar 5, 2018
1 parent b027a0c commit 5912789
Show file tree
Hide file tree
Showing 309 changed files with 7,027 additions and 28,224 deletions.
203 changes: 203 additions & 0 deletions .angular-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,203 @@
{
"$schema": "./node_modules/@nrwl/schematics/src/schema.json",
"project": {
"name": "enterprise-example",
"npmScope": "enterprise-example",
"latestMigration": "20180227-cleanup-scripts"
},
"e2e": {
"protractor": {
"config": "./protractor.conf.js"
}
},
"lint": [
{
"project": "./tsconfig.spec.json",
"exclude": "**/node_modules/**"
},
{
"project": "apps/admin/src/tsconfig.app.json",
"exclude": "**/node_modules/**"
},
{
"project": "apps/admin/e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
},
{
"project": "apps/agent/src/tsconfig.app.json",
"exclude": "**/node_modules/**"
},
{
"project": "apps/agent/e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
},
{
"project": "apps/portal/src/tsconfig.app.json",
"exclude": "**/node_modules/**"
},
{
"project": "apps/portal/e2e/tsconfig.e2e.json",
"exclude": "**/node_modules/**"
}
],
"test": {
"karma": {
"config": "./karma.conf.js"
}
},
"apps": [
{
"name": "admin",
"root": "apps/admin/src",
"outDir": "dist/apps/admin",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "../../../test.js",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "../../../tsconfig.spec.json",
"prefix": "app",
"styles": [
"../../../node_modules/materialize-css/dist/css/materialize.css",
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
},
{
"name": "agent",
"root": "apps/agent/src",
"outDir": "dist/apps/agent",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "../../../test.js",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "../../../tsconfig.spec.json",
"prefix": "app",
"styles": [
"../../../node_modules/materialize-css/dist/css/materialize.css",
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
},
{
"name": "portal",
"root": "apps/portal/src",
"outDir": "dist/apps/portal",
"assets": [
"assets",
"favicon.ico"
],
"index": "index.html",
"main": "main.ts",
"polyfills": "polyfills.ts",
"test": "../../../test.js",
"tsconfig": "tsconfig.app.json",
"testTsconfig": "../../../tsconfig.spec.json",
"prefix": "app",
"styles": [
"../../../node_modules/materialize-css/dist/css/materialize.css",
"styles.css"
],
"scripts": [],
"environmentSource": "environments/environment.ts",
"environments": {
"dev": "environments/environment.ts",
"prod": "environments/environment.prod.ts"
}
},
{
"name": "age-range",
"root": "libs/age-range/src",
"test": "../../../test.js",
"appRoot": ""
},
{
"name": "app-schema",
"root": "libs/app-schema/src",
"test": "../../../test.js",
"appRoot": ""
},
{
"name": "employee-api",
"root": "libs/employee-api/src",
"test": "../../../test.js",
"appRoot": ""
},
{
"name": "employee-display",
"root": "libs/employee-display/src",
"test": "../../../test.js",
"appRoot": ""
},
{
"name": "employee-list",
"root": "libs/employee-list/src",
"test": "../../../test.js",
"appRoot": ""
},
{
"name": "employee-management",
"root": "libs/employee-management/src",
"test": "../../../test.js",
"appRoot": ""
},
{
"name": "employee-search",
"root": "libs/employee-search/src",
"test": "../../../test.js",
"appRoot": ""
},
{
"name": "fruit-basket",
"root": "libs/fruit-basket/src",
"test": "../../../test.js",
"appRoot": ""
},
{
"name": "retry-loader",
"root": "libs/retry-loader/src",
"test": "../../../test.js",
"appRoot": ""
},
{
"name": "video-stat-dashboard",
"root": "libs/video-stat-dashboard/src",
"test": "../../../test.js",
"appRoot": ""
},
{
"name": "$workspaceRoot",
"root": ".",
"appRoot": ""
}
],
"defaults": {
"schematics": {
"collection": "@nrwl/schematics"
},
"styleExt": "css",
"component": {}
},
"warnings": {
"typescriptMismatch": false
}
}
File renamed without changes.
46 changes: 44 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,46 @@
node_modules
todo
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

# System Files
.DS_Store
Thumbs.db

NOTES.md
*.log
documentation
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "7"
- "8"
env:
- CXX=g++-4.8
addons:
Expand Down
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"typescript.tsdk": "./node_modules/typescript/lib",
"editor.detectIndentation": false,
"editor.tabSize": 2,
"vsicons.presets.angular": false
}
"vsicons.presets.angular": true
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2017 Oasis Digital Solutions Inc.
Copyright (c) 2017 Kyle Cordes

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading

0 comments on commit 5912789

Please sign in to comment.