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
Implemented: Use NPM with gradle to get external JS dependencies (OFBIZ-11960) #230
Conversation
adityasharma7
commented
Aug 22, 2020
- Added gradle-node-plugin Gradle plugin for integrating NodeJS in your build (https://github.com/node-gradle/gradle-node-plugin)
- Created NPM package.json with JS dependencies in webapp based upon https://docs.npmjs.com/files/package.json
- Added license information in package.json based upon SPDX License List (https://spdx.org/licenses/) as supported by NPM (https://docs.npmjs.com/files/package.json#license)
- Added package-lock.json as suggested in NPM documentation (https://github.com/npm/cli/blob/release-6.14.7/docs/content/configuring-npm/package-lock-json.md#description)
- Added jQuery and jQuery Migrate using NPM and used it throughout
…IZ-11960) 1. Added gradle-node-plugin Gradle plugin for integrating NodeJS in your build (https://github.com/node-gradle/gradle-node-plugin) 2. Created NPM package.json with JS dependencies in webapp based upon https://docs.npmjs.com/files/package.json 3. Added license information in package.json based upon SPDX License List (https://spdx.org/licenses/) as supported by NPM (https://docs.npmjs.com/files/package.json#license) 4. Added package-lock.json as suggested in NPM documentation (https://github.com/npm/cli/blob/release-6.14.7/docs/content/configuring-npm/package-lock-json.md#description) 5. Added jQuery and jQuery Migrate using NPM and used it throughout
Hi Suraj, You need to merge trunk HEAD, conflicts here and locally: C:\projectsASF\Git\ofbiz-framework>git apply 230.patch Else after review sounds good to me TIA |
Hi Jacques, It seems with Suraj you are referring to me here. Though there is some work left at my part:
I will try to get it done in a week You can certainly test it with the current version so that if there are some inputs we will address them now only. You will have to follow these steps:
|
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
THanks Suraj, It's ok here, but can't apply locally: C:\projectsASF\Git\ofbiz-framework>git pull C:\projectsASF\Git\ofbiz-framework>git apply 230.patch C:\projectsASF\Git\ofbiz-framework> |
Oops really sorry (again) Aditya, I was working on other things at the same time and got confused 😊. Moreover we crossed online. Thanks for your explanation. I'll wait a week rather ;) |
No issues Jacques :) |
:) |
Hi Aditya, I just checked and we are still in the same situation, TIA |
Hi Aditya, Just noticed that we are no longer using date.format in trunk, ie this line: It was removed by https://issues.apache.org/jira/browse/OFBIZ-12040 |
…ute npm install on each compilation (OFBIZ-11960)
…rough npm package (OFBIZ-11960)
Hi @JacquesLeRoux, Steps to verify:
You will find the node_modules under the js folder |
SonarCloud Quality Gate failed. 0 Bugs No Coverage information |
Hi Aditya, I tried, got:
So it works for me and I indeed see very good progress with this way.
So +1 with me for merging |
Hello, I wanted to look at the details of the code duplication error that SonarCloud has raised, but it looks like the report has expired since it was last run in May.] In GitHub's Checks tab for this PR, I can click 'Re-run' to request that the SonarCloud checks are run again, but they do not appear to run. Does anyone know how to get SonarCloud to re-check this PR without committing another change to Aditya's branch? |
Hi Daniel, I think you should not worry about that. I have recently changed the SonarCloud setting to avoid false positive, most were related to js libs and we don't have to worry about that. I thought propose to commit a fake change in order to verify my assertion ;) |
It looks like the issues raised by SonarCloud have been addressed on trunk. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |