Skip to content

Commit 8e9c9df

Browse files
committed
0.0.8
1 parent b7c4726 commit 8e9c9df

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

doc/deployment.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,31 @@ This package is deployed with the prebuilt binaries using [prebuildify](https://
88

99
2. `npm install -g prebuildify`
1010

11+
If running prebuilds on linux on Windows, see here to install the build tools:
12+
13+
- https://tecadmin.net/install-development-tools-on-ubuntu/
14+
15+
1116
## Deployment
1217

13-
`npm run deploy`
18+
First, bump the version number in [package.json](../package.json). I don't commit to git yet because the following steps could find errors that you want to clean up first.
1419

15-
The npm `prepublishOnly` script will create a set of binary prebuilds using prebuildify.
20+
I'm deploying from a Windows machine, but I want to pre-build the linux binary files as well so I open up an [ubuntu shell](https://www.microsoft.com/en-us/store/p/ubuntu/9nblggh4msv6) and run the following shell command to generate the linux release binaries:
1621

17-
If running prebuilds on linux on Windows, see here to install the build tools:
22+
```sh
23+
prebuildify --napi
24+
```
1825

19-
- https://tecadmin.net/install-development-tools-on-ubuntu/
26+
Going back into Windows, I run:
27+
28+
```sh
29+
npm run build-and-deploy
30+
```
31+
32+
This makes the prebuilds for Windows, runs some tests, and **publishes to npm**.
33+
34+
Then I commit to git, and create git tag on the commit with the following command:
35+
36+
```sh
37+
git tag -a "version-number-here"
38+
```

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "microvium",
33
"private": false,
4-
"version": "0.0.7",
4+
"version": "0.0.8",
55
"description": "A compact, embeddable scripting engine for microcontrollers for executing small scripts written in a subset of JavaScript.",
66
"main": "dist/lib.js",
77
"bin": {
@@ -15,7 +15,7 @@
1515
"test": "set RUN_LONG_TESTS=1 && node-gyp build --debug && tsc && mocha",
1616
"check-for-wip": "ts-node scripts/check-for-wip",
1717
"pass": "ts-node scripts/pass",
18-
"build-and-deploy": "npm run check-for-wip && npm run rebuild:release && npm run test:no-build && npm publish --access=public",
18+
"build-and-deploy": "npm run check-for-wip && npm run rebuild:release && ts-node scripts/preprocess-microvium && npm run test:no-build && npm publish --access=public",
1919
"rebuild": "node-gyp rebuild --debug && tsc",
2020
"rebuild:release": "node-gyp rebuild --debug && tsc",
2121
"build:watch": "tsc --watch --preserveWatchOutput false",

0 commit comments

Comments
 (0)