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.
Update examples/custom-build-options #8
- Loading branch information
1 parent
0b02d71
commit fb60855
Showing
8 changed files
with
97 additions
and
82 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,30 +1,30 @@ | ||
<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 custom-build-options | ||
|
||
# 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`) | ||
|
||
# Build packages for all platform | ||
# production build for all platform | ||
$ yarn build:all (or `npm run build:all`) | ||
|
||
# Build packages for windows 32 bit | ||
# production build for windows 32 bit | ||
$ yarn build:win (or `npm run build:win`) | ||
|
||
# Build packages for macOS 64 bit | ||
# production build for macOS 64 bit | ||
$ yarn build:mac (or `npm run build:mac`) | ||
|
||
# Build packages for Linux | ||
# production build for Linux | ||
$ yarn build:linux (or `npm run build:linux`) | ||
``` |
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,12 @@ | ||
appId: com.example.nuxtron | ||
productName: My Nuxtron App | ||
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,41 +3,24 @@ | |
"name": "custom-build-options", | ||
"description": "My application description", | ||
"version": "1.0.0", | ||
"author": "Yoshihide Shiono <[email protected]>", | ||
"author": "Shiono Yoshihide <[email protected]>", | ||
"main": "app/background.js", | ||
"build": { | ||
"appId": "com.example.nuxtron", | ||
"productName": "My Nuxtron App", | ||
"copyright": "Copyright © 2018 Yoshihide Shiono", | ||
"directories": { | ||
"output": "dist", | ||
"buildResources": "resources" | ||
}, | ||
"publish": null | ||
}, | ||
"scripts": { | ||
"dev": "node build/nuxtron.js", | ||
"build": "node build/nuxtron.js build", | ||
"build:all": "node build/nuxtron.js build --all", | ||
"build:win": "node build/nuxtron.js build --win --ia32", | ||
"build:mac": "node build/nuxtron.js build --mac --x64", | ||
"build:linux": "node build/nuxtron.js build --linux" | ||
"dev": "nuxtron", | ||
"build": "nuxtron build", | ||
"build:all": "nuxtron build --all", | ||
"build:win": "nuxtron build --win --ia32", | ||
"build:mac": "nuxtron build --mac --x64", | ||
"build:linux": "nuxtron build --linux" | ||
}, | ||
"dependencies": { | ||
"fs-jetpack": "^2.2.2", | ||
"nuxt": "2.8.1" | ||
"electron-serve": "^0.4.0", | ||
"electron-store": "^5.0.0" | ||
}, | ||
"devDependencies": { | ||
"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", | ||
"webpack": "^4.33.0", | ||
"webpack-merge": "^4.2.1" | ||
"electron": "^6.0.12", | ||
"electron-builder": "^21.2.0", | ||
"nuxt": "^2.10.1", | ||
"nuxtron": "^0.1.31" | ||
} | ||
} |
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,11 +1,10 @@ | ||
export default { | ||
head: { | ||
title: 'Nuxtron (custom-build-options)', | ||
}, | ||
build: { | ||
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.