@aptre/common 0.12.6
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/.eslintrc.js +28 -0
- package/.gitignore +26 -0
- package/LICENSE +21 -0
- package/Makefile +193 -0
- package/README.md +107 -0
- package/deps.go.tools +29 -0
- package/dist/common.d.ts +0 -0
- package/dist/common.js +1 -0
- package/dist/example/example_pb.d.ts +30 -0
- package/dist/example/example_pb.js +51 -0
- package/dist/example/other/other_pb.d.ts +23 -0
- package/dist/example/other/other_pb.js +38 -0
- package/go.mod +16 -0
- package/go.mod.tools +410 -0
- package/go.sum +24 -0
- package/go.sum.tools +1548 -0
- package/package.json +76 -0
- package/tsconfig.json +27 -0
package/package.json
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@aptre/common",
|
|
3
|
+
"description": "Common project configuration files and dependencies.",
|
|
4
|
+
"version": "0.12.6",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": {
|
|
7
|
+
"name": "Aperture Robotics LLC.",
|
|
8
|
+
"email": "support@aperture.us",
|
|
9
|
+
"url": "http://aperture.us"
|
|
10
|
+
},
|
|
11
|
+
"contributors": [
|
|
12
|
+
{
|
|
13
|
+
"name": "Christian Stewart",
|
|
14
|
+
"email": "christian@aperture.us",
|
|
15
|
+
"url": "http://github.com/paralin"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"repository": {
|
|
19
|
+
"url": "git+ssh://git@github.com/aperturerobotics/common.git"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"!**/*.tsbuildinfo",
|
|
23
|
+
".eslintrc.js",
|
|
24
|
+
".gitignore",
|
|
25
|
+
"Makefile",
|
|
26
|
+
"dist",
|
|
27
|
+
"go.mod",
|
|
28
|
+
"go.sum",
|
|
29
|
+
"go.mod.tools",
|
|
30
|
+
"go.sum.tools",
|
|
31
|
+
"deps.go.tools",
|
|
32
|
+
"tsconfig.json"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "npm run clean && tsc --project tsconfig.json --noEmit false --module ES6 --target es2022 --outDir ./dist/",
|
|
36
|
+
"clean": "rimraf ./dist",
|
|
37
|
+
"check": "npm run typecheck",
|
|
38
|
+
"typecheck": "tsc --noEmit",
|
|
39
|
+
"deps": "depcheck --ignores bufferutil,esbuild,starpc,rimraf,@bufbuild/protoc-gen-es",
|
|
40
|
+
"codegen": "npm run gen",
|
|
41
|
+
"ci": "npm run build && npm run lint:js && npm run lint:go",
|
|
42
|
+
"format": "npm run format:go && npm run format:js && npm run format:config",
|
|
43
|
+
"format:config": "prettier --write tsconfig.json package.json",
|
|
44
|
+
"format:go": "make format",
|
|
45
|
+
"format:js": "npm run format:js:changed",
|
|
46
|
+
"format:js:changed": "git diff --name-only --diff-filter=d HEAD | grep '\\(\\.ts\\|\\.tsx\\|\\.html\\|\\.css\\|\\.scss\\)$' | xargs -I {} prettier --write {}",
|
|
47
|
+
"format:js:all": "prettier --write './!(vendor|dist)/**/(*.ts|*.tsx|*.js|*.html|*.css)'",
|
|
48
|
+
"gen": "rimraf ./.tools && go mod tidy && cd ./tools && go mod tidy && cd ../ && bash embed.bash && npm run format && make genproto",
|
|
49
|
+
"test": "make test && npm run check",
|
|
50
|
+
"test:js": "echo No JS tests.",
|
|
51
|
+
"demo": "make demo",
|
|
52
|
+
"lint": "npm run lint:go && npm run lint:js",
|
|
53
|
+
"lint:go": "make lint",
|
|
54
|
+
"lint:js": "ESLINT_USE_FLAT_CONFIG=false eslint -c .eslintrc.js ./",
|
|
55
|
+
"prepare": "go mod vendor",
|
|
56
|
+
"precommit": "npm run gen"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@bufbuild/protoc-gen-es": "^1.8.0",
|
|
60
|
+
"depcheck": "^1.4.6",
|
|
61
|
+
"pre-commit": "^1.2.2",
|
|
62
|
+
"prettier": "^3.0.3",
|
|
63
|
+
"rimraf": "^5.0.5",
|
|
64
|
+
"typescript": "^5.4.5"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@bufbuild/protobuf": "^1.8.0",
|
|
68
|
+
"@typescript-eslint/eslint-plugin": "^7.7.0",
|
|
69
|
+
"@typescript-eslint/parser": "^7.7.0",
|
|
70
|
+
"eslint": "^9.1.0",
|
|
71
|
+
"eslint-config-prettier": "^9.0.0",
|
|
72
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
73
|
+
"eslint-plugin-unused-imports": "^3.0.0",
|
|
74
|
+
"starpc": "^0.31.1"
|
|
75
|
+
}
|
|
76
|
+
}
|
package/tsconfig.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"module": "esnext",
|
|
4
|
+
"target": "esnext",
|
|
5
|
+
"moduleResolution": "node",
|
|
6
|
+
"jsx": "react",
|
|
7
|
+
"baseUrl": "./",
|
|
8
|
+
"paths": {
|
|
9
|
+
"@go/*": ["vendor/*"]
|
|
10
|
+
},
|
|
11
|
+
"allowSyntheticDefaultImports": true,
|
|
12
|
+
"declaration": true,
|
|
13
|
+
"esModuleInterop": true,
|
|
14
|
+
"forceConsistentCasingInFileNames": true,
|
|
15
|
+
"importsNotUsedAsValues": "remove",
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"resolveJsonModule": true,
|
|
18
|
+
"skipLibCheck": true,
|
|
19
|
+
"strict": true,
|
|
20
|
+
"lib": ["webworker", "dom"]
|
|
21
|
+
},
|
|
22
|
+
"exclude": ["node_modules", "vendor", "dist"],
|
|
23
|
+
"ts-node": {
|
|
24
|
+
"esm": true,
|
|
25
|
+
"experimentalSpecifierResolution": true
|
|
26
|
+
}
|
|
27
|
+
}
|