Commit 6be9287dd71857cb78321ca85f050b41487561a2
1 parent
3a1d52ef
Exists in
master
and in
9 other branches
Fix gramatical and text mistakes
Showing
2 changed files
with
7 additions
and
6 deletions
Show diff stats
README.md
| ... | ... | @@ -53,8 +53,9 @@ See some important folders bellow: |
| 53 | 53 | |
| 54 | 54 | ## Change skin |
| 55 | 55 | |
| 56 | -- Create a any scss file into: `app/layout/skins/` | |
| 56 | +- Create an any scss file into: `app/layout/skins/` | |
| 57 | 57 | > **Suggestion:** Create a `sass` file partial. Something like: **`_mycustom.scss`**. |
| 58 | + | |
| 58 | 59 | - Extend your skin css class from `%skin-base` scss placeholder selector. Something like this: |
| 59 | 60 | > **Suggestion:** Use the prefix **`skin-`** to the css class |
| 60 | 61 | |
| ... | ... | @@ -64,10 +65,10 @@ See some important folders bellow: |
| 64 | 65 | } |
| 65 | 66 | ``` |
| 66 | 67 | - Configure application to use the new theme, e.g.: |
| 67 | -`npm config set angular-theme:skin skin-myscustom` | |
| 68 | +`npm config set angular-theme:skin skin-mycustom` | |
| 68 | 69 | |
| 69 | -- Start the application with `npm start` scripts ou make a build | |
| 70 | - > **PS:** If the configured skin is invalid, a error message is showed in the terminal. | |
| 70 | +- Start the application with `npm start` scripts or make a build | |
| 71 | + > **PS:** If the configured skin is invalid, an error message is showed in the terminal. | |
| 71 | 72 | |
| 72 | 73 | ## Development environment |
| 73 | 74 | ... | ... |
gulp/conf.js
| ... | ... | @@ -48,13 +48,13 @@ exports.skinExists = function (skin) { |
| 48 | 48 | if(/skin-/.test(skin)){ |
| 49 | 49 | skinFile = skin.replace('skin-','_')+'.scss'; |
| 50 | 50 | } |
| 51 | - | |
| 51 | + | |
| 52 | 52 | var skinPath = path.join(exports.paths.themes, exports.paths.theme, '/app/layout/skins/', skinFile); |
| 53 | 53 | |
| 54 | 54 | try { |
| 55 | 55 | fs.statSync(skinPath); |
| 56 | 56 | }catch(e) { |
| 57 | - throw new Error('The skin "'+skin+'" on path "'+skinPath+'" was not found'); | |
| 57 | + throw new Error('The skin "'+skin+'" was not found in "'+skinPath+'"'); | |
| 58 | 58 | } |
| 59 | 59 | }; |
| 60 | 60 | ... | ... |