diff --git a/v2/internal/templates/templates/angular-template/template.json b/v2/internal/templates/templates/angular-template/template.json deleted file mode 100644 index feab4ce9..00000000 --- a/v2/internal/templates/templates/angular-template/template.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Angular", - "shortname": "angular", - "author": "bh90210 ", - "description": "Angular projects w/ @angular/cli - Note: in order to reach the cli use npx like this: npx ng" -} \ No newline at end of file diff --git a/v2/internal/templates/templates/create-react-app/template.json b/v2/internal/templates/templates/create-react-app/template.json deleted file mode 100644 index ea8b74f0..00000000 --- a/v2/internal/templates/templates/create-react-app/template.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "React JS", - "shortname": "react", - "author": "bh90210 ", - "description": "Create React App v3 standar tooling" -} \ No newline at end of file diff --git a/v2/internal/templates/templates/svelte-mui/basic.tmpl.go b/v2/internal/templates/templates/svelte-mui/basic.tmpl.go deleted file mode 100644 index da71d2da..00000000 --- a/v2/internal/templates/templates/svelte-mui/basic.tmpl.go +++ /dev/null @@ -1,35 +0,0 @@ -package main - -import ( - "fmt" - - "github.com/wailsapp/wails/v2" -) - -// Basic application struct -type Basic struct { - runtime *wails.Runtime -} - -// newBasic creates a new Basic application struct -func newBasic() *Basic { - return &Basic{} -} - -// WailsInit is called at application startup -func (b *Basic) WailsInit(runtime *wails.Runtime) error { - // Perform your setup here - b.runtime = runtime - runtime.Window.SetTitle("{{.ProjectName}}") - return nil -} - -// WailsShutdown is called at application termination -func (b *Basic) WailsShutdown() { - // Perform your teardown here -} - -// Greet returns a greeting for the given name -func (b *Basic) Greet(name string) string { - return fmt.Sprintf("Hello %s!", name) -} diff --git a/v2/internal/templates/templates/svelte-mui/frontend/.gitignore b/v2/internal/templates/templates/svelte-mui/frontend/.gitignore deleted file mode 100644 index da93220b..00000000 --- a/v2/internal/templates/templates/svelte-mui/frontend/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -/node_modules/ -/public/build/ - -.DS_Store diff --git a/v2/internal/templates/templates/svelte-mui/frontend/README.md b/v2/internal/templates/templates/svelte-mui/frontend/README.md deleted file mode 100644 index 234b0742..00000000 --- a/v2/internal/templates/templates/svelte-mui/frontend/README.md +++ /dev/null @@ -1,93 +0,0 @@ -*Looking for a shareable component template? Go here --> [sveltejs/component-template](https://github.com/sveltejs/component-template)* - ---- - -# svelte app - -This is a project template for [Svelte](https://svelte.dev) apps. It lives at https://github.com/sveltejs/template. - -To create a new project based on this template using [degit](https://github.com/Rich-Harris/degit): - -```bash -npx degit sveltejs/template svelte-app -cd svelte-app -``` - -*Note that you will need to have [Node.js](https://nodejs.org) installed.* - - -## Get started - -Install the dependencies... - -```bash -cd svelte-app -npm install -``` - -...then start [Rollup](https://rollupjs.org): - -```bash -npm run dev -``` - -Navigate to [localhost:5000](http://localhost:5000). You should see your app running. Edit a component file in `src`, save it, and reload the page to see your changes. - -By default, the server will only respond to requests from localhost. To allow connections from other computers, edit the `sirv` commands in package.json to include the option `--host 0.0.0.0`. - - -## Building and running in production mode - -To create an optimised version of the app: - -```bash -npm run build -``` - -You can run the newly built app with `npm run start`. This uses [sirv](https://github.com/lukeed/sirv), which is included in your package.json's `dependencies` so that the app will work when you deploy to platforms like [Heroku](https://heroku.com). - - -## Single-page app mode - -By default, sirv will only respond to requests that match files in `public`. This is to maximise compatibility with static fileservers, allowing you to deploy your app anywhere. - -If you're building a single-page app (SPA) with multiple routes, sirv needs to be able to respond to requests for *any* path. You can make it so by editing the `"start"` command in package.json: - -```js -"start": "sirv public --single" -``` - - -## Deploying to the web - -### With [now](https://zeit.co/now) - -Install `now` if you haven't already: - -```bash -npm install -g now -``` - -Then, from within your project folder: - -```bash -cd public -now deploy --name my-project -``` - -As an alternative, use the [Now desktop client](https://zeit.co/download) and simply drag the unzipped project folder to the taskbar icon. - -### With [surge](https://surge.sh/) - -Install `surge` if you haven't already: - -```bash -npm install -g surge -``` - -Then, from within your project folder: - -```bash -npm run build -surge public my-project.surge.sh -``` diff --git a/v2/internal/templates/templates/svelte-mui/frontend/package.json b/v2/internal/templates/templates/svelte-mui/frontend/package.json deleted file mode 100644 index f6d0c5d0..00000000 --- a/v2/internal/templates/templates/svelte-mui/frontend/package.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "name": "svelte-app", - "version": "1.0.0", - "scripts": { - "build": "npx rollup -c", - "dev": "npx rollup -c -w", - "start": "npx sirv public", - "start:dev": "npx sirv public --single --host 0.0.0.0 --dev" - }, - "devDependencies": { - "@rollup/plugin-commonjs": "^17.0.0", - "@rollup/plugin-node-resolve": "^11.0.1", - "focus-visible": "^5.2.0", - "rollup": "^2.35.1", - "rollup-plugin-livereload": "^2.0.0", - "rollup-plugin-svelte": "^7.0.0", - "rollup-plugin-terser": "^7.0.2", - "svelte": "^3.31.1", - "svelte-mui": "^0.3.3-5" - }, - "dependencies": { - "sirv-cli": "^0.4.4" - } -} diff --git a/v2/internal/templates/templates/svelte-mui/frontend/public/favicon.png b/v2/internal/templates/templates/svelte-mui/frontend/public/favicon.png deleted file mode 100644 index a03607d6..00000000 Binary files a/v2/internal/templates/templates/svelte-mui/frontend/public/favicon.png and /dev/null differ diff --git a/v2/internal/templates/templates/svelte-mui/frontend/public/index.html b/v2/internal/templates/templates/svelte-mui/frontend/public/index.html deleted file mode 100644 index b19ad70f..00000000 --- a/v2/internal/templates/templates/svelte-mui/frontend/public/index.html +++ /dev/null @@ -1,24 +0,0 @@ - - - - - - - - - - - - - - Svelte app - - - - - - - - - - diff --git a/v2/internal/templates/templates/svelte-mui/frontend/rollup.config.js b/v2/internal/templates/templates/svelte-mui/frontend/rollup.config.js deleted file mode 100644 index 6d7a1aa1..00000000 --- a/v2/internal/templates/templates/svelte-mui/frontend/rollup.config.js +++ /dev/null @@ -1,71 +0,0 @@ -import svelte from 'rollup-plugin-svelte'; -import resolve from '@rollup/plugin-node-resolve'; -import commonjs from '@rollup/plugin-commonjs'; -import livereload from 'rollup-plugin-livereload'; -import { terser } from 'rollup-plugin-terser'; - -const production = !process.env.ROLLUP_WATCH; - -export default { - input: 'src/main.js', - output: { - sourcemap: true, - format: 'iife', - name: 'app', - file: 'public/bundle.js' - }, - plugins: [ - svelte({ - // enable run-time checks when not in production - dev: !production, - // we'll extract any component CSS out into - // a separate file - better for performance - css: css => { - css.write('public/bundle.css'); - } - }), - - // If you have external dependencies installed from - // npm, you'll most likely need these plugins. In - // some cases you'll need additional configuration - - // consult the documentation for details: - // https://github.com/rollup/plugins/tree/master/packages/commonjs - resolve({ - browser: true, - dedupe: ['svelte'] - }), - commonjs(), - - // In dev mode, call `npm run start` once - // the bundle has been generated - !production && serve(), - - // Watch the `public` directory and refresh the - // browser on changes when not in production - !production && livereload('public'), - - // If we're building for production (npm run build - // instead of npm run dev), minify - production && terser() - ], - watch: { - clearScreen: false - } -}; - -function serve() { - let started = false; - - return { - writeBundle() { - if (!started) { - started = true; - - require('child_process').spawn('npm', ['run', 'start', '--', '--dev'], { - stdio: ['ignore', 'inherit', 'inherit'], - shell: true - }); - } - } - }; -} diff --git a/v2/internal/templates/templates/svelte-mui/frontend/src/App.svelte b/v2/internal/templates/templates/svelte-mui/frontend/src/App.svelte deleted file mode 100644 index c638d87b..00000000 --- a/v2/internal/templates/templates/svelte-mui/frontend/src/App.svelte +++ /dev/null @@ -1,51 +0,0 @@ -

