css packaging

This commit is contained in:
adueck 2023-07-23 10:43:10 +04:00
parent 4ddea6594f
commit 21a7a76ed2
6 changed files with 25 additions and 19 deletions

4
package-lock.json generated
View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "pashto-inflector", "name": "pashto-inflector",
"version": "5.10.0", "version": "5.10.1",
"author": "lingdocs.com", "author": "lingdocs.com",
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations", "description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
"homepage": "https://verbs.lingdocs.com", "homepage": "https://verbs.lingdocs.com",

View File

@ -1,12 +1,12 @@
{ {
"name": "@lingdocs/ps-react", "name": "@lingdocs/ps-react",
"version": "5.10.0", "version": "5.10.1",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@lingdocs/ps-react", "name": "@lingdocs/ps-react",
"version": "5.10.0", "version": "5.10.1",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@formkit/auto-animate": "^1.0.0-beta.3", "@formkit/auto-animate": "^1.0.0-beta.3",

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/ps-react", "name": "@lingdocs/ps-react",
"version": "5.10.0", "version": "5.10.1",
"description": "Pashto inflector library module with React components", "description": "Pashto inflector library module with React components",
"main": "dist/components/library.js", "main": "dist/components/library.js",
"module": "dist/components/library.js", "module": "dist/components/library.js",

View File

@ -3,20 +3,26 @@ const fs = require("fs-extra");
const path = require("path"); const path = require("path");
glob("src/verb-info/*.svg", (err, files) => { glob("src/verb-info/*.svg", (err, files) => {
if (err) throw err; if (err) throw err;
files.forEach((file) => { files.forEach((file) => {
fs.copySync(file, `dist/components/src/verb-info/${path.basename(file)}`); fs.copySync(file, `dist/components/src/verb-info/${path.basename(file)}`);
}); });
}); });
glob("src/vp-explorer/*.svg", (err, files) => { glob("src/vp-explorer/*.svg", (err, files) => {
if (err) throw err; if (err) throw err;
files.forEach((file) => { files.forEach((file) => {
fs.copySync(file, `dist/components/src/vp-explorer/${path.basename(file)}`); fs.copySync(file, `dist/components/src/vp-explorer/${path.basename(file)}`);
}); });
}); });
glob("src/vp-explorer/*.jpg", (err, files) => { glob("src/vp-explorer/*.jpg", (err, files) => {
if (err) throw err; if (err) throw err;
files.forEach((file) => { files.forEach((file) => {
fs.copySync(file, `dist/components/src/vp-explorer/${path.basename(file)}`); fs.copySync(file, `dist/components/src/vp-explorer/${path.basename(file)}`);
}); });
});
glob("src/vp-explorer/*.css", (err, files) => {
if (err) throw err;
files.forEach((file) => {
fs.copySync(file, `dist/components/src/vp-explorer/${path.basename(file)}`);
});
}); });

View File

@ -1,6 +1,6 @@
{ {
"name": "@lingdocs/inflect", "name": "@lingdocs/inflect",
"version": "5.10.0", "version": "5.10.1",
"description": "Pashto inflector library", "description": "Pashto inflector library",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/lib/library.d.ts", "types": "dist/lib/library.d.ts",