This repository was archived by the owner on Nov 20, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 8 files changed +91
-0
lines changed Expand file tree Collapse file tree 8 files changed +91
-0
lines changed Original file line number Diff line number Diff line change
1
+ # {{ name }}
Original file line number Diff line number Diff line change
1
+ tasks :
2
+ build :
3
+ command : tsup src/index.ts
4
+ inputs :
5
+ - src/**/*
6
+ - tsup.config.ts
7
+ outputs :
8
+ - dist/**/*
Original file line number Diff line number Diff line change
1
+ {
2
+ "name": "@storipress/{{ name }}",
3
+ "type": "module",
4
+ "packageManager": "yarn@4.1.1",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "import": "./dist/index.js"
9
+ }
10
+ },
11
+ "scripts": {
12
+ "build": "moon run build"
13
+ },
14
+ "devDependencies": {
15
+ "@moonrepo/cli": "1.23.4",
16
+ "tsup": "8.0.2",
17
+ "typescript": "^5.4.5",
18
+ "vitest": "^1.5.0"
19
+ }
20
+ }
Original file line number Diff line number Diff line change
1
+ console . log ( 'Hello world' )
Original file line number Diff line number Diff line change
1
+ # https://moonrepo.dev/docs/config/template
2
+ $schema : ' https://moonrepo.dev/schemas/template.json'
3
+
4
+ # REQUIRED: Name of the template in a human readable format.
5
+ title : JS Library
6
+
7
+ # REQUIRED: Description of what the template is for and other relevant information.
8
+ description : Simple Javascript Library with Typescript
9
+
10
+ destination : packages/[name]
11
+
12
+ # Mapping of variables that will be interpolated and rendered within template files.
13
+ # Users will be prompted to provide a value when running the generator.
14
+ variables :
15
+ name :
16
+ type : string
17
+ default : ' '
18
+ required : true
19
+ prompt : Package name?
Original file line number Diff line number Diff line change
1
+ {
2
+ "compilerOptions" : {
3
+ /* AND if you're building for a library in a monorepo: */
4
+ "target" : " es2022" ,
5
+ /* If your code runs in the DOM: */
6
+ /* If your code doesn't run in the DOM: */
7
+ "lib" : [" es2022" ],
8
+ "moduleDetection" : " force" ,
9
+ /* If NOT transpiling with TypeScript: */
10
+ "module" : " preserve" ,
11
+ "resolveJsonModule" : true ,
12
+ "allowJs" : true ,
13
+ /* Strictness */
14
+ "strict" : true ,
15
+ "noUncheckedIndexedAccess" : true ,
16
+ /* AND if you're building for a library: */
17
+ "declaration" : true ,
18
+ "declarationMap" : true ,
19
+ "noEmit" : true ,
20
+ "outDir" : " dist" ,
21
+ "sourceMap" : true ,
22
+ /* Base Options: */
23
+ "esModuleInterop" : true ,
24
+ "isolatedModules" : true ,
25
+ "skipLibCheck" : true
26
+ },
27
+ "include" : [" src/**/*" , " tsup.config.ts" ]
28
+ }
Original file line number Diff line number Diff line change
1
+ import { defineConfig } from 'tsup'
2
+
3
+ export default defineConfig ( {
4
+ entry : [ 'src/index.ts' ] ,
5
+ dts : true ,
6
+ clean : true ,
7
+ format : [ 'esm' ] ,
8
+ } )
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ projects:
18
18
custom-field : packages/custom-field
19
19
jose-browser : packages/jose-browser
20
20
karbon : packages/karbon
21
+ karbon-utils : packages/karbon-utils
21
22
playground : packages/playground
22
23
typesense-xior : packages/typesense-xior
23
24
33
34
# local branch against. For git, this is is typically "master" or "main",
34
35
# and must include the remote prefix (before /).
35
36
defaultBranch : main
37
+
38
+ generator :
39
+ templates :
40
+ - templates
41
+ - .moon/templates
You can’t perform that action at this time.
0 commit comments