Skip to content

Commit 27b6052

Browse files
author
Leon Si
committed
feat: initial commit
0 parents  commit 27b6052

22 files changed

+6417
-0
lines changed

.eslintrc.cjs

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const path = require('path');
2+
const { defineConfig } = require('eslint-define-config');
3+
4+
module.exports = defineConfig({
5+
extends: [require.resolve('@leonzalion/configs/eslint.cjs')],
6+
parserOptions: { project: [path.resolve(__dirname, 'tsconfig.eslint.json')] }
7+
});

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto eol=lf
2+

.gitignore

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
# macOS
2+
.DS_Store
3+
4+
# Logs
5+
logs
6+
*.log
7+
npm-debug.log*
8+
yarn-debug.log*
9+
yarn-error.log*
10+
lerna-debug.log*
11+
.pnpm-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
21+
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
*.lcov
28+
29+
# nyc test coverage
30+
.nyc_output
31+
32+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33+
.grunt
34+
35+
# Bower dependency directory (https://bower.io/)
36+
bower_components
37+
38+
# node-waf configuration
39+
.lock-wscript
40+
41+
# Compiled binary addons (https://nodejs.org/api/addons.html)
42+
build/Release
43+
44+
# Dependency directories
45+
node_modules/
46+
jspm_packages/
47+
48+
# Snowpack dependency directory (https://snowpack.dev/)
49+
web_modules/
50+
51+
# TypeScript cache
52+
*.tsbuildinfo
53+
54+
# Optional npm cache directory
55+
.npm
56+
57+
# Optional eslint cache
58+
.eslintcache
59+
60+
# Microbundle cache
61+
.rpt2_cache/
62+
.rts2_cache_cjs/
63+
.rts2_cache_es/
64+
.rts2_cache_umd/
65+
66+
# Optional REPL history
67+
.node_repl_history
68+
69+
# Output of 'npm pack'
70+
*.tgz
71+
72+
# Yarn Integrity file
73+
.yarn-integrity
74+
75+
# dotenv environment variables file
76+
.env
77+
.env.test
78+
.env.production
79+
80+
# parcel-bundler cache (https://parceljs.org/)
81+
.cache
82+
.parcel-cache
83+
84+
# Next.js build output
85+
.next
86+
out
87+
88+
# Nuxt.js build / generate output
89+
.nuxt
90+
dist
91+
dist-ssr
92+
93+
# Gatsby files
94+
.cache/
95+
# Comment in the public line in if your project uses Gatsby and not Next.js
96+
# https://nextjs.org/blog/next-9-1#public-directory-support
97+
# public
98+
99+
# vuepress build output
100+
.vuepress/dist
101+
102+
# Serverless directories
103+
.serverless/
104+
105+
# FuseBox cache
106+
.fusebox/
107+
108+
# DynamoDB Local files
109+
.dynamodb/
110+
111+
# TernJS port file
112+
.tern-port
113+
114+
# Stores VSCode versions used for testing VSCode extensions
115+
.vscode-test
116+
117+
# yarn v2
118+
.yarn/cache
119+
.yarn/unplugged
120+
.yarn/build-state.yml
121+
.yarn/install-state.gz
122+
.pnp.*
123+
124+
# Cache files
125+
.eslintcache
126+
tsconfig.tsbuildinfo

.markdownlint.cjs

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
module.exports = require('@leonzalion/configs/markdownlint.cjs');

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
.eslintcache

license

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
MIT License
2+
3+
Copyright (c) Leon Si <[email protected]> (https://leonzalion.com)
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

package.json

+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"name": "ets",
3+
"version": "0.0.0",
4+
"description": "Embedded TypeScript.",
5+
"license": "MIT",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/leonzalion/ets.git"
9+
},
10+
"homepage": "https://github.com/leonzalion/ets#readme",
11+
"author": {
12+
"name": "Leon Si",
13+
"email": "[email protected]",
14+
"url": "https://leonzalion.com"
15+
},
16+
"type": "module",
17+
"exports": "./index.js",
18+
"scripts": {
19+
"prepare": "lion-git-hooks",
20+
"build": "node-ts ./scripts/build.ts",
21+
"start": "node-ts ./src/index.ts",
22+
"test": "vitest run",
23+
"lint": "eslint --cache --fix .",
24+
"prettier": "prettier --write .",
25+
"tc": "tsc --noEmit"
26+
},
27+
"devDependencies": {
28+
"@commitlint/cli": "^15.0.0",
29+
"@leonzalion/configs": "latest",
30+
"@types/node": "^17.0.0",
31+
"@types/xml-escape": "^1.1.0",
32+
"desm": "^1.2.0",
33+
"eslint": "^8.5.0",
34+
"eslint-define-config": "^1.2.5",
35+
"execa": "^6.0.0",
36+
"lint-staged": "^12.1.3",
37+
"lion-git-hooks": "^1.0.2",
38+
"lion-system": "latest",
39+
"prettier": "^2.5.1",
40+
"tsc-alias": "^1.6.1",
41+
"typescript": "^4.5.4",
42+
"vitest": "^0.5.9"
43+
},
44+
"prettier": "@leonzalion/configs/prettier.cjs",
45+
"commitlint": {
46+
"extends": [
47+
"@leonzalion/configs/commitlint.cjs"
48+
]
49+
},
50+
"lint-staged": {
51+
"*.{js,ts}": [
52+
"pnpm run lint",
53+
"pnpm run prettier"
54+
]
55+
},
56+
"dependencies": {
57+
"change-case": "^4.1.2",
58+
"escape-string-regexp": "^5.0.0",
59+
"outdent": "^0.8.0",
60+
"xml-escape": "^1.1.0"
61+
}
62+
}

0 commit comments

Comments
 (0)