Skip to content

Commit e2fd8b3

Browse files
committed
Fresh TypeScript library as of 2021-09-21
1 parent afc9f52 commit e2fd8b3

File tree

11 files changed

+7653
-2
lines changed

11 files changed

+7653
-2
lines changed

.gitignore

Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
.pnpm-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+
# Microbundle cache
58+
.rpt2_cache/
59+
.rts2_cache_cjs/
60+
.rts2_cache_es/
61+
.rts2_cache_umd/
62+
63+
# Optional REPL history
64+
.node_repl_history
65+
66+
# Output of 'npm pack'
67+
*.tgz
68+
69+
# Yarn Integrity file
70+
.yarn-integrity
71+
72+
# dotenv environment variables file
73+
.env
74+
.env.test
75+
.env.production
76+
77+
# parcel-bundler cache (https://parceljs.org/)
78+
.cache
79+
.parcel-cache
80+
81+
# Next.js build output
82+
.next
83+
out
84+
85+
# Nuxt.js build / generate output
86+
.nuxt
87+
dist
88+
89+
# Gatsby files
90+
.cache/
91+
# Comment in the public line in if your project uses Gatsby and not Next.js
92+
# https://nextjs.org/blog/next-9-1#public-directory-support
93+
# public
94+
95+
# vuepress build output
96+
.vuepress/dist
97+
98+
# Serverless directories
99+
.serverless/
100+
101+
# FuseBox cache
102+
.fusebox/
103+
104+
# DynamoDB Local files
105+
.dynamodb/
106+
107+
# TernJS port file
108+
.tern-port
109+
110+
# Stores VSCode versions used for testing VSCode extensions
111+
.vscode-test
112+
113+
# yarn v2
114+
.yarn/cache
115+
.yarn/unplugged
116+
.yarn/build-state.yml
117+
.yarn/install-state.gz
118+
.pnp.*
119+
120+
121+
# Compiled files
122+
/lib/
123+
/lib-commonjs/
124+
/dist/
125+
126+
# Heft files
127+
.heft
128+
129+
# Temporary files
130+
tmp
131+
temp
132+
133+
# tsdoc
134+
tsdoc-metadata.json

README.md

Lines changed: 0 additions & 2 deletions
This file was deleted.

config/api-extractor.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* Config file for API Extractor. For more info, please visit: https://api-extractor.com
3+
*/
4+
{
5+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
6+
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts",
7+
"apiReport": {
8+
"enabled": true
9+
},
10+
"docModel": {
11+
"enabled": true
12+
},
13+
"dtsRollup": {
14+
"enabled": true
15+
}
16+
}

config/jest.config.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "@rushstack/heft-web-rig/profiles/library/config/jest.config.json",
3+
"collectCoverage": true
4+
}

config/rig.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/rig-package/rig.schema.json",
3+
4+
"rigPackageName": "@rushstack/heft-web-rig",
5+
"rigProfile": "library"
6+
}

etc/fresh-library.api.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
## API Report File for "fresh-library"
2+
3+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4+
5+
```ts
6+
7+
// @public
8+
export class FreshLibrary {
9+
add(a: number, b: number): number;
10+
}
11+
12+
```

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "fresh-library",
3+
"version": "0.0.1-0",
4+
"main": "./lib-commonjs/index.js",
5+
"module": "./lib/index.js",
6+
"types": "./lib/fresh-library.d.ts",
7+
"files": [
8+
"src",
9+
"lib",
10+
"lib-commonjs",
11+
"dist"
12+
],
13+
"scripts": {
14+
"build": "heft build",
15+
"test": "heft test",
16+
"prepare": "heft build"
17+
},
18+
"devDependencies": {
19+
"@rushstack/heft": "^0.39.0",
20+
"@rushstack/heft-web-rig": "^0.4.15",
21+
"@types/heft-jest": "^1.0.2"
22+
}
23+
}

0 commit comments

Comments
 (0)