You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.md
+6-163Lines changed: 6 additions & 163 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ Pagination is described as:
12
12
> The process of dividing a document into discrete pages, either electronic pages or printed pages.
13
13
(<https://en.wikipedia.org/wiki/Pagination> accessed June 26, 2017).
14
14
15
-
"Something about pagination here, goal oriented finding task (i.e. finding an item), easier to skip to a certain page where the item may be. Easier for people to remember the general location of items (https://www.nngroup.com/articles/infinite-scrolling/). Mention Google search results are paginated?"
15
+
Pagination is the most common way of separating lists of content into a smaller set of digestible data. Pagination lends itself to goal oriented finding tasks, such as finding a specific record from a list of records in a database. Additionally, pagination assists the user in finding a record they have previously found. If the user roughly knows where they found the record previously, they can use the pagination page number navigation to find the record again.
16
16
17
17
### Infinite scroll
18
18
Infinite scroll is described as:
@@ -43,9 +43,7 @@ As always, the example project for this blog post can be found at the Codevate g
43
43
44
44
### Staring a new project
45
45
46
-
# May swap this out for just adding the files to the index.html file
47
-
48
-
To begin with, we will be using npm and bower to bring in our dependencies, and we will be using Grunt as our task runner. First, lets create a new npm project with `npm init`. Follow the question, feel free to press the enter key for all of the questions as they aren't important to this demonstration.
46
+
We will be using npm and bower to bring in our dependencies, and we will be using Grunt as our task runner. First, lets create a new npm project with `npm init`. Follow the question, feel free to press the enter key for all of the questions as they aren't important to this demonstration.
49
47
50
48
Now npm is ready we can include our Grunt dependencies:
51
49
@@ -65,9 +63,7 @@ With all of our dependencies installed, we are ready to create our build process
65
63
66
64
### Setting up the build process
67
65
68
-
**Not sure if we really want this**
69
-
70
-
Now that Grunt is installed we can start creating our basic build process to concat, transpile, and minify the JavaScript. First we need a Gruntfile so that Grunt knows what plugins we want to use and also so that we can outline our build steps.
66
+
Now that Grunt is and our dev dependencies are installed we can start creating our basic build process to concat, transpile, and minify the JavaScript. First we need a Gruntfile so that Grunt knows what plugins we want to use and also so that we can outline our build steps.
71
67
72
68
```
73
69
'use strict';
@@ -87,7 +83,7 @@ module.exports = function (grunt) {
87
83
};
88
84
```
89
85
90
-
Now we can define out build steps. Create a new directory in the root of the project and name it `grunt`. Inside this directory create a new file named `aliases.yml`, this is where we will outline our build steps. Copy the following into the `aliases.yml` file:
86
+
Create a new directory in the root of the project and name it `grunt`. Inside this directory create a new file named `aliases.yml`, this is where we will outline our build steps. Copy the following into the `aliases.yml` file:
With our build steps in place we need to add each of the plugin config files. You can find these in the `grunt` directory of the github project here. **LINK TO GITHUB PAGE**.
204
104
205
-
'use strict';
105
+
With the Grunt tasks setup we are now able to start the build process by simply typing `grunt` in the command line. Additionally, as we have added a watch step to the default task, whenever we change a `src` file grunt will automatically run.
0 commit comments