Skip to content

Commit

Permalink
Merge pull request #12 from alexjustesen/develop
Browse files Browse the repository at this point in the history
v2.0.0 release
  • Loading branch information
alexjustesen authored Jan 20, 2022
2 parents 751bbbb + 0aa128d commit e4c113e
Show file tree
Hide file tree
Showing 23 changed files with 9,459 additions and 26,685 deletions.
13 changes: 0 additions & 13 deletions .editorconfig

This file was deleted.

93 changes: 10 additions & 83 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,90 +1,17 @@
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
/logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release
# build output
dist

# Dependency directories
# dependencies
node_modules/
jspm_packages/

# TypeScript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# dotenv environment variables file
# environment variables
.env
.env.production

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# Nuxt generate
dist

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless

# IDE / Editor
.idea

# Service worker
sw.*

# macOS
# macOS-specific files
.DS_Store

# Vim swap files
*.swp
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
## force pnpm to hoist
shamefully-hoist = true
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

6 changes: 6 additions & 0 deletions .stackblitzrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"startCommand": "npm start",
"env": {
"ENABLE_CJS_IMPORTS": true
}
}
91 changes: 22 additions & 69 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,69 +1,22 @@
# alex-justesen-com

## Build Setup

```bash
# install dependencies
$ npm install

# serve with hot reload at localhost:3000
$ npm run dev

# build for production and launch server
$ npm run build
$ npm run start

# generate static project
$ npm run generate
```

For detailed explanation on how things work, check out the [documentation](https://nuxtjs.org).

## Special Directories

You can create the following extra directories, some of which have special behaviors. Only `pages` is required; you can delete them if you don't want to use their functionality.

### `assets`

The assets directory contains your uncompiled assets such as Stylus or Sass files, images, or fonts.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/assets).

### `components`

The components directory contains your Vue.js components. Components make up the different parts of your page and can be reused and imported into your pages, layouts and even other components.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/components).

### `layouts`

Layouts are a great help when you want to change the look and feel of your Nuxt app, whether you want to include a sidebar or have distinct layouts for mobile and desktop.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/layouts).


### `pages`

This directory contains your application views and routes. Nuxt will read all the `*.vue` files inside this directory and setup Vue Router automatically.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/get-started/routing).

### `plugins`

The plugins directory contains JavaScript plugins that you want to run before instantiating the root Vue.js Application. This is the place to add Vue plugins and to inject functions or constants. Every time you need to use `Vue.use()`, you should create a file in `plugins/` and add its path to plugins in `nuxt.config.js`.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/plugins).

### `static`

This directory contains your static files. Each file inside this directory is mapped to `/`.

Example: `/static/robots.txt` is mapped as `/robots.txt`.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/static).

### `store`

This directory contains your Vuex store files. Creating a file in this directory automatically activates Vuex.

More information about the usage of this directory in [the documentation](https://nuxtjs.org/docs/2.x/directory-structure/store).
# 🙋‍♂️ Alex Justesen
Hello, I'm Alex. I'm a web developer and data engineer at MassMutual by day and a keeper of too many projects by night.

This repo is the open sourced code for [alexjustesen.com](https://alexjustesen.com). Feel free to clone it, fork it and make it yours.

## Development
1. Clone or fork the repo
2. Run `npm install` then `npm run dev` to start the development server

## Deployment
1. Sign up for [Cloudflare Pages](https://pages.cloudflare.com/)
2. Create a new site and link it to the repo
3. The `main` branch is for production, all other branches will be deployed to preview environments
4. Set the framework to `Astro` under build configurations
5. Add environment variables for production and preview to set the node version
- `NODE_VERSION` => `v16.13.2`
- Version used needs to be `> v14.15.0` or `v16.0.0` per the [Astro docs](https://docs.astro.build/en/installation/)
- If you don't know your local node version run `node -v`

## Open Source
- [Astro](https://astro.build/)
- [Tailwindcss](https://tailwindcss.com/)
13 changes: 13 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// Full Astro Configuration API Documentation:
// https://docs.astro.build/reference/configuration-reference

// @type-check enabled!
// VSCode and other TypeScript-enabled text editors will provide auto-completion,
// helpful tooltips, and warnings if your exported object is invalid.
// You can disable this by removing "@ts-check" and `@type` comments below.

// @ts-check
export default /** @type {import('astro').AstroUserConfig} */ ({
// Enable the Preact renderer to support Preact JSX components.
renderers: ['@astrojs/renderer-preact'],
});
11 changes: 0 additions & 11 deletions components/NuxtLogo.vue

This file was deleted.

46 changes: 0 additions & 46 deletions components/Tutorial.vue

This file was deleted.

5 changes: 0 additions & 5 deletions layouts/page.vue

This file was deleted.

58 changes: 0 additions & 58 deletions nuxt.config.js

This file was deleted.

Loading

0 comments on commit e4c113e

Please sign in to comment.