Skip to content

Commit f7f5dce

Browse files
committed
IMP: formatting for grunt config files
1 parent b70851d commit f7f5dce

File tree

7 files changed

+89
-94
lines changed

7 files changed

+89
-94
lines changed
+10-13
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
{
2-
"options": {
3-
"browsers": [
4-
"last 2 versions",
5-
"ie 11"
6-
]
7-
},
8-
"setup": {
9-
"src": "<%= path.css.setup %>/setup.css"
10-
},
11-
"updater": {
12-
"src": "<%= path.css.updater %>/updater.css"
13-
}
14-
}
2+
"options": {
3+
"browsers": ["last 2 versions", "ie 11"]
4+
},
5+
"setup": {
6+
"src": "<%= path.css.setup %>/setup.css"
7+
},
8+
"updater": {
9+
"src": "<%= path.css.updater %>/updater.css"
10+
}
11+
}

dev/tools/grunt/configs/concat.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"options": {
3-
"stripBanners": true,
4-
"banner": "/**\n * Copyright © <%= grunt.template.today(\"yyyy\") %> Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n"
5-
},
6-
"setup": {
7-
"src": "<%= path.css.setup %>/setup.css",
8-
"dest": "<%= path.css.setup %>/setup.css"
9-
}
10-
}
2+
"options": {
3+
"stripBanners": true,
4+
"banner": "/**\n * Copyright © <%= grunt.template.today(\"yyyy\") %> Magento. All rights reserved.\n * See COPYING.txt for license details.\n */\n"
5+
},
6+
"setup": {
7+
"src": "<%= path.css.setup %>/setup.css",
8+
"dest": "<%= path.css.setup %>/setup.css"
9+
}
10+
}

dev/tools/grunt/configs/cssmin.json

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"options": {
3-
"report": "gzip",
4-
"keepSpecialComments": 0
5-
},
6-
"setup": {
7-
"files": {
8-
"<%= path.css.setup %>/setup.css": "<%= path.css.setup %>/setup.css"
9-
}
10-
},
11-
"updater": {
12-
"files": {
13-
"<%= path.css.updater %>/updater.css": "<%= path.css.updater %>/updater.css"
14-
}
2+
"options": {
3+
"report": "gzip",
4+
"keepSpecialComments": 0
5+
},
6+
"setup": {
7+
"files": {
8+
"<%= path.css.setup %>/setup.css": "<%= path.css.setup %>/setup.css"
159
}
16-
}
10+
},
11+
"updater": {
12+
"files": {
13+
"<%= path.css.updater %>/updater.css": "<%= path.css.updater %>/updater.css"
14+
}
15+
}
16+
}

dev/tools/grunt/configs/eslint.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"file": {
3-
"options": {
4-
"configFile": "dev/tests/static/testsuite/Magento/Test/Js/_files/eslint/.eslintrc",
5-
"reset": true,
6-
"useEslintrc": false
7-
}
8-
},
9-
"test": {
10-
"options": {
11-
"configFile": "dev/tests/static/testsuite/Magento/Test/Js/_files/eslint/.eslintrc",
12-
"reset": true,
13-
"outputFile": "dev/tests/static/eslint-error-report.xml",
14-
"format": "junit",
15-
"quiet": true
16-
}
2+
"file": {
3+
"options": {
4+
"configFile": "dev/tests/static/testsuite/Magento/Test/Js/_files/eslint/.eslintrc",
5+
"reset": true,
6+
"useEslintrc": false
177
}
8+
},
9+
"test": {
10+
"options": {
11+
"configFile": "dev/tests/static/testsuite/Magento/Test/Js/_files/eslint/.eslintrc",
12+
"reset": true,
13+
"outputFile": "dev/tests/static/eslint-error-report.xml",
14+
"format": "junit",
15+
"quiet": true
16+
}
17+
}
1818
}

dev/tools/grunt/configs/jscs.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
2-
"file": {
3-
"options": {
4-
"config": "dev/tests/static/testsuite/Magento/Test/Js/_files/jscs/.jscsrc"
5-
},
6-
"src": ""
2+
"file": {
3+
"options": {
4+
"config": "dev/tests/static/testsuite/Magento/Test/Js/_files/jscs/.jscsrc"
75
},
8-
"test": {
9-
"options": {
10-
"config": "dev/tests/static/testsuite/Magento/Test/Js/_files/jscs/.jscsrc",
11-
"reporterOutput": "dev/tests/static/jscs-error-report.xml",
12-
"reporter": "junit"
13-
},
14-
"src": ""
15-
}
6+
"src": ""
7+
},
8+
"test": {
9+
"options": {
10+
"config": "dev/tests/static/testsuite/Magento/Test/Js/_files/jscs/.jscsrc",
11+
"reporterOutput": "dev/tests/static/jscs-error-report.xml",
12+
"reporter": "junit"
13+
},
14+
"src": ""
15+
}
1616
}
+18-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"legacy": {
3-
"options": {
4-
"compressor": "yui-js"
5-
},
6-
"files": {
7-
"<%= path.uglify.legacy %>": [
8-
"lib/web/prototype/prototype.js",
9-
"lib/web/prototype/window.js",
10-
"lib/web/scriptaculous/builder.js",
11-
"lib/web/scriptaculous/effects.js",
12-
"lib/web/lib/ccard.js",
13-
"lib/web/prototype/validation.js",
14-
"lib/web/varien/js.js",
15-
"lib/web/mage/adminhtml/varienLoader.js",
16-
"lib/web/mage/adminhtml/tools.js",
17-
"dev/tools/grunt/assets/legacy-build/shim.js"
18-
]
19-
}
2+
"legacy": {
3+
"options": {
4+
"compressor": "yui-js"
5+
},
6+
"files": {
7+
"<%= path.uglify.legacy %>": [
8+
"lib/web/prototype/prototype.js",
9+
"lib/web/prototype/window.js",
10+
"lib/web/scriptaculous/builder.js",
11+
"lib/web/scriptaculous/effects.js",
12+
"lib/web/lib/ccard.js",
13+
"lib/web/prototype/validation.js",
14+
"lib/web/varien/js.js",
15+
"lib/web/mage/adminhtml/varienLoader.js",
16+
"lib/web/mage/adminhtml/tools.js",
17+
"dev/tools/grunt/assets/legacy-build/shim.js"
18+
]
2019
}
20+
}
2121
}
+10-12
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
{
2-
"documentation": {
3-
"options": {
4-
"name": "Magento UI Library",
5-
"verbose": true,
6-
"include": [
7-
"<%= path.doc %>/docs.css"
8-
]
9-
},
10-
"files": {
11-
"<%= path.doc %>": "<%= path.doc %>/source"
12-
}
2+
"documentation": {
3+
"options": {
4+
"name": "Magento UI Library",
5+
"verbose": true,
6+
"include": ["<%= path.doc %>/docs.css"]
7+
},
8+
"files": {
9+
"<%= path.doc %>": "<%= path.doc %>/source"
1310
}
14-
}
11+
}
12+
}

0 commit comments

Comments
 (0)