@abi-software/scaffoldvuer 0.1.58 → 0.1.59
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 +76 -0
- package/dist/scaffoldvuer-wc.common.js +82 -50
- package/dist/scaffoldvuer-wc.umd.js +82 -50
- package/dist/scaffoldvuer-wc.umd.min.js +82 -50
- package/dist/scaffoldvuer.common.js +84 -74
- package/dist/scaffoldvuer.common.js.map +1 -1
- package/dist/scaffoldvuer.css +1 -1
- package/dist/scaffoldvuer.umd.js +84 -74
- package/dist/scaffoldvuer.umd.js.map +1 -1
- package/dist/scaffoldvuer.umd.min.js +1 -1
- package/dist/scaffoldvuer.umd.min.js.map +1 -1
- package/package-lock.json +921 -703
- package/package.json +1 -1
- package/src/App.vue +6 -0
- package/src/components/TreeControls.vue +2 -3
package/README.md
CHANGED
|
@@ -86,3 +86,79 @@ npm run serve
|
|
|
86
86
|
## Example
|
|
87
87
|
The following example showcases ScaffoldVuer in action: https://mapcore-demo.org/current/scaffoldvuer/
|
|
88
88
|
|
|
89
|
+
## Scaffoldvuer release process:
|
|
90
|
+
|
|
91
|
+
### Versioning
|
|
92
|
+
|
|
93
|
+
Scaffoldvuer uses [semantic versioning](https://semver.org/).
|
|
94
|
+
|
|
95
|
+
If any changes are experimental or parallel to the main development, [npm dist tags](https://docs.npmjs.com/cli/v9/commands/npm-dist-tag) are used to keep this version from being the default when `npm install @abi-software/scaffoldvuer` is used.
|
|
96
|
+
|
|
97
|
+
Dist tags can be used like so:
|
|
98
|
+
```
|
|
99
|
+
npm publish --tag <tag>
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`<tag>` is the dist tag to add. In example: `npm publish --tag beta`
|
|
103
|
+
|
|
104
|
+
### Publishing
|
|
105
|
+
|
|
106
|
+
#### 1. Update the package number in [package.json](https://github.com/ABI-Software/scaffoldvuer/blob/main/package.json)
|
|
107
|
+
#### 2. Bundles for scaffoldvuer can be built by using
|
|
108
|
+
```
|
|
109
|
+
npm run build-bundle
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
This builds the package to be digested by other vue packages by importing either the build or the source.
|
|
113
|
+
|
|
114
|
+
##### Build import
|
|
115
|
+
```
|
|
116
|
+
import { ScaffoldVuer } from "@abi-software/scaffoldvuer";
|
|
117
|
+
import '@abi-software/scaffoldvuer/dist/map-side-bar.css';
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
##### Source import (used in [abi-software/mapintegratedvuer](https://github.com/abi-Software/mapintegratedvuer))
|
|
121
|
+
```
|
|
122
|
+
import { ScaffoldVuer } from "@abi-software/scaffoldvuer/src/components/index.js";
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
#### 3. Publish with `npm publish` in the package directory
|
|
126
|
+
|
|
127
|
+
### Testing
|
|
128
|
+
|
|
129
|
+
#### Testing [`zincjs`](https://github.com/alan-wu/ZincJS)
|
|
130
|
+
Check that the version of zincjs used is running correctly and passing the tests.
|
|
131
|
+
|
|
132
|
+
Test runs can be found here:
|
|
133
|
+
https://autotest.bioeng.auckland.ac.nz/jenkins/blue/organizations/jenkins/ZincJS/activity
|
|
134
|
+
|
|
135
|
+
Click on the latest test and search for `zincjs@` to find the zincjs version number.
|
|
136
|
+
|
|
137
|
+
#### Visual check
|
|
138
|
+
Open the links below, checking that they load in, render correctly and are usable:
|
|
139
|
+
|
|
140
|
+
Region
|
|
141
|
+
http://localhost:8081/#/?url=https://mapcore-bucket1.s3.us-west-2.amazonaws.com/format-testing/MyExport_metadata.json
|
|
142
|
+
|
|
143
|
+
Glyph small
|
|
144
|
+
http://localhost:8081/#/?url=https://mapcore-bucket1.s3.us-west-2.amazonaws.com/format-testing/TimeGlyphs/timeGlyphs_1.json
|
|
145
|
+
|
|
146
|
+
Lines
|
|
147
|
+
http://localhost:8081/#/?url=https://mapcore-bucket1.s3.us-west-2.amazonaws.com/format-testing/Lines/lines_metadata.json
|
|
148
|
+
|
|
149
|
+
Glyph large
|
|
150
|
+
http://localhost:8081/#/?url=https://mapcore-bucket1.s3.us-west-2.amazonaws.com/format-testing/TimeGlyphs/timeGlyphs_large_metadata.json
|
|
151
|
+
|
|
152
|
+
Points
|
|
153
|
+
http://localhost:8081/#/?url=https://mapcore-bucket1.s3.us-west-2.amazonaws.com/format-testing/Points/point_time_metadata.json
|
|
154
|
+
|
|
155
|
+
Surfaces
|
|
156
|
+
http://localhost:8081/#/?url=https://mapcore-bucket1.s3.us-west-2.amazonaws.com/format-testing/Surfaces/beating_heart_metadata.json
|
|
157
|
+
|
|
158
|
+
#### Testing the build bundle in other packages
|
|
159
|
+
Use one of the following methods for testing the scaffoldvuer build in apps that depend on this package:
|
|
160
|
+
1. Use [`npm link`](https://docs.npmjs.com/cli/v8/commands/npm-link) to test scaffoldvuer works in apps that import it.
|
|
161
|
+
2. Use symlink, or copy and paste the `/dist` directory.
|
|
162
|
+
3. Modify the package.json to <your-npm-account>/scaffoldvuer and publish. (Careful! If this is not done the version will need to be [deprecated](https://docs.npmjs.com/cli/v8/commands/npm-deprecate)
|
|
163
|
+
|
|
164
|
+
One of the above methods will often need to be used in [abi-software/mapintegratedvuer](https://github.com/abi-Software/mapintegratedvuer)
|