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
{{ message }}
This repository was archived by the owner on Mar 4, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+11-13Lines changed: 11 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -13,23 +13,22 @@ Install dependencies by running the following in the root of the project:
13
13
- npm install
14
14
- bower install
15
15
16
-
## Guide to the Gulpfile
16
+
## Gulpfile Commands
17
+
18
+
- Run `gulp` to get a list of commands
17
19
18
20
- To run locally without minification: `gulp serve`
19
21
20
-
- To build dist folder
21
-
-`gulp build`
22
+
- To create the build: `gulp build`
22
23
23
-
- To serve the build
24
-
-`gulp serve-build`
24
+
- To serve the build: `gulp serve-build`
25
25
26
-
- To run the test runner and view specs.html
27
-
-`gulp serve-specs`
26
+
- To run the test runner and view specs.html: `gulp serve-specs`
28
27
29
28
### Testing
30
29
31
-
Running `gulp test` will perform a single run of the unit tests with karma.
32
-
Running `gulp autotest` will keep the server running and watching files.
30
+
Running `gulp test` will perform a single run of the unit tests with karma in the command line.
31
+
Running `gulp autotest` will keep the server running and watching files in the command line.
33
32
34
33
## Contributing
35
34
@@ -47,12 +46,11 @@ SCSS Files
47
46
- Use SCSS syntax (nesting)
48
47
- Use variables and mixins as much as possible
49
48
- Store new variables and mixins in the appropriate file in `assets/css/partials`
49
+
- Since a class with the current state name is added to the ui-view (see the Creating New Views/Pages section), wrap your .scss file with this class, in order to write specific scss in its own file for that page.
50
50
51
51
JS/ES6
52
52
- Follow this [AngularJS style guide](https://github.com/johnpapa/angular-styleguide)
53
53
54
54
Creating New Views/Pages
55
-
- Todo - change the following to be relevant to this particular repo:
56
-
- To add a new page, create a folder in the app directory and a new state in app.routes.coffee
57
-
- Name the new folder the same as the state name
58
-
- In order to keep the SCSS files modular, a class is automatically added with the name of the state to the ui-view div in index.jade. For example, if you create a new `/feature1` state and navigate there, the div with the content will look like this: `<div class="view-container feature1">`. This allows you to have your own feature1.scss file. Use the landing.scss file as an example, where you can see how all the styles are nested in `.landing`.
55
+
- To add a new page, create a folder in the app directory and follow the naming conventions found elsewhere, e.g. login.controller.js, login.jade, login.spec.js, etc. Make sure to add a new state in the module's routes file.
56
+
- In order to keep the SCSS files modular, a class is automatically added with the name of the state to the ui-view div in index.jade. For example, if you create a new `/feature1` state and navigate there, the div with the content will look like this: `<div class="view-container feature1">`.
0 commit comments