You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
init CLI command with which a new project can be created instead.
The init command then ask:
Gjs or node-gtk
CJS or ESM
To keep the command from getting too complex we should concentrate on the most important for now, if there is a need for more configuration options we can always introduce them, so e.g. I would make esbuild to the default bundler and not ask for another.
The init command then does the following:
Runs npm init
Parses the created package.json (in this way we also have the information that was entered)
Rebuilds the package.json by
Adding some default scripts to the package.json (like build:types, build:app, ..)
Adding esbuild to the devDependencies
Adding ts-for-gir to the devDependencies (as soon as I have create a new npm package (I think I will name it @ts-for-gir/cli))
Creates a tsconfig.json (with your suggestion to exclude the DOM types)
Creates a esbuild.js
Creates a .ts-for-girrc.js with the chosen
environments: "gjs" | "node"
moduleType: "esm" | "commonjs"
Creates a src/index.ts as the starting point with a simple example
init
CLI command with which a new project can be created instead.The
init
command then ask:To keep the command from getting too complex we should concentrate on the most important for now, if there is a need for more configuration options we can always introduce them, so e.g. I would make esbuild to the default bundler and not ask for another.
The
init
command then does the following:npm init
package.json
bypackage.json
(likebuild:types
,build:app
, ..)esbuild
to thedevDependencies
ts-for-gir
to thedevDependencies
(as soon as I have create a new npm package (I think I will name it@ts-for-gir/cli
))tsconfig.json
(with your suggestion to exclude the DOM types)esbuild.js
.ts-for-girrc.js
with the chosenenvironments
:"gjs" | "node"
moduleType
:"esm" | "commonjs"
src/index.ts
as the starting point with a simple exampleOriginally posted by @JumpLink in #72 (comment)
The text was updated successfully, but these errors were encountered: