@geolonia/embed 2.0.0-pre.0 → 2.0.0-pre.4
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/.eslintrc.js +1 -0
- package/.github/workflows/build.yml +9 -2
- package/README.md +7 -1
- package/dist/embed +1 -0
- package/dist/embed-chunks/1dad19808d6d2de0bb8c.js +1 -0
- package/dist/embed-chunks/635ae96b64eb1d5a7397.js +1 -0
- package/dist/embed-chunks/aeb2140c0187adbc1cd0.js +2 -0
- package/dist/embed-chunks/aeb2140c0187adbc1cd0.js.LICENSE.txt +6 -0
- package/dist/embed.js +1 -17
- package/package.json +10 -10
- package/src/embed.d.ts +8 -7
- package/src/embed.js +18 -7
- package/src/lib/geolonia-map.js +13 -3
- package/src/lib/util.js +18 -4
- package/src/lib/util.test.js +8 -1
- package/src/style.css +7 -0
- package/webpack.config.js +6 -3
package/.eslintrc.js
CHANGED
|
@@ -55,7 +55,7 @@ jobs:
|
|
|
55
55
|
path: node_modules
|
|
56
56
|
key: modules-cache-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
|
57
57
|
- run: npm install
|
|
58
|
-
- run: "npm run build
|
|
58
|
+
- run: "npm run build"
|
|
59
59
|
- name: Build and push to local registry
|
|
60
60
|
uses: docker/build-push-action@v2
|
|
61
61
|
with:
|
|
@@ -117,6 +117,13 @@ jobs:
|
|
|
117
117
|
uses: actions/download-artifact@v2
|
|
118
118
|
with:
|
|
119
119
|
name: the-built
|
|
120
|
-
-
|
|
120
|
+
- name: 'Publish to NPM (latest)'
|
|
121
|
+
if: "!contains(github.ref, '-pre.')"
|
|
122
|
+
run: npm publish --access=public
|
|
123
|
+
env:
|
|
124
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
125
|
+
- name: 'Publish to NPM (next)'
|
|
126
|
+
if: "contains(github.ref, '-pre.')"
|
|
127
|
+
run: npm publish --access=public --tag=next
|
|
121
128
|
env:
|
|
122
129
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/README.md
CHANGED
|
@@ -57,6 +57,12 @@ $ npm run build # build production bundle
|
|
|
57
57
|
|
|
58
58
|
Then you can see `http://localhost:3000/`.
|
|
59
59
|
|
|
60
|
+
## Run Bundle analyzer
|
|
61
|
+
|
|
62
|
+
```shell
|
|
63
|
+
$ npm run analyze
|
|
64
|
+
```
|
|
65
|
+
|
|
60
66
|
## Snapshot testing
|
|
61
67
|
|
|
62
68
|
### preparation
|
|
@@ -64,7 +70,7 @@ Then you can see `http://localhost:3000/`.
|
|
|
64
70
|
```shell
|
|
65
71
|
$ cp .envrc.sample .envrc
|
|
66
72
|
$ vi .envrc
|
|
67
|
-
$ npm run build
|
|
73
|
+
$ npm run build
|
|
68
74
|
$ docker build . -t geolonia/embed
|
|
69
75
|
```
|
|
70
76
|
|