Skip to content

Commit 6396b31

Browse files
Matthew SweeneyAllen Hai
Matthew Sweeney
and
Allen Hai
authored
Add Aurelia Guide (#1429)
* add aurelia guide * Update pages/guides/deploying-aurelia-with-zeit-now.mdx Co-Authored-By: Allen Hai <[email protected]>
1 parent 0a323a5 commit 6396b31

File tree

2 files changed

+79
-0
lines changed

2 files changed

+79
-0
lines changed

lib/data/guides.json

+10
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,16 @@
3737
"editUrl": "pages/guides/deploying-apolloserver-to-now.mdx",
3838
"lastEdited": "2019-10-11T23:41:55.000Z"
3939
},
40+
{
41+
"title": "Deploy Aurelia with ZEIT Now",
42+
"description": "Create an Aurelia app and deploy it live with ZEIT Now.",
43+
"published": "2019-11-01T12:00:00.860Z",
44+
"authors": ["msweeneydev"],
45+
"url": "/guides/deploying-aurelia-with-zeit-now",
46+
"image": "https://og-image.now.sh/**Deploy%20Aurelia%20Apps**%20%3Cbr%2F%3E%20with%20ZEIT%20Now.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2Fassets.zeit.co%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fzeit-black-triangle.svg&images=https%3A%2F%2Fcdn.svgporn.com%2Flogos%2Faurelia.svg&widths=300&widths=300&heights=300&heights=300",
47+
"editUrl": "pages/guides/deploying-aurelia-with-zeit-now.mdx",
48+
"lastEdited": "2019-11-01T09:10:37.000Z"
49+
},
4050
{
4151
"title": "Create a Charge App That Builds and Deploys with ZEIT Now",
4252
"description": "Deploy your Charge app with ZEIT Now in 3 easy steps.",
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
import Guide from '~/components/layout/guide'
2+
import Snippet from '~/components/snippet'
3+
import Caption from '~/components/text/caption'
4+
import { GenericLink } from '~/components/text/link'
5+
import { Image } from '~/components/media'
6+
import { InlineCode } from '~/components/text/code'
7+
8+
export const meta = {
9+
title: 'Deploy Aurelia with ZEIT Now',
10+
description: 'Create an Aurelia app and deploy it live with ZEIT Now.',
11+
published: '2019-11-01T12:00:00.860Z',
12+
authors: ['msweeneydev'],
13+
url: '/guides/deploying-aurelia-with-zeit-now',
14+
image:
15+
'https://og-image.now.sh/**Deploy%20Aurelia%20Apps**%20%3Cbr%2F%3E%20with%20ZEIT%20Now.png?theme=light&md=1&fontSize=100px&images=https%3A%2F%2Fassets.zeit.co%2Fimage%2Fupload%2Ffront%2Fassets%2Fdesign%2Fzeit-black-triangle.svg&images=https%3A%2F%2Fcdn.svgporn.com%2Flogos%2Faurelia.svg&widths=300&widths=300&heights=300&heights=300',
16+
editUrl: 'pages/guides/deploying-aurelia-with-zeit-now.mdx',
17+
lastEdited: '2019-11-01T09:10:37.000Z'
18+
}
19+
20+
[Aurelia](https://aurelia.io/home) is a JavaScript framework for web, mobile and desktop that leverages simple conventions to empower your creativity.
21+
22+
Create and deploy a new Aurelia app with ZEIT Now without the setup using the button below.
23+
24+
<a href="https://zeit.co/new/project?template=https://github.com/zeit/now-examples/tree/master/aurelia">
25+
<Image src="https://zeit.co/button" width={104} height={36} align="left" />
26+
</a>
27+
28+
Alternatively, set up an Aurelia app locally and deploy using [Now CLI](/download) with the following steps.
29+
30+
## Step 1: Set Up Your Aurelia Project
31+
32+
Set up an Aurelia app with [`npx`](https://www.npmjs.com/package/npx) and move into the project directory, choosing the option **Default ESNext App**:
33+
34+
<Snippet dark text="npx au new && cd aurelia-app" />
35+
<Caption>Initializing an Aurelia app with <GenericLink href="https://www.npmjs.com/package/npx">npx</GenericLink> and moving into the project directory.</Caption>
36+
37+
In the `/aurelia_project/aurelia.json` file, under the `platform` key, change the output directory for the project to `public`:
38+
39+
```diff
40+
"platform": {
41+
"hmr": false,
42+
"open": false,
43+
"port": 8080,
44+
- "output": "dist"
45+
+ "output": "public"
46+
}
47+
```
48+
49+
<Caption>
50+
Changing the output directory in the{' '}
51+
<InlineCode>/aurelia_project/aurelia.json</InlineCode> file.
52+
</Caption>
53+
54+
## Step 2: Deploying Your Aurelia App with ZEIT Now
55+
56+
With an Aurelia app set up, it is ready to deploy live with [Now](/docs/v2).
57+
58+
Using [Now CLI](/download), deploy your app with **a single command**:
59+
60+
<Snippet dark text="now" />
61+
<Caption>Deploying your Aurelia app with Now CLI.</Caption>
62+
63+
If you want to deploy your Aurelia app when you push to a Git repository, you can use either [Now for GitHub](/docs/v2/integrations/now-for-github/) or [Now for GitLab](/docs/v2/integrations/now-for-gitlab/) to have your project automatically deployed on every push, and the [production domain](https://zeit.co/docs/v2/custom-domains/#adding-a-domain) updated on push to master.
64+
65+
export default ({ children }) => <Guide meta={meta}>{children}</Guide>
66+
67+
export const config = {
68+
amp: 'hybrid'
69+
}

0 commit comments

Comments
 (0)