Work Stuff (Mostly) Flashcards

1
Q

There’s a nice way to eject webpack.config.js from angular-cli

A

ng eject

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

downside to ejecting from Angular CLI app

A

build/start scripts in your package.json will be replaced with the new commands and instead of $ ng serve you would have to do something like $ npm run build & npm run start

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

why no visible webpack config

A

it was a design decision to not allow users to modify the Webpack configuration to reduce the learning curve

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

you can hack the config template in

A

angular-cli/addon/ng2/models

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

what does ng build –prod do differently

A

js files have numbers in the names?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

webpack with minification

A

webpack –optimize-minimize

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

api to add a new “company field group”

A

/vdev/company/contacts/field_group { “roomContactTypeId”: “string”, “displayName”: “string” }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

companyId is null (instead of ==)

A

uses the pattern matching feature of C# 7, which is available with is expressions and switch/case statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

to add a new field group . . .

A

POST /vdev/company/contacts/field_group

{ “roomContactTypeId”: “string”,

“displayName”: “string” }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

existing user table has one-to-one email address

A

changing to User->UserIdentity table (latter has id, email, pwd, failedpwdcount)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

security asked us to move toward BIGINT for user id

A

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Role table

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

The mockup for the new “Add Data Field” modal

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What the “Data Field Type” dropdown looks like when expanded

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

To get the available room contact types . . .

A

GET /vdev/meta/room_contact_types

{ “entities”: [{ “defaultTransactionSideId”: “string”, “defaultRoleId”: “string”, “id”: “string”, “name”: “string”, “displayOrder”: 0 }] }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

RoomContactType table

A
17
Q

Quickest way in Windows to remove all globally installed npm packages

A

C:\Users\username\AppData\Roaming\npm (remove contents); for good measure, then run “npm cache clear”