synthtext 0.0.1

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/package.json ADDED
@@ -0,0 +1,59 @@
1
+ {
2
+ "name": "synthtext",
3
+ "version": "0.0.1",
4
+ "description": "",
5
+ "license": "MIT",
6
+ "author": {
7
+ "name": "semigarden",
8
+ "url": "https://github.com/semigarden"
9
+ },
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "git+https://github.com/semigarden/synthtext.git",
13
+ "directory": "synthtext/packages/core"
14
+ },
15
+ "bugs": {
16
+ "url": "https://github.com/semigarden/synthtext/issues"
17
+ },
18
+ "homepage": "https://github.com/semigarden/synthtext#readme",
19
+ "type": "module",
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "main": "./dist/index.cjs.js",
24
+ "module": "./dist/index.esm.js",
25
+ "types": "./dist/index.d.ts",
26
+ "exports": {
27
+ ".": {
28
+ "types": "./dist/index.d.ts",
29
+ "import": "./dist/index.esm.js",
30
+ "require": "./dist/index.cjs.js"
31
+ }
32
+ },
33
+ "files": [
34
+ "dist"
35
+ ],
36
+ "sideEffects": false,
37
+ "scripts": {
38
+ "build:css": "sass src/styles/element.scss src/styles/element.css --no-source-map",
39
+ "build:css-ts": "node src/scripts/generate-css-ts.js",
40
+ "build:distcss": "node -e \"require('fs').copyFileSync('src/styles/element.css','dist/index.css')\"",
41
+ "build": "npm run build:css && npm run build:css-ts && tsup && npm run build:distcss",
42
+ "watch:css": "sass src/styles/element.scss src/styles/element.css --no-source-map --watch",
43
+ "watch:css-ts": "node -e \"const fs=require('fs'); const {spawn}=require('child_process'); const src='src/styles/element.css'; const copy=()=>{spawn('npm',['run','build:css-ts'],{stdio:'inherit'});}; copy(); fs.watchFile(src,{interval:200},copy);\"",
44
+ "watch:distcss": "node -e \"const fs=require('fs'); const src='src/styles/element.css'; const dst='dist/index.css'; const copy=()=>{fs.mkdirSync('dist',{recursive:true}); fs.copyFileSync(src,dst); console.log('[css] copied ->',dst)}; copy(); fs.watchFile(src,{interval:200},copy);\"",
45
+ "dev": "concurrently -n TSUP,CSS,CSS-TS,COPY \"tsup src/index.ts --watch --clean=false\" \"npm:watch:css\" \"npm:watch:css-ts\" \"npm:watch:distcss\"",
46
+ "lint": "eslint .",
47
+ "test": "vitest",
48
+ "typecheck": "tsc -p tsconfig.json --noEmit",
49
+ "prepublishOnly": "npm run build"
50
+ },
51
+ "devDependencies": {
52
+ "concurrently": "^9.2.1",
53
+ "eslint": "^9.0.0",
54
+ "sass": "^1.97.3",
55
+ "tsup": "^8.0.0",
56
+ "typescript": "^5.3.0",
57
+ "vitest": "^4.0.18"
58
+ }
59
+ }