@geolonia/embed 2.0.0-pre.4 → 2.0.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/.github/workflows/build.yml +6 -6
- package/Dockerfile +2 -2
- package/README.md +1 -1
- package/dist/embed +2 -1
- package/dist/embed-chunks/{635ae96b64eb1d5a7397.js → 2e295cdb0214d17e9c48.js} +1 -1
- package/dist/embed.js +2 -1
- package/dist/{embed-chunks/aeb2140c0187adbc1cd0.js.LICENSE.txt → embed.js.LICENSE.txt} +0 -0
- package/package.json +1 -1
- package/src/embed.js +2 -0
- package/src/lib/simplestyle.js +84 -63
- package/src/lib/simplestyle.test.js +135 -0
- package/test/snapshot.test.js +2 -1
- package/dist/embed-chunks/1dad19808d6d2de0bb8c.js +0 -1
- package/dist/embed-chunks/aeb2140c0187adbc1cd0.js +0 -2
|
@@ -27,10 +27,10 @@ jobs:
|
|
|
27
27
|
with:
|
|
28
28
|
path: node_modules
|
|
29
29
|
key: modules-cache-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
|
30
|
-
- run:
|
|
31
|
-
- run:
|
|
32
|
-
- run:
|
|
33
|
-
- run:
|
|
30
|
+
- run: yarn install
|
|
31
|
+
- run: yarn lint
|
|
32
|
+
- run: yarn test
|
|
33
|
+
- run: yarn build
|
|
34
34
|
- name: save the built
|
|
35
35
|
uses: actions/upload-artifact@v2
|
|
36
36
|
if: "!failure()"
|
|
@@ -54,8 +54,8 @@ jobs:
|
|
|
54
54
|
with:
|
|
55
55
|
path: node_modules
|
|
56
56
|
key: modules-cache-v1-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
|
|
57
|
-
- run:
|
|
58
|
-
- run: "
|
|
57
|
+
- run: yarn install
|
|
58
|
+
- run: "yarn build"
|
|
59
59
|
- name: Build and push to local registry
|
|
60
60
|
uses: docker/build-push-action@v2
|
|
61
61
|
with:
|
package/Dockerfile
CHANGED
|
@@ -42,7 +42,7 @@ RUN apt-get update && apt-get install -y \
|
|
|
42
42
|
fonts-ipafont-mincho \
|
|
43
43
|
fonts-ipafont-gothic
|
|
44
44
|
COPY . .
|
|
45
|
-
RUN
|
|
45
|
+
RUN yarn install
|
|
46
46
|
ENV GEOLONIA_API_KEY=YOUR-API-KEY
|
|
47
47
|
ENV NO_SANDBOX=true
|
|
48
|
-
ENTRYPOINT ["
|
|
48
|
+
ENTRYPOINT ["yarn", "test:snapshot"]
|
package/README.md
CHANGED
|
@@ -23,7 +23,7 @@ Specify `.geolonia` class for target elements.
|
|
|
23
23
|
<html>
|
|
24
24
|
<body>
|
|
25
25
|
<div class="geolonia" ...></div>
|
|
26
|
-
<script src="https://cdn.geolonia.com/v1/embed?geolonia-api-key=API-KEY"></script>
|
|
26
|
+
<script src="https://cdn.geolonia.com/v1/embed?geolonia-api-key=YOUR-API-KEY"></script>
|
|
27
27
|
</body>
|
|
28
28
|
</html>
|
|
29
29
|
```
|