Minimum preparation for npm publishing #81
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The goal here is to get the package up on npm. For this, several dependencies were updated and an index.js file was added to serve as the package entrypoint. For now, the ShaclVue component is provided as the default export, and the only current named export is the
useShapeData
composable, seeshacl-vue/src/composables/shapedata.js
Line 17 in d52103a
Other projects installing and using
shacl-vue
as a dependency can then:import ShaclVue from 'shacl-vue'
import { useShapeData } from 'shacl-vue'
Using these imports, respectively, would be done as follows:
for the VueJS component:
and for the function: