Skip to content
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

Gulp migration #299

Merged
merged 9 commits into from
Aug 9, 2018
Merged

Gulp migration #299

merged 9 commits into from
Aug 9, 2018

Conversation

m-suchorski
Copy link

@m-suchorski m-suchorski commented Jul 31, 2018

Grunt changed to Gulp.

Description

App is now built using Gulp and because of that there is no need to install Ruby - we don't need Compass anymore. Refreshing after chaning SCSS/JS files is also much faster.

Motivation and Context

This change solves the issue with slow refresh/build times and it also gets rid of Compass.
User now can also go directly to localhost:9000 (by default) and he will be redirected to the report view, because I've added an index.html file.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.

I hereby agree to the terms of the AET Contributor License Agreement.

@tkaik tkaik requested a review from malaskowski July 31, 2018 09:06
@@ -15,8 +15,8 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@import "compass";
@import "../../node_modules/bootstrap-sass-twbs/assets/stylesheets/_bootstrap.scss";
//@import "compass";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please remove this line if it's not needed

"matchdep": "^0.3.0",
"time-grunt": "^1.0.0"
"name": "aet",
"version": "2.1.16",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why 2.1.16? Latest AET release is 2.1.6 and currently we have 2.1.7-SNAPSHOT on master branch

Copy link
Contributor

@malaskowski malaskowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update CHANGELOG according to AET Contributing rules


-->
<script>
(function(){
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not generic behaviour. There should be no such logic in the main index.htmlpage.

@@ -0,0 +1,13796 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file looks like generated one. Do we need this here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, my bad. Gonna get rid of it.

// input[type=text] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this commented block doesn't affect any styling then please remove it

Copy link
Contributor

@wiiitek wiiitek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for this pull request! It is great that we no longer have compass!
Please take look at comments (some minor things).

// input[type=text] {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we just delete the lines if they are not needed?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

.gitignore Outdated
# auto-generated css file
/report/src/main/webapp/assets/css
# auto-generated package-lock file
/report/src/main/webapp/package-lock.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file should be commited in my opinion.
Frontend maven plugin reports it as:

[ERROR] npm notice created a lockfile as package-lock.json. You should commit this file.

please consult i.e. @mateuszluczak

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it should be commited, is it possible to make it smaller?
It had 13 000 lines.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it should be commited, that's true, but I've never seen anywhere minified version of this file- I'd say, it won't hurt to put it as it is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants