diff --git a/README.md b/README.md index 6b64560..747cf00 100644 --- a/README.md +++ b/README.md @@ -53,8 +53,9 @@ See some important folders bellow: ## Change skin -- Create a any scss file into: `app/layout/skins/` +- Create an any scss file into: `app/layout/skins/` > **Suggestion:** Create a `sass` file partial. Something like: **`_mycustom.scss`**. + - Extend your skin css class from `%skin-base` scss placeholder selector. Something like this: > **Suggestion:** Use the prefix **`skin-`** to the css class @@ -64,10 +65,10 @@ See some important folders bellow: } ``` - Configure application to use the new theme, e.g.: -`npm config set angular-theme:skin skin-myscustom` +`npm config set angular-theme:skin skin-mycustom` -- Start the application with `npm start` scripts ou make a build - > **PS:** If the configured skin is invalid, a error message is showed in the terminal. +- Start the application with `npm start` scripts or make a build + > **PS:** If the configured skin is invalid, an error message is showed in the terminal. ## Development environment diff --git a/gulp/conf.js b/gulp/conf.js index 38c4674..4742691 100644 --- a/gulp/conf.js +++ b/gulp/conf.js @@ -48,13 +48,13 @@ exports.skinExists = function (skin) { if(/skin-/.test(skin)){ skinFile = skin.replace('skin-','_')+'.scss'; } - + var skinPath = path.join(exports.paths.themes, exports.paths.theme, '/app/layout/skins/', skinFile); try { fs.statSync(skinPath); }catch(e) { - throw new Error('The skin "'+skin+'" on path "'+skinPath+'" was not found'); + throw new Error('The skin "'+skin+'" was not found in "'+skinPath+'"'); } }; -- libgit2 0.21.2