Add composer json file.
kunal.kursija created an issue. See original summary.
Hi @shylajaphp
There are few issues in the file. Like missing author details, Indentation issue, File Name is incorrect.
I am working on this to create a complete patch.
I will add the patch once I have 8.x branch created by the author.
Adding Patch For Review.
+++ b/composer.json @@ -0,0 +1,16 @@ + "name": "drupal/noscript_tag", + "description": "Noscript tag module displays noscript tag when javascript is disabled in users browser.", + "type": "drupal-module", + "homepage": "https://www.drupal.org/project/noscript_tag", + "authors": [
Use an indent of 2 spaces.
Reference : https://www.drupal.org/docs/develop/standards/coding-standards#indenting
I am not sure, If 2 spaces indent is valid for composer.json file.
After checking Drupal Code compose.json it have 4 spaces indent.
http://cgit.drupalcode.org/drupal/tree/composer.json.
Updating status for needs review.
Composer has standard for 4 spaces, Which was recently followed by Drupal Too. Hence the 4 spaces.
Issue #2853742 by kunal.kursija, shylajaphp: Port: Add Composer.json...
Automatically closed - issue fixed for 2 weeks with no activity.
Comments
Comment #2
shylajaphp commentedComment #3
shylajaphp commentedComment #4
shylajaphp commentedComment #5
shylajaphp commentedComment #6
kunalkursija commentedHi @shylajaphp
There are few issues in the file. Like missing author details, Indentation issue, File Name is incorrect.
I am working on this to create a complete patch.
I will add the patch once I have 8.x branch created by the author.
Comment #7
kunalkursija commentedAdding Patch For Review.
Comment #8
kunalkursija commentedComment #9
ashishdalviUse an indent of 2 spaces.
Reference : https://www.drupal.org/docs/develop/standards/coding-standards#indenting
Comment #10
ashishdalviI am not sure, If 2 spaces indent is valid for composer.json file.
After checking Drupal Code compose.json it have 4 spaces indent.
http://cgit.drupalcode.org/drupal/tree/composer.json.
Updating status for needs review.
Comment #11
kunalkursija commentedComposer has standard for 4 spaces, Which was recently followed by Drupal Too. Hence the 4 spaces.
Comment #13
polaki_viswanath commented