new format for publishing

This commit is contained in:
adueck 2022-10-09 15:03:13 +05:00
parent a077931b3a
commit 47f37b2c81
7 changed files with 28 additions and 10 deletions

View File

@ -8,6 +8,13 @@ A pashto inflection and verb conjugation engine, as well as functions and compon
Also includes the [Pashto Verb Explorer](https://verbs.lingdocs.com) website.
This library is **published as two libraries**:
- @lingdocs/inflect
- The core inflection engine with grammatical information and tools for processing LingDocs dictionary entries and Pashto text.
- @lingdocs/ps-react
- @lingdocs/inflect plus react components for displaying Pashto text, phrase engine UI etc.
## Development
The Pashto Verb Explorer website can be used to view and play with the verb conjugations and various components.
@ -31,9 +38,9 @@ yarn build-website
This outputs a site at `/build`
### Library
### Libraries
To build the `pashto-inflector` library ready for publishing to NPM:
To build the `@lingdocs/inflet` and `@lingdocs/ps-react` libraries ready for publishing to NPM:
```
yarn build-library

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "pashto-inflector",
"version": "4.9.18",
"version": "5.0.0",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "pashto-inflector",
"version": "4.9.18",
"version": "5.0.0",
"hasInstallScript": true,
"license": "MIT",
"dependencies": {

View File

@ -1,6 +1,6 @@
{
"name": "pashto-inflector",
"version": "4.9.18",
"version": "5.0.0",
"author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com",
@ -31,6 +31,9 @@
"web-vitals": "^1.0.1"
},
"scripts": {
"patch": "npm version patch --no-git-tag-version && cd src/lib && npm version patch --no-git-tag-version && cd ../components && npm version patch --no-git-tag-version",
"minor": "npm version minor --no-git-tag-version && cd src/lib && npm version minor --no-git-tag-version && cd ../components && npm version minor --no-git-tag-version",
"major": "npm version major --no-git-tag-version && cd src/lib && npm version major --no-git-tag-version && cd ../components && npm version major --no-git-tag-version",
"preinstall": "echo '*** Be sure to use yarn install-r not yarn install ***!'",
"start": "react-scripts start",
"build": "react-scripts build",

3
src/components/README.md Normal file
View File

@ -0,0 +1,3 @@
# @lingdocs/inflect
The core inflection engine with grammatical information and tools for processing LingDocs dictionary entries and Pashto text.

View File

@ -1,10 +1,10 @@
{
"name": "@lingdocs/ps-react",
"version": "0.0.7",
"version": "5.0.0",
"description": "Pashto inflector library module with React components",
"main": "dist/components/library.js",
"module": "dist/components/library.js",
"types": "dist/components/library.d.ts",
"types": "dist/components/library.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/lingdocs/pashto-inflector.git"
@ -13,7 +13,8 @@
"registry": "https://npm.lingdocs.com"
},
"files": [
"dist"
"dist",
"README.md"
],
"scripts": {
"build": "echo \"build from repo root\""

3
src/lib/README.md Normal file
View File

@ -0,0 +1,3 @@
# @lingdocs/ps-react
The core inflection engine with grammatical information and tools for processing LingDocs dictionary entries and Pashto text (@lingdocs/inflect) plus react components for displaying Pashto text, and phrase engine UI etc.

View File

@ -1,6 +1,6 @@
{
"name": "@lingdocs/inflect",
"version": "0.0.7",
"version": "5.0.0",
"description": "Pashto inflector library",
"main": "dist/index.js",
"types": "dist/lib/library.d.ts",
@ -12,7 +12,8 @@
"registry": "https://npm.lingdocs.com"
},
"files": [
"dist"
"dist",
"README.md"
],
"scripts": {
"build": "echo \"build from repo root\""