snapport 1.2.0 → 1.2.1
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
CHANGED
|
@@ -72,12 +72,17 @@ initPortfolio('seu-usuario-github', {
|
|
|
72
72
|
|
|
73
73
|
### Via npm
|
|
74
74
|
|
|
75
|
+
Instale o pacote:
|
|
76
|
+
|
|
75
77
|
```bash
|
|
76
78
|
npm install snapport
|
|
77
79
|
```
|
|
78
80
|
|
|
81
|
+
No seu arquivo JavaScript/TypeScript, importe o JS e o CSS:
|
|
82
|
+
|
|
79
83
|
```js
|
|
80
84
|
import { initPortfolio } from 'snapport';
|
|
85
|
+
import 'snapport/dist/style.css';
|
|
81
86
|
|
|
82
87
|
initPortfolio('seu-usuario-github', {
|
|
83
88
|
tag: 'port',
|
|
@@ -89,9 +94,15 @@ initPortfolio('seu-usuario-github', {
|
|
|
89
94
|
|
|
90
95
|
### Via CDN (vanilla JS)
|
|
91
96
|
|
|
97
|
+
No seu HTML, inclua o CSS no `<head>` e o script no `<body>`:
|
|
98
|
+
|
|
92
99
|
```html
|
|
100
|
+
<!-- No seu <head> -->
|
|
101
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/snapport/dist/style.css"/>
|
|
102
|
+
|
|
103
|
+
<!-- No final do <body> -->
|
|
93
104
|
<script type="module">
|
|
94
|
-
import { initPortfolio } from 'https://cdn.jsdelivr.net/npm/snapport/dist/
|
|
105
|
+
import { initPortfolio } from 'https://cdn.jsdelivr.net/npm/snapport/dist/snapport.js';
|
|
95
106
|
|
|
96
107
|
initPortfolio('seu-usuario-github', {
|
|
97
108
|
tag: 'port',
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "snapport",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.1",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"portfolio",
|
|
7
7
|
"github-api",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"files": [
|
|
17
17
|
"dist"
|
|
18
18
|
],
|
|
19
|
-
"main": "./dist/
|
|
20
|
-
"module": "./dist/
|
|
19
|
+
"main": "./dist/snapport.umd.cjs",
|
|
20
|
+
"module": "./dist/snapport.js",
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
22
|
"exports": {
|
|
23
23
|
".": {
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
|
-
"import": "./dist/
|
|
26
|
-
"require": "./dist/
|
|
25
|
+
"import": "./dist/snapport.js",
|
|
26
|
+
"require": "./dist/snapport.umd.cjs"
|
|
27
27
|
},
|
|
28
|
-
"./style.css": "./dist/
|
|
28
|
+
"./style.css": "./dist/snapport.css"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"dev": "vite playground",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|