-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from larrybotha/refactor/entrypoints
- Loading branch information
Showing
10 changed files
with
75 additions
and
41 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/*------------------------------------*\ | ||
RESET STYLES | ||
\*------------------------------------*/ | ||
/** | ||
* Import resets | ||
* | ||
* normalize.css requires `includePaths: ['node_modules/normalize.css']` in | ||
* your Sass config | ||
*/ | ||
@import "normalize"; | ||
@import "core/reset"; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
/*------------------------------------*\ | ||
CUSTOM STYLES | ||
\*------------------------------------*/ | ||
// order matters | ||
@import "functions/index"; | ||
@import "mixins/index"; | ||
@import "global/index"; | ||
@import "app/index"; | ||
/** | ||
* Import custom variables, mixins, and functions | ||
*/ | ||
@import "support"; | ||
|
||
/** | ||
* Import custom global styles | ||
*/ | ||
@import "global"; | ||
|
||
/** | ||
* Import custom styles | ||
*/ | ||
@import "app"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/*------------------------------------*\ | ||
CUSTOM SUPPORT SCSS | ||
\*------------------------------------*/ | ||
/** | ||
* This file should be imported after any core support files to ensure | ||
* that variables, mixins, and functions defined here override core | ||
* equivalents | ||
*/ | ||
@import "variables"; | ||
@import "tools"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,20 @@ | ||
@charset "UTF-8"; | ||
|
||
/*------------------------------------*\ | ||
STYLES ENTRYPOINT | ||
\*------------------------------------*/ | ||
/** | ||
* Import everything: | ||
* | ||
* - tools | ||
* - global styles | ||
* - app styles | ||
* | ||
* This will be the most common entry point for your app's styles. | ||
* Import resets | ||
*/ | ||
@import "support"; | ||
@import "global"; | ||
@import "custom/app/index"; | ||
@import "reset"; | ||
|
||
/** | ||
* Import core support files and globals | ||
*/ | ||
@import "core/support"; | ||
@import "core/global"; | ||
|
||
/** | ||
* Import custom styles to override core | ||
*/ | ||
@import "custom"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
const path = require("path"); | ||
|
||
module.exports = { | ||
file: path.resolve(__dirname, "../scss/global.scss"), | ||
file: path.resolve(__dirname, "../scss/global-only.scss"), | ||
includePaths: ["node_modules/normalize.css"], | ||
}; |