-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
60 lines (60 loc) · 1.82 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
{
"name": "storymatic",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "GPL-3",
"version": "2.0.85",
"scripts": {
"grammar": "ohm generateBundles --withTypes src/grammar.ohm; mv src/grammar.ohm-bundle.js dist/grammar.js; sed -i -e 's/ohm.makeRecipe/(ohm.makeRecipe||ohm.default.makeRecipe)/' dist/grammar.js; mv src/grammar.ohm-bundle.d.ts src/grammar.d.ts; cp src/grammar.d.ts dist/grammar.d.ts",
"build": "npm run grammar; tsc -b",
"pretest": "node ./dist/sm.js -b --src test --dist dist/test --module commonjs",
"test": "mocha dist/test",
"prepublishOnly": "npm run build",
"dev": "npm run grammar; tsc -w | tsc -w -p docs/tsconfig.json | npx static-server docs"
},
"repository": {
"type": "git",
"url": "https://github.com/zsnout/storymatic"
},
"bin": {
"sm": "./bin/sm"
},
"dependencies": {
"fast-glob": "^3.2.11",
"mocha": "^10.0.0",
"ohm-js": "^16.3.3",
"typescript": "^4.6.4",
"yargs": "^17.4.1"
},
"devDependencies": {
"@codemirror/basic-setup": "^0.20.0",
"@codemirror/lang-javascript": "^0.20.0",
"@codemirror/state": "^0.20.0",
"@codemirror/view": "^0.20.6",
"@ohm-js/cli": "^1.1.0",
"@types/mocha": "^9.1.1",
"@types/node": "^17.0.29",
"@types/prismjs": "^1.26.0",
"@types/yargs": "^17.0.10",
"static-server": "^2.2.1"
},
"prettier": {
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"endOfLine": "lf",
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxSingleQuote": false,
"printWidth": 80,
"proseWrap": "always",
"quoteProps": "consistent",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "es5",
"useTabs": false,
"vueIndentScriptAndStyle": true
}
}