Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9e41c0f

Browse files
committed
feat(create-pyth-app): added library templates
1 parent 61bea85 commit 9e41c0f

File tree

7 files changed

+214
-0
lines changed

7 files changed

+214
-0
lines changed
Lines changed: 140 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,140 @@
1+
.env*.local
2+
# Logs
3+
logs
4+
*.log
5+
npm-debug.log*
6+
yarn-debug.log*
7+
yarn-error.log*
8+
lerna-debug.log*
9+
10+
# Diagnostic reports (https://nodejs.org/api/report.html)
11+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
12+
13+
# Runtime data
14+
pids
15+
*.pid
16+
*.seed
17+
*.pid.lock
18+
19+
# Directory for instrumented libs generated by jscoverage/JSCover
20+
lib-cov
21+
22+
# Coverage directory used by tools like istanbul
23+
coverage
24+
*.lcov
25+
26+
# nyc test coverage
27+
.nyc_output
28+
29+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
30+
.grunt
31+
32+
# Bower dependency directory (https://bower.io/)
33+
bower_components
34+
35+
# node-waf configuration
36+
.lock-wscript
37+
38+
# Compiled binary addons (https://nodejs.org/api/addons.html)
39+
build/Release
40+
41+
# Dependency directories
42+
node_modules/
43+
jspm_packages/
44+
45+
# Snowpack dependency directory (https://snowpack.dev/)
46+
web_modules/
47+
48+
# TypeScript cache
49+
*.tsbuildinfo
50+
51+
# Optional npm cache directory
52+
.npm
53+
54+
# Optional eslint cache
55+
.eslintcache
56+
57+
# Optional stylelint cache
58+
.stylelintcache
59+
60+
# Optional REPL history
61+
.node_repl_history
62+
63+
# Output of 'npm pack'
64+
*.tgz
65+
66+
# Yarn Integrity file
67+
.yarn-integrity
68+
69+
# dotenv environment variable files
70+
.env
71+
.env.*
72+
!.env.example
73+
74+
# parcel-bundler cache (https://parceljs.org/)
75+
.cache
76+
.parcel-cache
77+
78+
# Next.js build output
79+
.next
80+
out
81+
82+
# Nuxt.js build / generate output
83+
.nuxt
84+
dist
85+
86+
# Gatsby files
87+
.cache/
88+
# Comment in the public line in if your project uses Gatsby and not Next.js
89+
# https://nextjs.org/blog/next-9-1#public-directory-support
90+
# public
91+
92+
# vuepress build output
93+
.vuepress/dist
94+
95+
# vuepress v2.x temp and cache directory
96+
.temp
97+
.cache
98+
99+
# Sveltekit cache directory
100+
.svelte-kit/
101+
102+
# vitepress build output
103+
**/.vitepress/dist
104+
105+
# vitepress cache directory
106+
**/.vitepress/cache
107+
108+
# Docusaurus cache and generated files
109+
.docusaurus
110+
111+
# Serverless directories
112+
.serverless/
113+
114+
# FuseBox cache
115+
.fusebox/
116+
117+
# DynamoDB Local files
118+
.dynamodb/
119+
120+
# Firebase cache directory
121+
.firebase/
122+
123+
# TernJS port file
124+
.tern-port
125+
126+
# Stores VSCode versions used for testing VSCode extensions
127+
.vscode-test
128+
129+
# yarn v3
130+
.pnp.*
131+
.yarn/*
132+
!.yarn/patches
133+
!.yarn/plugins
134+
!.yarn/releases
135+
!.yarn/sdks
136+
!.yarn/versions
137+
138+
# Vite logs files
139+
vite.config.js.timestamp-*
140+
vite.config.ts.timestamp-*
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.next/
2+
coverage/
3+
node_modules/
4+
*.tsbuildinfo
5+
.env*.local
6+
.env
7+
.DS_Store
8+
dist/
9+
lib/
10+
build/
11+
node_modules/
12+
package.json
13+
tsconfig*.json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { base as default } from "@cprussin/eslint-config";
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "{{name}}",
3+
"description": "{{description}}",
4+
"version": "0.0.0",
5+
"type": "module",
6+
"files": [
7+
"dist/**"
8+
],
9+
"repository": {
10+
"type": "git",
11+
"url": "https://github.com/pyth-network/pyth-crosschain",
12+
"directory": "{{relativeFolder}}"
13+
},
14+
"engines": {
15+
"node": ">=22.14.0"
16+
},
17+
"scripts": {
18+
"build": "ts-duality --copyOtherFiles",
19+
"clean": "rm -rf ./dist",
20+
"fix:lint": "eslint --fix . --max-warnings 0",
21+
"fix:format": "prettier --write .",
22+
"test:lint": "eslint . --max-warnings 0",
23+
"test:format": "prettier --check .",
24+
"test:types": "tsc"
25+
},
26+
"devDependencies": {
27+
"@cprussin/eslint-config": "catalog:",
28+
"@cprussin/prettier-config": "catalog:",
29+
"@cprussin/tsconfig": "catalog:",
30+
"@pythnetwork/jest-config": "workspace:",
31+
"@types/jest": "catalog:",
32+
"@types/node": "catalog:",
33+
"@types/yargs": "catalog:",
34+
"eslint": "catalog:",
35+
"jest": "catalog:"
36+
},
37+
"dependencies": {}
38+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export function helloWorldLibrary() {
2+
// eslint-disable-next-line no-console
3+
console.info("hello, world from the library!");
4+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "./tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": false,
5+
"incremental": false,
6+
"declaration": true,
7+
"isolatedModules": false
8+
},
9+
"exclude": ["node_modules", "dist", "src/examples/", "**/__tests__/*"]
10+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": "@cprussin/tsconfig/base.json",
3+
"include": ["src"],
4+
"compilerOptions": {
5+
"lib": ["DOM", "ESNext"]
6+
},
7+
"exclude": ["node_modules"]
8+
}

0 commit comments

Comments
 (0)