Skip to content

Commit a14cc9e

Browse files
committed
Publish browser version of package to npm
Extract package dependency to script tag in demo Also trying to fix publish pipeline in package and ci
1 parent 3dc5228 commit a14cc9e

File tree

11 files changed

+10058
-47
lines changed

11 files changed

+10058
-47
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
release:
55
types: [created]
66

7+
defaults:
8+
run:
9+
working-directory: ./package
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
@@ -14,6 +18,6 @@ jobs:
1418
node-version: '12.x'
1519
registry-url: 'https://registry.npmjs.org'
1620
- run: npm install
17-
- run: npm publish package
21+
- run: npm publish
1822
env:
1923
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

demo/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
},
2222
"dependencies": {
2323
"blockly": "^5.20210325.0",
24-
"sparql-blockly": "^0.0.4-14",
24+
"sparql-blockly": "^0.0.4-15",
2525
"sparqljs": "^3.4.1"
2626
}
2727
}

demo/webpack.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ const config: webpack.Configuration = {
77
filename: "app.js",
88
},
99
externals: {
10-
"blockly": "Blockly"
10+
"blockly": "Blockly",
11+
"sparql-blockly": "SparqlBlockly"
1112
},
1213
resolve: {
1314
extensions: [".ts", ".js"]

docs/app.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
<link href="style.css" rel="stylesheet" />
4646
<script src="https://unpkg.com/blockly/blockly.min.js"></script>
47+
<script src="https://unpkg.com/sparql-blockly/sparql-blockly.min.js"></script>
4748
<script src="app.js" defer></script>
4849
</head>
4950
<body>

package/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
coverage
22
dist
3+
sparql-blockly.min.js

0 commit comments

Comments
 (0)