Hello {name}!

- - - {response} - - - - - - - - - - - - - diff --git a/v2/internal/templates/templates/svelte-mui/frontend/src/main.js b/v2/internal/templates/templates/svelte-mui/frontend/src/main.js deleted file mode 100644 index a1b7fa27..00000000 --- a/v2/internal/templates/templates/svelte-mui/frontend/src/main.js +++ /dev/null @@ -1,10 +0,0 @@ -import App from './App.svelte'; - -const app = new App({ - target: document.body, - props: { - name: 'Wails User' - } -}); - -export default app; diff --git a/v2/internal/templates/templates/svelte-mui/go.mod.tmpl b/v2/internal/templates/templates/svelte-mui/go.mod.tmpl deleted file mode 100644 index 21bd6c6a..00000000 --- a/v2/internal/templates/templates/svelte-mui/go.mod.tmpl +++ /dev/null @@ -1,9 +0,0 @@ -module test - -go 1.13 - -require ( - github.com/wailsapp/wails/v2 v2.0.0-alpha -) - -replace github.com/wailsapp/wails/v2 v2.0.0-alpha => {{.WailsDirectory}} diff --git a/v2/internal/templates/templates/svelte-mui/main.tmpl.go b/v2/internal/templates/templates/svelte-mui/main.tmpl.go deleted file mode 100644 index efceec4d..00000000 --- a/v2/internal/templates/templates/svelte-mui/main.tmpl.go +++ /dev/null @@ -1,22 +0,0 @@ -package main - -import ( - "github.com/wailsapp/wails/v2" - "log" -) - -func main() { - - // Create application with options - app, err := wails.CreateApp("{{.ProjectName}}", 1024, 768) - if err != nil { - log.Fatal(err) - } - - app.Bind(newBasic()) - - err = app.Run() - if err != nil { - log.Fatal(err) - } -} diff --git a/v2/internal/templates/templates/svelte-mui/template.json b/v2/internal/templates/templates/svelte-mui/template.json deleted file mode 100644 index 3f93967d..00000000 --- a/v2/internal/templates/templates/svelte-mui/template.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Svelte + MUI3", - "shortname": "svelte-mui", - "author": "Travis McLane ", - "description": "A simple template using Svelte + Mui3", - "helpurl": "https://wails.app/help/templates/svelte-mui3" -} diff --git a/v2/internal/templates/templates/svelte-mui/wails.tmpl.json b/v2/internal/templates/templates/svelte-mui/wails.tmpl.json deleted file mode 100644 index 8bca9417..00000000 --- a/v2/internal/templates/templates/svelte-mui/wails.tmpl.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "{{.ProjectName}}", - "outputfilename": "{{.BinaryName}}", - "html": "frontend/public/index.html", - "js": "frontend/public/bundle.js", - "css": "frontend/public/bundle.css", - "frontend:build": "npm run build", - "frontend:install": "npm install" -} diff --git a/v2/internal/templates/templates/vanilla/go.mod.tmpl b/v2/internal/templates/templates/vanilla/go.mod.tmpl index 21bd6c6a..9c7b6f58 100644 --- a/v2/internal/templates/templates/vanilla/go.mod.tmpl +++ b/v2/internal/templates/templates/vanilla/go.mod.tmpl @@ -1,6 +1,6 @@ module test -go 1.13 +go 1.16 require ( github.com/wailsapp/wails/v2 v2.0.0-alpha diff --git a/v2/internal/templates/templates/vuebasic/template.json b/v2/internal/templates/templates/vuebasic/template.json deleted file mode 100644 index 228b5cee..00000000 --- a/v2/internal/templates/templates/vuebasic/template.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Vue2/Webpack Basic", - "shortname": "vue", - "author": "Lea Anthony", - "description": "A basic template using Vue 2 and bundled using Webpack 4" -} \ No newline at end of file diff --git a/v2/internal/templates/templates/vuetify-basic/template.json b/v2/internal/templates/templates/vuetify-basic/template.json deleted file mode 100644 index bf557f47..00000000 --- a/v2/internal/templates/templates/vuetify-basic/template.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "name": "Vuetify1.5/Webpack Basic", - "shortname": "vuetify1", - "author": "Lea Anthony ", - "description": "Basic template using Vuetify v1.5 and bundled using Webpack" -} \ No newline at end of file diff --git a/v2/internal/templates/templates/vuetify2-basic/basic.tmpl.go b/v2/internal/templates/templates/vuetify2-basic/basic.tmpl.go deleted file mode 100644 index da71d2da..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/basic.tmpl.go +++ /dev/null @@ -1,35 +0,0 @@ -package main - -import ( - "fmt" - - "github.com/wailsapp/wails/v2" -) - -// Basic application struct -type Basic struct { - runtime *wails.Runtime -} - -// newBasic creates a new Basic application struct -func newBasic() *Basic { - return &Basic{} -} - -// WailsInit is called at application startup -func (b *Basic) WailsInit(runtime *wails.Runtime) error { - // Perform your setup here - b.runtime = runtime - runtime.Window.SetTitle("{{.ProjectName}}") - return nil -} - -// WailsShutdown is called at application termination -func (b *Basic) WailsShutdown() { - // Perform your teardown here -} - -// Greet returns a greeting for the given name -func (b *Basic) Greet(name string) string { - return fmt.Sprintf("Hello %s!", name) -} diff --git a/v2/internal/templates/templates/vuetify2-basic/frontend/babel.config.js b/v2/internal/templates/templates/vuetify2-basic/frontend/babel.config.js deleted file mode 100644 index 57e6d0a5..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/frontend/babel.config.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = { - presets: [ - [ '@vue/app', { useBuiltIns: 'entry' } ] - ] -}; diff --git a/v2/internal/templates/templates/vuetify2-basic/frontend/package.tmpl.json b/v2/internal/templates/templates/vuetify2-basic/frontend/package.tmpl.json deleted file mode 100644 index 9d2242d6..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/frontend/package.tmpl.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "name": "vuetify2", - "author": "{{.AuthorNameAndEmail}}", - "private": true, - "scripts": { - "serve": "vue-cli-service serve", - "build": "vue-cli-service build", - "lint": "vue-cli-service lint" - }, - "dependencies": { - "core-js": "^3.6.1", - "regenerator-runtime": "^0.13.3", - "vue": "^2.5.22", - "vuetify": "^2.2.17" - }, - "devDependencies": { - "@mdi/font": "^4.3.95", - "@vue/cli-plugin-babel": "^3.4.0", - "@vue/cli-plugin-eslint": "^3.4.0", - "@vue/cli-service": "^3.4.0", - "babel-eslint": "^10.0.1", - "eslint": "^5.8.0", - "eslint-plugin-vue": "^5.0.0", - "eventsource-polyfill": "^0.9.6", - "vue-template-compiler": "^2.5.21", - "webpack-hot-middleware": "^2.24.3" - }, - "eslintConfig": { - "root": true, - "env": { - "node": true - }, - "extends": [ - "plugin:vue/essential", - "eslint:recommended" - ], - "rules": {}, - "parserOptions": { - "parser": "babel-eslint" - } - }, - "postcss": { - "plugins": { - "autoprefixer": {} - } - }, - "browserslist": [ - "> 1%", - "last 2 versions", - "not ie <= 8" - ] -} diff --git a/v2/internal/templates/templates/vuetify2-basic/frontend/public/index.html b/v2/internal/templates/templates/vuetify2-basic/frontend/public/index.html deleted file mode 100644 index 570f9f0d..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/frontend/public/index.html +++ /dev/null @@ -1 +0,0 @@ -Wails
diff --git a/v2/internal/templates/templates/vuetify2-basic/frontend/src/App.vue b/v2/internal/templates/templates/vuetify2-basic/frontend/src/App.vue deleted file mode 100644 index 2d4a3422..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/frontend/src/App.vue +++ /dev/null @@ -1,60 +0,0 @@ - - - - - \ No newline at end of file diff --git a/v2/internal/templates/templates/vuetify2-basic/frontend/src/assets/images/logo.png b/v2/internal/templates/templates/vuetify2-basic/frontend/src/assets/images/logo.png deleted file mode 100644 index 31fc8249..00000000 Binary files a/v2/internal/templates/templates/vuetify2-basic/frontend/src/assets/images/logo.png and /dev/null differ diff --git a/v2/internal/templates/templates/vuetify2-basic/frontend/src/components/HelloWorld.vue b/v2/internal/templates/templates/vuetify2-basic/frontend/src/components/HelloWorld.vue deleted file mode 100644 index 6ba7a279..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/frontend/src/components/HelloWorld.vue +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - diff --git a/v2/internal/templates/templates/vuetify2-basic/frontend/src/main.js b/v2/internal/templates/templates/vuetify2-basic/frontend/src/main.js deleted file mode 100644 index 1747f189..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/frontend/src/main.js +++ /dev/null @@ -1,27 +0,0 @@ -import 'core-js/stable'; -import 'regenerator-runtime/runtime'; -import '@mdi/font/css/materialdesignicons.css'; -import Vue from 'vue'; -import Vuetify from 'vuetify'; -import 'vuetify/dist/vuetify.min.css'; - -Vue.use(Vuetify); - -import App from './App.vue'; - -Vue.config.productionTip = false; -Vue.config.devtools = true; - -Wails.Init(() => { - new Vue({ - vuetify: new Vuetify({ - icons: { - iconfont: 'mdi' - }, - theme: { - dark: true - } - }), - render: h => h(App) - }).$mount('#app'); -}); diff --git a/v2/internal/templates/templates/vuetify2-basic/frontend/vue.config.js b/v2/internal/templates/templates/vuetify2-basic/frontend/vue.config.js deleted file mode 100644 index 3ce2deea..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/frontend/vue.config.js +++ /dev/null @@ -1,60 +0,0 @@ -let cssConfig = {}; - -if (process.env.NODE_ENV == 'production') { - cssConfig = { - extract: { - filename: '[name].css', - chunkFilename: '[name].css' - } - }; -} - -module.exports = { - indexPath: 'index.html', - publicPath: 'public', - // disable hashes in filenames - filenameHashing: false, - // delete HTML related webpack plugins - chainWebpack: config => { - config.plugins.delete('preload'); - config.plugins.delete('prefetch'); - config - .plugin('html') - .tap(args => { - args[0].template = 'public/index.html'; - args[0].inject = false; - args[0].cache = false; - args[0].minify = false; - args[0].filename = 'index.html'; - return args; - }); - - let limit = 9999999999999999; - config.module - .rule('images') - .test(/\.(png|gif|jpg)(\?.*)?$/i) - .use('url-loader') - .loader('url-loader') - .tap(options => Object.assign(options, { limit: limit })); - config.module - .rule('fonts') - .test(/\.(woff2?|eot|ttf|otf|svg)(\?.*)?$/i) - .use('url-loader') - .loader('url-loader') - .options({ - limit: limit - }); - }, - css: cssConfig, - configureWebpack: { - output: { - filename: '[name].js' - }, - optimization: { - splitChunks: false - } - }, - devServer: { - disableHostCheck: true - } -}; diff --git a/v2/internal/templates/templates/vuetify2-basic/go.mod.tmpl b/v2/internal/templates/templates/vuetify2-basic/go.mod.tmpl deleted file mode 100644 index 21bd6c6a..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/go.mod.tmpl +++ /dev/null @@ -1,9 +0,0 @@ -module test - -go 1.13 - -require ( - github.com/wailsapp/wails/v2 v2.0.0-alpha -) - -replace github.com/wailsapp/wails/v2 v2.0.0-alpha => {{.WailsDirectory}} diff --git a/v2/internal/templates/templates/vuetify2-basic/main.tmpl.go b/v2/internal/templates/templates/vuetify2-basic/main.tmpl.go deleted file mode 100644 index 1dc26525..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/main.tmpl.go +++ /dev/null @@ -1,15 +0,0 @@ -package main - -import ( - "github.com/wailsapp/wails/v2" -) - -func main() { - - // Create application with options - app := wails.CreateApp("{{.ProjectName}}", 1024, 768) - - app.Bind(newBasic()) - - app.Run() -} diff --git a/v2/internal/templates/templates/vuetify2-basic/template.json b/v2/internal/templates/templates/vuetify2-basic/template.json deleted file mode 100644 index 4ecb6b4b..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/template.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "name": "Vuetify 2 ", - "shortname": "vuetify2", - "author": "Michael Hipp ", - "description": "A simple template using only HTML/CSS/JS", - "helpurl": "https://wails.app/help/templates/vuetify2" -} diff --git a/v2/internal/templates/templates/vuetify2-basic/wails.tmpl.json b/v2/internal/templates/templates/vuetify2-basic/wails.tmpl.json deleted file mode 100644 index 656b8b9a..00000000 --- a/v2/internal/templates/templates/vuetify2-basic/wails.tmpl.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "name": "{{.ProjectName}}", - "outputfilename": "{{.BinaryName}}", - "html": "frontend/dist/index.html", - "js": "frontend/dist/app.js", - "css": "frontend/dist/app.css", - "frontend:build": "npm run build", - "frontend:install": "npm install", - "author": { - "name": "{{.AuthorName}}", - "email": "{{.AuthorEmail}}" - } -}