@substrate-system/button 0.0.0 → 0.0.2
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/README.md +3 -3
- package/package.json +24 -20
package/README.md
CHANGED
|
@@ -16,15 +16,15 @@ A button web component, with a visual "loading" state.
|
|
|
16
16
|
|
|
17
17
|
<!-- toc -->
|
|
18
18
|
|
|
19
|
-
- [
|
|
19
|
+
- [Install](#install)
|
|
20
|
+
- [Dependencies](#dependencies)
|
|
20
21
|
- [API](#api)
|
|
21
22
|
* [ESM](#esm)
|
|
22
23
|
* [Common JS](#common-js)
|
|
23
24
|
- [CSS](#css)
|
|
24
25
|
* [Import CSS](#import-css)
|
|
25
26
|
* [Customize CSS via some variables](#customize-css-via-some-variables)
|
|
26
|
-
- [
|
|
27
|
-
* [JS](#js)
|
|
27
|
+
- [Use](#use)
|
|
28
28
|
* [HTML](#html)
|
|
29
29
|
* [pre-built](#pre-built)
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@substrate-system/button",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"./dist/*"
|
|
8
8
|
],
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"require": "./dist/index.cjs"
|
|
13
|
+
},
|
|
14
|
+
"./min": "./dist/index.min.js",
|
|
15
|
+
"./css": "./dist/index.css",
|
|
16
|
+
"./css/min": "./dist/index.min.css",
|
|
17
|
+
"./*": {
|
|
18
|
+
"import": [
|
|
19
|
+
"./dist/*.js",
|
|
20
|
+
"./dist/*"
|
|
21
|
+
],
|
|
22
|
+
"require": [
|
|
23
|
+
"./dist/*.cjs",
|
|
24
|
+
"./dist/*"
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
},
|
|
9
28
|
"scripts": {
|
|
10
29
|
"lint": "eslint \"./**/*.{ts,js}\"",
|
|
11
30
|
"test": "npm run build && npm run build-tests && npm run test-tape-run",
|
|
@@ -23,26 +42,11 @@
|
|
|
23
42
|
"toc": "markdown-toc --maxdepth 3 -i README.md",
|
|
24
43
|
"preversion": "npm run lint && stylelint src/*.css",
|
|
25
44
|
"version": "npm run toc && auto-changelog -p --template keepachangelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md README.md",
|
|
26
|
-
"postversion": "git push --follow-tags && npm publish",
|
|
45
|
+
"postversion": "git push --follow-tags && export $(cat .env | xargs) && npm publish && npm publish --@substrate-system:registry=\"https://registry.npmjs.org/\"",
|
|
27
46
|
"prepublishOnly": "npm run build"
|
|
28
47
|
},
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"import": "./dist/index.js",
|
|
32
|
-
"require": "./dist/index.cjs"
|
|
33
|
-
},
|
|
34
|
-
"./css": "./dist/index.css",
|
|
35
|
-
"./css/min": "./dist/index.min.css",
|
|
36
|
-
"./*": {
|
|
37
|
-
"import": [
|
|
38
|
-
"./dist/*.js",
|
|
39
|
-
"./dist/*"
|
|
40
|
-
],
|
|
41
|
-
"require": [
|
|
42
|
-
"./dist/*.cjs",
|
|
43
|
-
"./dist/*"
|
|
44
|
-
]
|
|
45
|
-
}
|
|
48
|
+
"publishConfig": {
|
|
49
|
+
"registry": "http://nexus.dsv.myhost/nexus/repository/npmjs"
|
|
46
50
|
},
|
|
47
51
|
"dependencies": {},
|
|
48
52
|
"devDependencies": {
|
|
@@ -70,4 +74,4 @@
|
|
|
70
74
|
},
|
|
71
75
|
"author": "nichoth <nichoth@nichoth.com> (https://nichoth.com)",
|
|
72
76
|
"license": "MIT"
|
|
73
|
-
}
|
|
77
|
+
}
|