Skip to content

Commit 223f29e

Browse files
authored
Merge pull request #292 from posthtml/milestone-0.5.2
Milestone 0.5.2
2 parents cc177e6 + 9eac9f1 commit 223f29e

File tree

4 files changed

+58
-49
lines changed

4 files changed

+58
-49
lines changed

changelog.md

Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1+
## <small>0.5.2 (2020-01-21)</small>
2+
3+
* fix: after update dep ([4ecb916](https://github.com/posthtml/posthtml-cli/commit/4ecb916))
4+
* build: update dep dev ([af63894](https://github.com/posthtml/posthtml-cli/commit/af63894))
5+
6+
7+
18
## <small>0.5.1 (2019-06-28)</small>
29

3-
* ci: try fix in windows ([ad49a51](https://github.com/posthtml/posthtml-cli/commit/ad49a51))
10+
* 0.5.1 ([16fbf31](https://github.com/posthtml/posthtml-cli/commit/16fbf31))
411
* build: add path in test script ([efa1950](https://github.com/posthtml/posthtml-cli/commit/efa1950))
12+
* build: update changelog ([603a125](https://github.com/posthtml/posthtml-cli/commit/603a125))
13+
* ci: try fix in windows ([ad49a51](https://github.com/posthtml/posthtml-cli/commit/ad49a51))
514
* fix: if plugins is array ([f550f11](https://github.com/posthtml/posthtml-cli/commit/f550f11))
615
* test: expected for plugins array ([df36e4f](https://github.com/posthtml/posthtml-cli/commit/df36e4f))
716
* test: when plugins array ([1c1b3db](https://github.com/posthtml/posthtml-cli/commit/1c1b3db))
@@ -52,6 +61,7 @@
5261
* docs: drop support old node ([855f953](https://github.com/posthtml/posthtml-cli/commit/855f953))
5362
* test: fix party normalize ([37d5d42](https://github.com/posthtml/posthtml-cli/commit/37d5d42))
5463
* test: normalize path, close #279 ([70c0936](https://github.com/posthtml/posthtml-cli/commit/70c0936)), closes [#279](https://github.com/posthtml/posthtml-cli/issues/279)
64+
* fix: clarify external config format ([c673d18](https://github.com/posthtml/posthtml-cli/commit/c673d18))
5565

5666

5767

@@ -77,7 +87,6 @@
7787
* build: update changelog ([7e497a9](https://github.com/posthtml/posthtml-cli/commit/7e497a9))
7888
* build: update depDev ([6e12b94](https://github.com/posthtml/posthtml-cli/commit/6e12b94))
7989
* ci: bump to node 10 ([ffeb119](https://github.com/posthtml/posthtml-cli/commit/ffeb119))
80-
* fix: clarify external config format ([c673d18](https://github.com/posthtml/posthtml-cli/commit/c673d18))
8190

8291

8392

@@ -379,11 +388,14 @@
379388

380389
## <small>0.2.6 (2016-09-08)</small>
381390

391+
* 0.2.5 ([06cd83c](https://github.com/posthtml/posthtml-cli/commit/06cd83c))
382392
* 0.2.6 ([780c653](https://github.com/posthtml/posthtml-cli/commit/780c653))
383393
* docs(readme): fix patch to license ([fa37204](https://github.com/posthtml/posthtml-cli/commit/fa37204))
384394
* docs(readme): remove semi-colons ([9f86f2b](https://github.com/posthtml/posthtml-cli/commit/9f86f2b))
385395
* chore(changelog): Update changelog ([a0afcb8](https://github.com/posthtml/posthtml-cli/commit/a0afcb8))
386396
* chore(changelog): Update changelog ([b5a6160](https://github.com/posthtml/posthtml-cli/commit/b5a6160))
397+
* chore(package): add auto node publish ([6096ac9](https://github.com/posthtml/posthtml-cli/commit/6096ac9))
398+
* chore(package): add testen for test support list node ([b044e81](https://github.com/posthtml/posthtml-cli/commit/b044e81))
387399
* chore(package): update ava to version 0.16.0 ([7b41df2](https://github.com/posthtml/posthtml-cli/commit/7b41df2))
388400
* chore(package): update clinton to version 0.8.0 ([174f1f1](https://github.com/posthtml/posthtml-cli/commit/174f1f1))
389401
* chore(package): update eslint-formatter-pretty to version 0.3.0 ([530070f](https://github.com/posthtml/posthtml-cli/commit/530070f))
@@ -404,16 +416,10 @@
404416
* style(*): fix clinton report recommendation ([c62395e](https://github.com/posthtml/posthtml-cli/commit/c62395e))
405417
* style(package): bump version v0.2.5 ([aa01917](https://github.com/posthtml/posthtml-cli/commit/aa01917))
406418
* style(package): update author info ([eb8383f](https://github.com/posthtml/posthtml-cli/commit/eb8383f))
407-
* 0.2.5 ([06cd83c](https://github.com/posthtml/posthtml-cli/commit/06cd83c))
408-
* Create MAINTAINERS ([d87f6dd](https://github.com/posthtml/posthtml-cli/commit/d87f6dd))
409-
* return reverse to only node 6 ([a12431f](https://github.com/posthtml/posthtml-cli/commit/a12431f))
410-
* Update MAINTAINERS ([c2a2908](https://github.com/posthtml/posthtml-cli/commit/c2a2908))
411-
* chore(package): add auto node publish ([6096ac9](https://github.com/posthtml/posthtml-cli/commit/6096ac9))
412419
* chore(package): add auto node publish ([0ca5d7f](https://github.com/posthtml/posthtml-cli/commit/0ca5d7f))
413420
* chore(package): add changelog-cli generator ([ee55422](https://github.com/posthtml/posthtml-cli/commit/ee55422))
414421
* chore(package): add clinton ([3631eb8](https://github.com/posthtml/posthtml-cli/commit/3631eb8))
415422
* chore(package): add conventional changelog linter ([2fedad3](https://github.com/posthtml/posthtml-cli/commit/2fedad3))
416-
* chore(package): add testen for test support list node ([b044e81](https://github.com/posthtml/posthtml-cli/commit/b044e81))
417423
* chore(package): add testen for testin support node version ([16f98d6](https://github.com/posthtml/posthtml-cli/commit/16f98d6))
418424
* chore(package): change engines node support version ([5640c93](https://github.com/posthtml/posthtml-cli/commit/5640c93))
419425
* chore(package): change xo to eslint ([dbc509e](https://github.com/posthtml/posthtml-cli/commit/dbc509e))
@@ -424,16 +430,19 @@
424430
* docs(readme): add icon node support ([a70ac5d](https://github.com/posthtml/posthtml-cli/commit/a70ac5d))
425431
* docs(readme): add testen icons ([44c8c57](https://github.com/posthtml/posthtml-cli/commit/44c8c57))
426432
* docs(readme): fix linter error ([d176533](https://github.com/posthtml/posthtml-cli/commit/d176533))
433+
* Create MAINTAINERS ([d87f6dd](https://github.com/posthtml/posthtml-cli/commit/d87f6dd))
434+
* Fixed linter report error ([e6e0c16](https://github.com/posthtml/posthtml-cli/commit/e6e0c16))
435+
* return reverse to only node 6 ([a12431f](https://github.com/posthtml/posthtml-cli/commit/a12431f))
436+
* Update devDep ([dab5cc5](https://github.com/posthtml/posthtml-cli/commit/dab5cc5))
437+
* Update MAINTAINERS ([c2a2908](https://github.com/posthtml/posthtml-cli/commit/c2a2908))
427438

428439

429440

430441
## <small>0.2.4 (2016-06-16)</small>
431442

432443
* bump ([89e5c62](https://github.com/posthtml/posthtml-cli/commit/89e5c62))
433444
* Fixed #94, try to return support old node ([203d3d7](https://github.com/posthtml/posthtml-cli/commit/203d3d7)), closes [#94](https://github.com/posthtml/posthtml-cli/issues/94)
434-
* Fixed linter report error ([e6e0c16](https://github.com/posthtml/posthtml-cli/commit/e6e0c16))
435445
* not support less node 6 ([09b1776](https://github.com/posthtml/posthtml-cli/commit/09b1776))
436-
* Update devDep ([dab5cc5](https://github.com/posthtml/posthtml-cli/commit/dab5cc5))
437446
* Update package.json ([ff9af7d](https://github.com/posthtml/posthtml-cli/commit/ff9af7d))
438447
* Update package.json ([345ce01](https://github.com/posthtml/posthtml-cli/commit/345ce01))
439448
* Update README.md ([6bcc5b0](https://github.com/posthtml/posthtml-cli/commit/6bcc5b0))

package.json

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "posthtml-cli",
3-
"version": "0.5.1",
3+
"version": "0.5.2",
44
"description": "CLI for posthtml",
55
"license": "MIT",
66
"repository": "posthtml/posthtml-cli",
@@ -34,52 +34,52 @@
3434
"cli"
3535
],
3636
"dependencies": {
37-
"cosmiconfig": "^5.2.1",
38-
"fast-glob": "^3.0.2",
37+
"cosmiconfig": "^6.0.0",
38+
"fast-glob": "^3.1.1",
3939
"make-dir": "^3.0.0",
40-
"meow": "^5.0.0",
41-
"merge-options": "^1.0.1",
42-
"posthtml": "^0.11.4",
40+
"meow": "^6.0.0",
41+
"merge-options": "^2.0.0",
42+
"posthtml": "^0.12.0",
4343
"to-camel-case": "^1.0.0"
4444
},
4545
"devDependencies": {
46-
"@babel/cli": "^7.4.4",
47-
"@babel/core": "^7.4.5",
48-
"@babel/node": "^7.4.5",
49-
"@babel/preset-env": "^7.4.5",
50-
"@babel/register": "^7.4.4",
51-
"@commitlint/cli": "^8.0.0",
52-
"@commitlint/config-angular": "^8.0.0",
53-
"acorn": "^6.1.1",
46+
"@babel/cli": "^7.8.3",
47+
"@babel/core": "^7.8.3",
48+
"@babel/node": "^7.8.3",
49+
"@babel/preset-env": "^7.8.3",
50+
"@babel/register": "^7.8.3",
51+
"@commitlint/cli": "^8.3.5",
52+
"@commitlint/config-angular": "^8.3.4",
53+
"acorn": "^7.1.0",
5454
"ava": "*",
55-
"babel-eslint": "^10.0.2",
56-
"babel-preset-minify": "^0.5.0",
55+
"babel-eslint": "^10.0.3",
56+
"babel-preset-minify": "^0.5.1",
5757
"clinton": "^0.14.0",
58-
"conventional-changelog-cli": "^2.0.21",
59-
"coveralls": "^3.0.4",
60-
"cpy": "^7.3.0",
61-
"eslint": "^6.0.1",
62-
"eslint-config-xo": "^0.26.0",
63-
"eslint-config-xo-space": "^0.21.0",
64-
"eslint-plugin-ava": "^7.1.0",
58+
"conventional-changelog-cli": "^2.0.31",
59+
"coveralls": "^3.0.9",
60+
"cpy": "^8.0.0",
61+
"eslint": "^6.8.0",
62+
"eslint-config-xo": "^0.27.2",
63+
"eslint-config-xo-space": "^0.22.0",
64+
"eslint-plugin-ava": "^10.0.0",
6565
"eslint-plugin-babel": "^5.3.0",
6666
"eslint-plugin-html": "^6.0.0",
67-
"eslint-plugin-import": "^2.18.0",
68-
"eslint-plugin-markdown": "^1.0.0",
69-
"eslint-plugin-node": "^9.1.0",
67+
"eslint-plugin-import": "^2.20.0",
68+
"eslint-plugin-markdown": "^1.0.1",
69+
"eslint-plugin-node": "^11.0.0",
7070
"eslint-plugin-promise": "^4.1.1",
71-
"eslint-plugin-unicorn": "^9.1.1",
72-
"execa": "^2.0.0",
73-
"husky": "^2.5.0",
71+
"eslint-plugin-unicorn": "^15.0.1",
72+
"execa": "^4.0.0",
73+
"husky": "^4.0.10",
7474
"is-promise": "^2.1.0",
75-
"lint-staged": "^8.2.1",
75+
"lint-staged": "^10.0.1",
7676
"merge": "^1.2.1",
77-
"nyc": "^14.1.1",
77+
"nyc": "^15.0.0",
7878
"posthtml-bem": "^0.2.2",
7979
"posthtml-css-modules": "^0.1.3",
8080
"posthtml-custom-elements": "^1.1.1",
81-
"read-pkg": "^5.1.1",
82-
"rimraf": "^2.6.3",
81+
"read-pkg": "^5.2.0",
82+
"rimraf": "^3.0.0",
8383
"tempfile": "^3.0.0"
8484
},
8585
"readme": "posthtml/posthtml-cli/readme",
@@ -108,7 +108,7 @@
108108
"@babel/preset-env",
109109
{
110110
"targets": {
111-
"node": 6
111+
"node": 8
112112
}
113113
}
114114
],

src/cfg-resolve.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import cosmiconfig from 'cosmiconfig';
1+
import {cosmiconfigSync} from 'cosmiconfig';
22
import toCamelCase from 'to-camel-case';
33
import mergeOptions from 'merge-options';
44

55
export default ({input, flags = {}}) => {
6-
const explorer = cosmiconfig('posthtml');
6+
const explorer = cosmiconfigSync('posthtml');
77
let {config, use, output} = flags;
88

99
if (config) {
10-
({config} = explorer.loadSync(config));
10+
({config} = explorer.load(config));
1111
}
1212

1313
if (use) {
1414
use = [].concat(use).reduce((cfg, key) => mergeOptions(cfg, {plugins: {[key]: flags[toCamelCase(key)] || {}}}), {});
1515
}
1616

1717
if (!config && !use) {
18-
({config} = explorer.searchSync());
18+
({config} = explorer.search());
1919
}
2020

2121
return mergeOptions({

src/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const cli = meow(`
4646
alias: 'o'
4747
},
4848
use: {
49-
type: 'Array',
49+
type: 'array',
5050
alias: 'u'
5151
}
5252
}

0 commit comments

Comments
 (0)