@travi/babel-preset 3.0.86 → 3.0.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.remarkrc.js +14 -0
- package/README.md +7 -7
- package/package.json +13 -9
package/.remarkrc.js
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
// https://github.com/remarkjs/remark/tree/master/packages/remark-stringify#options
|
2
|
+
exports.settings = {
|
3
|
+
listItemIndent: 1,
|
4
|
+
emphasis: '_',
|
5
|
+
strong: '_',
|
6
|
+
bullet: '*',
|
7
|
+
incrementListMarker: false
|
8
|
+
};
|
9
|
+
|
10
|
+
exports.plugins = [
|
11
|
+
'remark-preset-lint-travi',
|
12
|
+
['remark-toc', {tight: true}],
|
13
|
+
['remark-usage', {heading: 'example'}]
|
14
|
+
];
|
package/README.md
CHANGED
@@ -10,7 +10,7 @@ My shareable babel preset
|
|
10
10
|
|
11
11
|
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
|
12
12
|
|
13
|
-
|
13
|
+
## Table of Contents
|
14
14
|
|
15
15
|
* [Usage](#usage)
|
16
16
|
* [Installation](#installation)
|
@@ -23,8 +23,6 @@ My shareable babel preset
|
|
23
23
|
* [Dependencies](#dependencies)
|
24
24
|
* [Verification](#verification)
|
25
25
|
|
26
|
-
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
|
27
|
-
|
28
26
|
## Usage
|
29
27
|
|
30
28
|
<!--consumer-badges start -->
|
@@ -53,7 +51,8 @@ features.
|
|
53
51
|
|
54
52
|
#### In React projects
|
55
53
|
|
56
|
-
This will target the current node version, but will also transpile React
|
54
|
+
This will target the current node version, but will also transpile React
|
55
|
+
features
|
57
56
|
|
58
57
|
```json
|
59
58
|
{
|
@@ -63,9 +62,10 @@ This will target the current node version, but will also transpile React feature
|
|
63
62
|
|
64
63
|
### Via [Rollup](https://rollupjs.org)
|
65
64
|
|
66
|
-
* Prevent transpilation of module imports/exports so `Rollup` can optimize
|
67
|
-
|
68
|
-
|
65
|
+
* Prevent transpilation of module imports/exports so `Rollup` can optimize
|
66
|
+
properly
|
67
|
+
* Transpile to the lowest common denominator of your expected consumers'
|
68
|
+
execution environments
|
69
69
|
|
70
70
|
In the `rollup.config.js`:
|
71
71
|
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@travi/babel-preset",
|
3
3
|
"description": "My shareable babel preset",
|
4
|
-
"version": "3.0.
|
4
|
+
"version": "3.0.89",
|
5
5
|
"main": "lib/index.cjs.js",
|
6
6
|
"module": "lib/index.es.js",
|
7
7
|
"license": "MIT",
|
@@ -12,11 +12,12 @@
|
|
12
12
|
"scripts": {
|
13
13
|
"clean": "rimraf lib/",
|
14
14
|
"lint:js": "eslint . --cache",
|
15
|
+
"lint:md": "remark . --frail",
|
15
16
|
"test": "run-s lint:*",
|
16
17
|
"build:js": "rollup -c",
|
17
18
|
"build": "run-s clean build:*",
|
18
19
|
"watch": "run-s 'build:js -- --watch'",
|
19
|
-
"generate:
|
20
|
+
"generate:md": "remark . --output",
|
20
21
|
"prepack": "run-s build"
|
21
22
|
},
|
22
23
|
"publishConfig": {
|
@@ -28,21 +29,24 @@
|
|
28
29
|
}
|
29
30
|
},
|
30
31
|
"devDependencies": {
|
31
|
-
"@travi/any": "2.
|
32
|
-
"@travi/eslint-config": "3.0.
|
33
|
-
"@travi/eslint-config-mocha": "1.0.
|
32
|
+
"@travi/any": "2.1.3",
|
33
|
+
"@travi/eslint-config": "3.0.3",
|
34
|
+
"@travi/eslint-config-mocha": "1.0.18",
|
34
35
|
"chai": "4.3.6",
|
35
|
-
"commitlint-config-travi": "1.4.
|
36
|
+
"commitlint-config-travi": "1.4.16",
|
36
37
|
"cz-conventional-changelog": "3.3.0",
|
37
|
-
"doctoc": "2.2.0",
|
38
38
|
"husky": "8.0.1",
|
39
39
|
"npm-run-all": "4.1.5",
|
40
|
+
"remark-cli": "11.0.0",
|
41
|
+
"remark-preset-lint-travi": "4.0.0",
|
42
|
+
"remark-toc": "8.0.1",
|
43
|
+
"remark-usage": "10.0.1",
|
40
44
|
"rimraf": "3.0.2",
|
41
|
-
"rollup": "2.
|
45
|
+
"rollup": "2.75.7",
|
42
46
|
"rollup-plugin-auto-external": "2.0.0",
|
43
47
|
"sinon": "14.0.0"
|
44
48
|
},
|
45
49
|
"dependencies": {
|
46
|
-
"@form8ion/babel-preset": "1.6.
|
50
|
+
"@form8ion/babel-preset": "1.6.92"
|
47
51
|
}
|
48
52
|
}
|