Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

Commit 4fdb4e1

Browse files
authored
Merge pull request #89 from olback/3.2
3.2
2 parents d6b3cb9 + 89a01bc commit 4fdb4e1

File tree

11 files changed

+1536
-95
lines changed

11 files changed

+1536
-95
lines changed

‎CHANGELOG.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# 3.1.1
1+
# 3.2.0
2+
* Added language and auto-complete support for `.autoprefixerrc`, `.cleancssrc`, `.uglifyrc` and `.terserrc`.
3+
* Added `Minify: Export Configuration` command.
4+
5+
## 3.1.1
26
* Removed console.log.
37
* Hopefully fixed issue #78 (Thanks @CubeRanch)
48

‎package-lock.json‎

Lines changed: 101 additions & 75 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json‎

Lines changed: 61 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "es6-css-minify",
3-
"displayName": "JS & CSS Minifier",
3+
"displayName": "JS & CSS Minifier (Minify)",
44
"description": "Easily Minify ES5/ES6/ES7/ES8 and CSS. Supports minify on save, minify selection & custom configurations!",
5-
"version": "3.1.1",
5+
"version": "3.2.0",
66
"publisher": "olback",
77
"icon": "icon.png",
88
"galleryBanner": {
@@ -38,6 +38,7 @@
3838
"onCommand:es6-css-minify.loadConfig",
3939
"onCommand:es6-css-minify.minify",
4040
"onCommand:es6-css-minify.minifySelection",
41+
"onCommand:es6-css-minify.exportConfig",
4142
"onLanguage:css",
4243
"onLanguage:javascript",
4344
"onLanguage:json",
@@ -47,6 +48,40 @@
4748
],
4849
"main": "./dist/extension",
4950
"contributes": {
51+
"languages": [
52+
{
53+
"id": "json",
54+
"aliases": [
55+
"json",
56+
"Json",
57+
"JSON"
58+
],
59+
"extensions": [
60+
".autoprefixerrc",
61+
".cleancssrc",
62+
".uglifyrc",
63+
".terserrc"
64+
]
65+
}
66+
],
67+
"jsonValidation": [
68+
{
69+
"fileMatch": ".autoprefixerrc",
70+
"url": "./schemas/autoprefixerrc.schema.json"
71+
},
72+
{
73+
"fileMatch": ".cleancssrc",
74+
"url": "./schemas/cleancssrc.schema.json"
75+
},
76+
{
77+
"fileMatch": ".uglifyrc",
78+
"url": "./schemas/terserrc.schema.json"
79+
},
80+
{
81+
"fileMatch": ".terserrc",
82+
"url": "./schemas/terserrc.schema.json"
83+
}
84+
],
5085
"commands": [
5186
{
5287
"command": "es6-css-minify.loadConfig",
@@ -59,6 +94,10 @@
5994
{
6095
"command": "es6-css-minify.minifySelection",
6196
"title": "Minify: Selection"
97+
},
98+
{
99+
"command": "es6-css-minify.exportConfig",
100+
"title": "Minify: Export Configuration"
62101
}
63102
],
64103
"configuration": {
@@ -191,6 +230,14 @@
191230
"default": ".autoprefixerrc"
192231
}
193232
}
233+
},
234+
"menus": {
235+
"editor/context": [
236+
{
237+
"command": "es6-css-minify.minify",
238+
"group": "es6-css-minify"
239+
}
240+
]
194241
}
195242
},
196243
"scripts": {
@@ -203,26 +250,26 @@
203250
"lint": "tslint -p ./"
204251
},
205252
"devDependencies": {
206-
"@types/autoprefixer": "^9.5.0",
253+
"@types/autoprefixer": "^9.6.1",
207254
"@types/clean-css": "^4.2.1",
208255
"@types/glob": "^7.1.1",
209256
"@types/mocha": "^5.2.6",
210-
"@types/node": "^10.12.21",
211-
"@types/vscode": "^1.18.0",
212-
"@types/webpack": "^4.32.1",
257+
"@types/node": "^10.14.18",
258+
"@types/vscode": "^1.38.0",
259+
"@types/webpack": "^4.39.1",
213260
"autoprefixer": "^9.6.1",
214261
"clean-css": "^4.2.1",
215-
"cross-env": "^5.2.0",
262+
"cross-env": "^5.2.1",
216263
"fork-ts-checker-webpack-plugin": "^1.5.0",
217264
"glob": "^7.1.4",
218265
"mocha": "^6.1.4",
219-
"terser": "^4.1.3",
220-
"ts-loader": "^6.0.4",
221-
"tslint": "^5.12.1",
222-
"typescript": "^3.3.1",
223-
"vscode-test": "^1.1.0",
224-
"webpack": "^4.39.1",
225-
"webpack-cli": "^3.3.6"
266+
"terser": "^4.3.1",
267+
"ts-loader": "^6.1.0",
268+
"tslint": "^5.20.0",
269+
"typescript": "^3.6.3",
270+
"vscode-test": "^1.2.0",
271+
"webpack": "^4.39.3",
272+
"webpack-cli": "^3.3.8"
226273
},
227274
"dependencies": {}
228275
}

‎schemas/autoprefixerrc.schema.json‎

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"description": "Autoprefixer options schema for es6-css-minify",
4+
"type": "object",
5+
"properties": {
6+
"env": {
7+
"type": "string",
8+
"description": "Environment for Browserslist."
9+
},
10+
"cascade": {
11+
"type": "boolean",
12+
"description": "Should Autoprefixer use Visual Cascade, if CSS is uncompressed.",
13+
"default": true
14+
},
15+
"add": {
16+
"type": "boolean",
17+
"description": "Should Autoprefixer add prefixes.",
18+
"default": true
19+
},
20+
"remove": {
21+
"type": "boolean",
22+
"description": "Should Autoprefixer [remove outdated] prefixes.",
23+
"default": true
24+
},
25+
"supports": {
26+
"type": "boolean",
27+
"description": "Should Autoprefixer add prefixes for @supports parameters.",
28+
"default": true
29+
},
30+
"flexbox": {
31+
"description": "Should Autoprefixer add prefixes for flexbox properties. With \"no-2009\" value Autoprefixer will add prefixes only for final and IE 10 versions of specification.",
32+
"default": true,
33+
"oneOf": [
34+
{
35+
"type": "string",
36+
"enum": [
37+
"no-2009"
38+
]
39+
},
40+
{
41+
"type": "boolean"
42+
}
43+
]
44+
},
45+
"grid": {
46+
"description": "Should Autoprefixer add IE 10-11 prefixes for Grid Layout properties?",
47+
"default": false,
48+
"oneOf": [
49+
{
50+
"type": "boolean",
51+
"enum": [
52+
false
53+
]
54+
},
55+
{
56+
"type": "string",
57+
"enum": [
58+
"autoplace",
59+
"no-autoplace"
60+
]
61+
}
62+
]
63+
},
64+
"stats": {
65+
"type": "object",
66+
"description": "Custom usage statistics for > 10% in my stats browsers query.",
67+
"default": {}
68+
},
69+
"overrideBrowserslist": {
70+
"type": "array",
71+
"description": "See https://github.com/browserslist/browserslist#queries for available queries and default value.",
72+
"default": [
73+
"defaults"
74+
]
75+
},
76+
"ignoreUnknownVersions": {
77+
"type": "boolean",
78+
"description": "Do not raise error on unknown browser version in Browserslist config.",
79+
"default": false
80+
}
81+
}
82+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /