-
Notifications
You must be signed in to change notification settings - Fork 23
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 #724 from christophercr/feature/starter-sync
feat(starter): update starter to be in sync with the showcase
- Loading branch information
Showing
55 changed files
with
547 additions
and
407 deletions.
There are no files selected for viewing
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
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
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
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
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,7 @@ | ||
{ | ||
"profiles": [ | ||
{ "uuid": "1", "username": "janedoe", "firstName": "Jane", "lastName": "Doe", "language": "en", "roles": ["admin"] }, | ||
{ "uuid": "2", "username": "johndoe", "firstName": "John", "lastName": "Doe", "language": "fr", "roles": ["manager"] }, | ||
{ "uuid": "3", "username": "chucknorris", "firstName": "Chuck", "lastName": "Norris", "language": "nl", "roles": ["developer"] } | ||
] | ||
} |
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,4 +1,15 @@ | ||
/** | ||
* Load karma config from Stark | ||
*/ | ||
module.exports = require("./node_modules/@nationalbankbelgium/stark-testing/karma.conf.ci.js"); | ||
const defaultKarmaCIConfig = require("./node_modules/@nationalbankbelgium/stark-testing/karma.conf.ci.js").rawKarmaConfig; | ||
const karmaTypescriptExclusions = require("./karma.conf").karmaTypescriptExclusions; | ||
|
||
// start customizing the KarmaCI configuration from stark-testing | ||
const starkStarterSpecificConfiguration = Object.assign({}, defaultKarmaCIConfig, { | ||
exclude: [...defaultKarmaCIConfig.exclude, ...karmaTypescriptExclusions] | ||
}); | ||
|
||
// export the configuration function that karma expects and simply return the stark configuration | ||
module.exports = config => { | ||
return config.set(starkStarterSpecificConfiguration); | ||
}; |
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,4 +1,26 @@ | ||
/** | ||
* Load karma config from Stark | ||
*/ | ||
module.exports = require("./node_modules/@nationalbankbelgium/stark-testing/karma.conf.js"); | ||
const helpers = require("./node_modules/@nationalbankbelgium/stark-testing/helpers"); | ||
|
||
/** | ||
* Load karma config from Stark | ||
*/ | ||
const defaultKarmaConfig = require("./node_modules/@nationalbankbelgium/stark-testing/karma.conf.js").rawKarmaConfig; | ||
|
||
// entry files of the "@nationalbankbelgium/stark-ui" module imported in mock files | ||
const karmaTypescriptExclusions = [...defaultKarmaConfig.exclude, "src/assets/**"]; | ||
|
||
// start customizing the KarmaCI configuration from stark-testing | ||
const starkStarterSpecificConfiguration = Object.assign({}, defaultKarmaConfig, { | ||
// list of files to exclude | ||
exclude: karmaTypescriptExclusions | ||
}); | ||
|
||
// export the configuration function that karma expects and simply return the stark configuration | ||
module.exports = { | ||
default: function(config) { | ||
return config.set(starkStarterSpecificConfiguration); | ||
}, | ||
karmaTypescriptExclusions: karmaTypescriptExclusions | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.