Folders directly inside the templates
directory contain templates for the App Toolkit. The folder names are the identifier of the templates (used by the --template
parameter when creating a new project).
To work directly with the source in the templates directory, follow these steps:
- create a
app.config.ts
file with
import type { CliOptions } from "dt-app";
const config: CliOptions = {
environmentUrl: "YOUR_ENVIRONMENT_URL",
};
module.exports = config;
- modify
package.json
and replace"dt-app": "{{version}}"
with the current App Toolkit version. Do not commit this change! - run
npm install
andnpm start
npx dt-app create --environment-url YOUR_ENVIRONMENT_URL --template-dir=../cli-templates/templates/empty