compostjs 0.0.8 → 0.0.11
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 +4 -4
- package/copy-latest.sh +1 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -16,8 +16,8 @@ using [the Fable compiler](https://fable.io). To build Compost, you will need to
|
|
|
16
16
|
[Ionide plugin](http://ionide.io/) for Visual Studio Code.
|
|
17
17
|
|
|
18
18
|
### Developing Compost
|
|
19
|
-
To work on Compost, you can use the
|
|
20
|
-
`
|
|
19
|
+
To work on Compost, you can use the Vite dev server. The following will serve the
|
|
20
|
+
`index.html` file and compile the `src/project/demos.js` source code at
|
|
21
21
|
http://localhost:8080
|
|
22
22
|
|
|
23
23
|
```
|
|
@@ -26,8 +26,8 @@ npm start
|
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
### Building Compost
|
|
29
|
-
There are two ways to build Compost. Running `npm run build` will
|
|
30
|
-
|
|
29
|
+
There are two ways to build Compost. Running `npm run build` will
|
|
30
|
+
generate nice JavaScript files for a NPM package in the `dist` folder, which is then
|
|
31
31
|
packaged and published on NPM. Running `npm run standalone` builds a standalone
|
|
32
32
|
JavaScript file that is added to the `releases` folder of the `docs` with the current
|
|
33
33
|
version number in the filename (and also updates the `latest` file).
|
package/copy-latest.sh
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cp docs/releases/compost-$(npm pkg get version | tr -d '"').js docs/releases/compost-latest.js
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "compostjs",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Composable data visualization library for JavaScript",
|
|
6
6
|
"author": "Tomas Petricek",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"scripts": {
|
|
9
9
|
"start": "dotnet fable watch src/compost/compost.fsproj --run npx vite",
|
|
10
|
-
"build": "dotnet fable src/compost/compost.fsproj -o dist
|
|
11
|
-
"standalone": "dotnet fable src/compost/compost.fsproj --run npx vite build &&
|
|
12
|
-
"
|
|
13
|
-
"release": "np --yolo --no-release-draft"
|
|
10
|
+
"build": "dotnet fable src/compost/compost.fsproj -o dist",
|
|
11
|
+
"standalone": "dotnet fable src/compost/compost.fsproj --run npx vite build && copy-latest.sh",
|
|
12
|
+
"updatejs": "npm run standalone && git add . && git commit -m \"Update standalone release file in docs\"",
|
|
13
|
+
"release": "np --yolo --no-release-draft --no-publish && npm run build && npm run updatejs && npm publish"
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|