-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed markup to plain html, added linting to npm scripts; added editorconfig file #37
Merged
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
9ee5fb8
moved getting orders for dashboard to App component
tarnas14 9432c23
Revert "moved getting orders for dashboard to App component"
tarnas14 cf0067e
Merge remote-tracking branch 'upstream/master'
tarnas14 d837727
Merge remote-tracking branch 'upstream/master'
tarnas14 497ab5d
added .editorconfig file to force unified indent style
tarnas14 37cf120
removed react-bootstrap dependency and used vanilla bootstrap configu…
tarnas14 c4c6765
added `lint` script to npm that lints with .gitignore as ignore file
tarnas14 b74e0f2
moved all dependencies needed to build a project to `dependencies` in…
tarnas14 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[*] | ||
trim_trailing_whitespace = true | ||
end_of_line = lf | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 |
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,70 @@ | ||
'use strict'; | ||
// ## bootstrap-webpack Configuration | ||
|
||
module.exports = { | ||
// ### Scripts | ||
// Any scripts here set to false will never | ||
// make it to the client, it's not packaged | ||
// by webpack. | ||
scripts: { | ||
'transition': true, | ||
'alert': true, | ||
'button': true, | ||
'carousel': true, | ||
'collapse': true, | ||
'dropdown': true, | ||
'modal': true, | ||
'tooltip': true, | ||
'popover': true, | ||
'scrollspy': true, | ||
'tab': true, | ||
'affix': true | ||
}, | ||
// ### Styles | ||
// Enable or disable certain less components and thus remove | ||
// the css for them from the build. | ||
styles: { | ||
'mixins': true, | ||
|
||
'normalize': true, | ||
'print': true, | ||
|
||
'scaffolding': true, | ||
'type': true, | ||
'code': true, | ||
'grid': true, | ||
'tables': true, | ||
'forms': true, | ||
'buttons': true, | ||
|
||
'component-animations': true, | ||
'glyphicons': true, | ||
'dropdowns': true, | ||
'button-groups': true, | ||
'input-groups': true, | ||
'navs': true, | ||
'navbar': true, | ||
'breadcrumbs': true, | ||
'pagination': true, | ||
'pager': true, | ||
'labels': true, | ||
'badges': true, | ||
'jumbotron': true, | ||
'thumbnails': true, | ||
'alerts': true, | ||
'progress-bars': true, | ||
'media': true, | ||
'list-group': true, | ||
'panels': true, | ||
'wells': true, | ||
'close': true, | ||
|
||
'modals': true, | ||
'tooltip': true, | ||
'popovers': true, | ||
'carousel': true, | ||
|
||
'utilities': true, | ||
'responsive-utilities': true | ||
} | ||
}; |
Empty file.
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like dependencies and devDependencies are mixed up.
Everything that would be needed to build the app on production should listed as "dependencies" node. Things that are not for production like mocha should be listed as "devDependencies".
webpack/webpack#520
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't mocha also be in the
dependencies
to allow forexport NODE_ENV=production && npm i && npm test
to be able to run tests using mocha under production environment? Otherwise you would have to remember (and the CI system) to setNODE_ENV
todevelopment
beforenpm i
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fair point! I'm not sure if that is a common practice, to be honest
on production environment I'd go for running integration/smoke tests that treat the application as a black box
but if they treat it as a black box and use public api, it doesn't matter where they're run, they just need access to a running app
also, we don't have any tests here which is a whole other story