aboutsummaryrefslogtreecommitdiff
path: root/package.json
blob: c95c6ac13c0e44a0b947a834df96507ed82178a8 (plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
{
  "name": "avr8js",
  "version": "0.20.1",
  "main": "dist/cjs/index.js",
  "module": "./dist/esm/index.js",
  "types": "./dist/esm/index.d.ts",
  "author": "Uri Shaked <uri@urishaked.com>",
  "repository": "https://github.com/wokwi/avr8js",
  "license": "MIT",
  "description": "Arduino (8-bit AVR) simulator, written in JavaScript and runs in the browser / Node.js",
  "keywords": [
    "Arduino",
    "Arduino Uno",
    "AVR",
    "8 bit",
    "MCU",
    "simulation",
    "simulator",
    "ATmega",
    "ATmega328p",
    "microcontroller"
  ],
  "scripts": {
    "build": "rimraf dist && tsc --sourceMap false && tsc -m commonjs --outDir dist/cjs --sourceMap false",
    "build:demo": "vite build demo",
    "prepare": "husky install && npm run build",
    "start": "vite demo",
    "lint": "eslint src/**/*.ts demo/**/*.ts",
    "test": "npm run lint && vitest run",
    "test:watch": "vitest",
    "benchmark:prepare": "ts-node --project tsconfig.benchmark.json benchmark/convert-instructions.ts",
    "benchmark": "ts-node --project tsconfig.benchmark.json benchmark/index.ts"
  },
  "files": [
    "dist"
  ],
  "devDependencies": {
    "@types/node": "^18.0.0",
    "@types/prettier": "^2.3.2",
    "@typescript-eslint/eslint-plugin": "^5.48.0",
    "@typescript-eslint/parser": "^5.48.0",
    "@wokwi/elements": "^0.16.2",
    "acorn": "^7.3.1",
    "eslint": "^8.31.0",
    "eslint-config-prettier": "^8.6.0",
    "eslint-plugin-json": "^3.1.0",
    "eslint-plugin-prettier": "^4.2.1",
    "husky": "^6.0.0",
    "lint-staged": "^9.5.0",
    "vite": "^5.0.0",
    "prettier": "^2.3.2",
    "rimraf": "^3.0.2",
    "ts-node": "^10.9.1",
    "typescript": "^4.9.4",
    "vitest": "^3.0.5"
  },
  "lint-staged": {
    "src/**/*.{ts,tsx}": [
      "eslint --fix",
      "prettier --write",
      "git add"
    ]
  },
  "engines": {
    "node": ">= 18.0.0",
    "npm": ">= 10.0.0"
  },
  "dependencies": {},
  "alias": {
    "avr8js": "./src"
  },
  "browserslist": [
    "last 1 Chrome versions"
  ]
}