Vue.js Flashcards

1
Q

Vue

A

A progressive framework for building user interfaces, that is designed to be incrementally adoptable.
Vue is a non-opinionated interface and can be easily integrated into other libraries and frameworks.

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

Progressive framework

A

Implementing by extending HTML with new tags or attributes

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

Single Page Application

A

Serves a single HTML page and all other “pages” in the site are generated using DOM manipulation of the original HTML with new data retrieved from web API using JavaScript.

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

Parts of a Vue Project Folders

A
  1. node_modules
  2. public
  3. src
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Parts of a Vue Project - Non-Folders

A
  1. .gitignore
  2. babel.config.js
  3. package-lock.json
  4. package.json
  5. README.md: default readme file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Node_modules

A

JavaScript libraries required to run our project and the current Toolchain
Similar to Maven’s .m2 folder in Java, but per project instead of global
Created when “npm install” is run for a project

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

Public

A

Initial HTML file and other static files

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

Src

A

Vue Source Code - where most vue application development is done
sub-folders
assets - images, css, reusable js scripts, etc.
components - vue components (.vue files)
App.vue - starting component. A place to add global components like a Header or Footer.
The starting component does not need to be App.vue, but it is in the default project.
main.js - Single Vue instance that starts Vue running and loads the initially components (main method)

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

.gitignore

A

sensible defaults for .gitignore

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

babel.config.js

A

babel configuration, compiles languages to JS

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

package-lock.json

A

It describes the exact tree that was generated, such that subsequent installs are able to generate identical trees, regardless of intermediate dependency updates.

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

package.json

A

The NPM package meta file that contains all the build dependencies and build commands

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

Toolchain

A

NPM
ESLint
Babel - JavaScript compiler and Transpiler that provides Polyfill

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

NPM

A

Node Package Manager : manages dependencies and builds (like maven did for Java). https://docs.npmjs.com/about-npm/

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

ESLint

A

static code analysis that finds problematic coding patterns and enforces coding styles https://eslint.org/docs/about/

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

Babel

A
  1. Compile - compiles other languages, like TypeScript, to JavaScript
  2. Transpile - converts modern JavaScript syntax ( ECMAScript 6 ), which is not yet fully supported by browsers, into older style JavaScript that those browsers can use.
  3. Polyfill - fills gaps in support for newer web features, like HTML5, by providing functionality in a way that devices that do not support those newer features do support.
    https: //babeljs.io/docs/en/