This repository has been archived by the owner on Nov 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb60855
commit d22c8dc
Showing
9 changed files
with
94 additions
and
79 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 |
---|---|---|
@@ -1,18 +1,18 @@ | ||
<p align="center"><img src="https://i.imgur.com/Nt6SNJb.png"></p> | ||
<p align="center"><img src="https://i.imgur.com/PTqXTbx.png"></p> | ||
|
||
## Usage | ||
|
||
```bash | ||
# create an app | ||
$ nuxtron init my-app --example with-typescript | ||
|
||
# install dependencies | ||
$ cd my-app | ||
|
||
# Install dependencies | ||
$ yarn (or `npm install`) | ||
|
||
# Run development mode | ||
# development mode | ||
$ yarn dev (or `npm run dev`) | ||
|
||
# Build packages | ||
# production build | ||
$ yarn build (or `npm run build`) | ||
``` |
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,6 +1,12 @@ | ||
appId: com.example.nuxtron | ||
productName: My Nuxtron App | ||
copyright: Copyright © 2018 Yoshihide Shiono | ||
copyright: Copyright © 2019 Shiono Yoshihide | ||
directories: | ||
output: dist | ||
buildResources: resources | ||
files: | ||
- from: . | ||
filter: | ||
- package.json | ||
- app | ||
publish: null |
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 |
---|---|---|
|
@@ -3,34 +3,23 @@ | |
"name": "with-typescript", | ||
"description": "My application description", | ||
"version": "1.0.0", | ||
"author": "Yoshihide Shiono <[email protected]>", | ||
"author": "Shiono Yoshihide <[email protected]>", | ||
"main": "app/background.js", | ||
"scripts": { | ||
"dev": "node build/nuxtron.js", | ||
"build": "node build/nuxtron.js build" | ||
"dev": "nuxtron", | ||
"build": "nuxtron build" | ||
}, | ||
"dependencies": { | ||
"electron-store": "^3.2.0", | ||
"nuxt": "2.8.1" | ||
"electron-serve": "^0.4.0", | ||
"electron-store": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"@nuxt/typescript": "2.8.1", | ||
"@types/cross-spawn": "^6.0.0", | ||
"@types/fs-extra": "^7.0.0", | ||
"@types/node": "^12.0.3", | ||
"@types/webpack": "^4.4.32", | ||
"arg": "^4.1.0", | ||
"chalk": "^2.4.2", | ||
"electron": "5.0.3", | ||
"electron-builder": "20.43.0", | ||
"fast-glob": "^2.2.6", | ||
"friendly-errors-webpack-plugin": "^1.7.0", | ||
"fs-extra": "^8.0.1", | ||
"node-npx": "^1.3.1", | ||
"ora": "^3.4.0", | ||
"ts-node": "^8.1.0", | ||
"typescript": "^3.5.1", | ||
"webpack": "^4.33.0", | ||
"webpack-merge": "^4.2.1" | ||
"@nuxt/typescript": "^2.8.1", | ||
"@types/node": "^12.7.12", | ||
"electron": "^6.0.12", | ||
"electron-builder": "^21.2.0", | ||
"nuxt": "^2.10.1", | ||
"nuxtron": "^0.1.31", | ||
"typescript": "^3.6.4" | ||
} | ||
} |
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,9 +1,10 @@ | ||
export default { | ||
head: { | ||
title: 'Nuxtron (with-typescript)', | ||
}, | ||
build: { | ||
extend: config => { | ||
extend: (config) => { | ||
config.target = 'electron-renderer'; | ||
}, | ||
extractCSS: true, | ||
}, | ||
plugins: ['~/plugins/nuxtron'], | ||
}; | ||
} |
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 was deleted.
Oops, something went wrong.
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,40 @@ | ||
<template> | ||
<div class="container"> | ||
<img src="/nuxt.png"> | ||
<h2>Hello Nuxtron.</h2> | ||
<p>Loaded from the {{ name }}</p> | ||
<p> | ||
<NuxtLink to="/about"> | ||
About | ||
</NuxtLink> | ||
</p> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
asyncData ({ req }) { | ||
return { | ||
name: process.static ? 'static' : (process.server ? 'server' : 'client'), | ||
} | ||
} | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.container { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
width: 100%; | ||
background: white; | ||
color: black; | ||
font-family: "Lucida Console", Monaco, monospace; | ||
padding-top: 100px; | ||
text-align: center; | ||
} | ||
a { | ||
color: black; | ||
} | ||
</style> |
This file was deleted.
Oops, something went wrong.
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