-
Notifications
You must be signed in to change notification settings - Fork 922
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:BuilderIO/builder into gatsby-updates
* 'main' of github.com:BuilderIO/builder: (194 commits) chore(core-sdk): publish 1.1.26 chore(deps): bump nanoid from 3.1.25 to 3.3.1 in /examples/vue/nuxt-2 chore(deps): bump node-fetch from 2.6.1 to 2.6.7 in /examples/vue/nuxt-2 chore(deps): bump node-fetch in /examples/vue/vue-storefront-2 chore(deps): bump cached-path-relative in /examples/vue/vue-storefront-2 chore(deps): bump nanoid in /examples/vue/vue-storefront-2 fix(sdk): respect this.canTrack for cookie fix(sdk): respect this.canTrack for cookie example(vue): setup nuxt-2 example on old vue SDK chore(examples): move all Vue examples under vue/ fix: contentful plugin undefined locate chore(deps): bump postcss in /examples/gatsby-minimal-starter chore(deps): bump postcss from 7.0.26 to 7.0.39 in /examples/storybook chore(deps): bump postcss from 7.0.35 to 7.0.39 in /examples/vue-nuxt chore(deps): bump postcss from 7.0.35 to 7.0.39 in /packages/gatsby chore(deps): bump postcss from 7.0.27 to 7.0.39 in /packages/storybook chore(deps): bump vm2 in /starters/create-builder/nextjs chore(deps): bump follow-redirects chore(deps): bump vm2 in /starters/create-builder/create-react-app chore(deps): bump ajv from 6.12.0 to 6.12.6 in /packages/codegen ...
- Loading branch information
Showing
433 changed files
with
148,547 additions
and
139,747 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- If you have a question or need help regarding how the Builder product works, then https://forum.builder.io is a much better place to ask your question. --> | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. | ||
2. | ||
3. | ||
4. | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. |
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 +1 @@ | ||
12.14.0 | ||
lts/erbium |
Validating CODEOWNERS rules …
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Security Policy | ||
|
||
## Reporting a Vulnerability | ||
|
||
Please report (suspected) security vulnerabilities to help@builder.io. If the issue is confirmed, we will release a patch as soon as possible depending on complexity. Thank you! |
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,54 +1,20 @@ | ||
# Builder.io Angular Universal example | ||
|
||
Cloned from [https://github.com/enten/angular-universal](https://github.com/enten/angular-universal). | ||
This is an example of using Builder.io for dynamic page building with Angular and Angular Universal for server side rendering. | ||
This is an example of using Builder.io with Angular Universal for server side rendering. For an example with client side rendering using Angular see [here](/examples/angular) | ||
|
||
See the full Angular SDK source code and docs over [here](/packages/angular) | ||
|
||
## Running locally | ||
|
||
This starter kit is **universal 100% which means you developing for both browser and server at the same time**. | ||
### Development server | ||
|
||
- `ng build` - Building bundles for both browser and server platforms in [same compilation][webpack-multicompiler-example] ; | ||
- `ng serve` - Running universal dev server with [Hot Module Replacement (HMR)][webpack-concept-hmr] enabled on browser and server sides ; | ||
- `ng serve -c spa` - Running universal dev server with Server Side Rendering (SSR) disabled for angular routes only. | ||
Run `npm run dev:ssr` to run the Angular Universal server locally. Navigate to `http://localhost:4200/`. | ||
|
||
In other words, this starter kit gives superpower for those who want develop universal application fastly with no pain. Just keep in mind with great power comes [great responsibility (Universal Gotcha's)][universal-gotchas]. | ||
### Build | ||
|
||
## Development server | ||
Run `npm run build:ssr` to build the project. The build artifacts will be stored in the `dist/` directory. | ||
Run `npm run serve:ssr` to serve the built project. Navigate to `http://localhost:4000/` to see the running project. | ||
|
||
Run `ng serve` to start universal dev server. Navigate to [http://localhost:4000/](http://localhost:4000/). | ||
### Further help | ||
|
||
The app will automatically hot-reload on server and browser sides if you change any of the source files. | ||
|
||
The full compilation will automatically restart if a hot chunk can't be applied on server side. | ||
|
||
## Code scaffolding | ||
|
||
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`. | ||
|
||
## Build | ||
|
||
Run `ng build` to build the project. The build artifacts will be stored in the `dist/app` directory. | ||
|
||
Run `ng build --prod` for a production build. | ||
|
||
Run `node dist/app/server/main.js` to start application built. | ||
|
||
## Running unit tests | ||
|
||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io). | ||
|
||
## Running end-to-end tests | ||
|
||
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/). | ||
|
||
## Further help | ||
|
||
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page. | ||
|
||
[angulario-ssr]: https://angular.io/guide/universal | ||
[angular-cli]: https://github.com/angular/angular-cli | ||
[universal-gotchas]: https://github.com/angular/universal/blob/master/docs/gotchas.md | ||
[webpack-concept-hmr]: https://webpack.js.org/concepts/hot-module-replacement/ | ||
[webpack-multicompiler-example]: https://github.com/webpack/webpack/tree/master/examples/multi-compiler | ||
Questions, feedback? Let us know over in our [forum](https://forum.builder.io)! |
Oops, something went wrong.