Create an OutSystems Astro Island project to import as a component into your OutSystems application
npm install create-outsystems-astrobash
npx create-outsystems-astro
`$3
`bash
yarn create outsystems-astro
`$3
`bash
pnpm dlx create-outsystems-astro
`$3
`bash
bunx create-outsystems-astro
`$3
The Deno DX command is available in Deno 2.6.
`bash
dx create-outsystems-astro
`This will create the generated files as well as an example component.
š Project Structure
`text
/
āāā public/
āāā src/
ā āāā components/
ā āāā Counter.tsx
ā āāā images/
ā āāā image.png
ā āāā pages/
ā āāā counter.astro
ā āāā styles/
ā āāā index.css
āāā package.json
`$3
Each page inside of the pages file should represent an Island that will be imported into OutSystems.$3
The location of the component code.$3
Any image assets.$3
Stylesheets that may apply to the component.š§ Commands
All commands are run from the root of the project, from a terminal:
$3
| Command | Action |
| :------------------------ | :----------------------------------------------- |
|
npm install | Installs dependencies |
| npm run dev | Starts local dev server at localhost:4321 |
| npm run build | Build distribution to ./dist/ |
| npm run output | Build OutSystems production site to ./output/ |
| npm run preview | Preview build locally, before creating output |
| npm run astro ... | Run CLI commands like astro add, astro check |
| npm run astro -- --help | Get help using the Astro CLI |$3
| Command | Action |
| :------------------------ | :----------------------------------------------- |
|
yarn install | Installs dependencies |
| yarn run dev | Starts local dev server at localhost:4321 |
| yarn run build | Build distribution to ./dist/ |
| yarn run output | Build OutSystems production site to ./output/ |
| yarn run preview | Preview build locally, before creating output |
| yarn run astro ... | Run CLI commands like astro add, astro check |
| yarn run astro -- --help | Get help using the Astro CLI |$3
| Command | Action |
| :------------------------ | :----------------------------------------------- |
|
pnpm install | Installs dependencies |
| pnpm run dev | Starts local dev server at localhost:4321 |
| pnpm run build | Build distribution to ./dist/ |
| pnpm run output | Build OutSystems production site to ./output/ |
| pnpm run preview | Preview build locally, before creating output |
| pnpm run astro ... | Run CLI commands like astro add, astro check |
| pnpm run astro -- --help | Get help using the Astro CLI |$3
| Command | Action |
| :------------------------ | :----------------------------------------------- |
|
bun install | Installs dependencies |
| bun run dev | Starts local dev server at localhost:4321 |
| bun run build | Build distribution to ./dist/ |
| bun run output:bun | Build OutSystems production site to ./output/ |
| bun run preview | Preview build locally, before creating output |
| bun run astro ... | Run CLI commands like astro add, astro check |
| bun run astro -- --help | Get help using the Astro CLI |$3
| Command | Action |
| :------------------------ | :----------------------------------------------- |
|
deno install && deno run postinstall | Installs dependencies |
| deno run dev | Starts local dev server at localhost:4321 |
| deno run build | Build distribution to ./dist/ |
| deno run output:deno | Build OutSystems production site to ./output/ |
| deno run preview | Preview build locally, before creating output |
| deno run astro ... | Run CLI commands like astro add, astro check |
| deno run astro -- --help | Get help using the Astro CLI |Getting Started
Delete the demo application under the `src` folder and being to build your own application. Converting to OutSystems
Once development is complete, run the output generation command:
$3
`bash
npm run output
`$3
`bash
yarn run output
`$3
`bash
pnpm run output
`$3
`bash
bun run output:bun
`$3
`bash
deno run output:deno
``This will create a set of files that will then need to be coverted to OutSystems components.