-
-
Notifications
You must be signed in to change notification settings - Fork 247
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: handle default build/output/test config paths internally
Closes #392
- Loading branch information
1 parent
b3d2cfe
commit fb0bb5c
Showing
16 changed files
with
105 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
import { defineConfig } from 'astro/config'; | ||
import angular from "@analogjs/astro-angular"; | ||
import angular from '@analogjs/astro-angular'; | ||
import react from '@astrojs/react'; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
outDir: '../../dist/apps/astro-app', | ||
integrations: [ | ||
angular({ | ||
vite: { | ||
tsconfig: 'apps/astro-app/tsconfig.app.json' | ||
} | ||
}), | ||
react() | ||
] | ||
integrations: [angular(), react()], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,45 @@ | ||
# create-analog | ||
|
||
## Scaffolding Your First Analog Project | ||
Analog is the fullstack meta-framework for Angular. | ||
|
||
## Features | ||
|
||
- File-based routing | ||
- SSR/SSG support with prerendering | ||
- Support for API/server routes | ||
- Support for using markdown as content routes | ||
- Supports Angular CLI or Nx workspaces | ||
- Powered by Vite | ||
|
||
## Creating an Analog Project | ||
|
||
With NPM: | ||
|
||
```bash | ||
$ npm create analog@latest | ||
npm create analog@latest | ||
``` | ||
|
||
With Yarn: | ||
|
||
```bash | ||
$ yarn create analog | ||
yarn create analog | ||
``` | ||
|
||
With PNPM: | ||
|
||
```bash | ||
$ pnpm create analog | ||
``` | ||
|
||
Then follow the prompts! | ||
|
||
You can also directly specify the project name and the template you want to use via additional command line options. For example, to scaffold an Angular, run: | ||
|
||
```bash | ||
# npm 6.x | ||
npm create analog@latest my-angular-app --template angular-v15 | ||
|
||
# npm 7+, extra double-dash is needed: | ||
npm create analog@latest my-angular-app -- --template angular-v15 | ||
|
||
# yarn | ||
yarn create analog my-angular-app --template angular-v15 | ||
|
||
# pnpm | ||
pnpm create analog my-angular-app --template angular-v15 | ||
pnpm create analog | ||
``` | ||
|
||
Currently supported template presets include: | ||
Follow the prompts to install the application dependencies and run the project in development mode! | ||
|
||
- `angular-v16-prerelease` | ||
- `angular-v15` | ||
## Next Steps | ||
|
||
You can use `.` for the project name to scaffold in the current directory. | ||
Learn more at [analogjs.org](https://analogjs.org) | ||
|
||
## Credits | ||
## Community | ||
|
||
This project is inspired by `create-vite`. | ||
- Visit and Star the [GitHub Repo](https://github.com/analogjs/analog) | ||
- Join the [Discord](https://chat.analogjs.org) | ||
- Follow us on [Twitter](https://twitter.com/analogjs) | ||
- Become a [Sponsor](https://github.com/sponsors/brandonroberts) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.