robinyo / big-top Goto Github PK
View Code? Open in Web Editor NEWThe Big Top App
License: Other
The Big Top App
License: Other
Since your project is a very useful and convenient starter of universal application. A hot reload with Ionic Serve and Electron development is very essential. Herewith the gulpfile.js
, hope you may find it useful for further automate / 'lazy' dev.
const gulp = require('gulp')
const electron = require('electron-connect').server.create()
const config = require('@ionic/app-scripts/dist/util/config')
const ionic = require('@ionic/app-scripts')
gulp.task('electron-live', function () {
// Start browser process
electron.start()
gulp.watch('src/app.js', electron.restart)
// Reload renderer process
gulp.watch([
'www/js/app.js',
'www/**/*.html',
'www/**/*.css',
'www/**/*.js'], electron.reload)
})
gulp.task('dev', function () {
ionic.watch(config.generateContext())
.then(function () {
gulp.start('electron-live')
})
.catch(function (err) {
console.log('Error starting watch: ', err)
})
})
The above code may help us to dev ionic in electron with hot reload, just run gulp dev
and everything will go on.
how can i set icon for application ?
Hello i come from this issue gshigeto/ionic-environment-variables#15
I change some thing in webpack.config.ts
const env = (typeof process.env.MY_ENV == 'undefined') ? process.env.IONIC_ENV : process.env.MY_ENV;
I have test
ENV and you can't set --prod
with --livereload
right.
When I set MY_ENV=prod
it will got an error.
MY_ENV=prod ionic cordova emulate ios -lcs --target=iPhone-6
But with ionic cordova emulate ios --prod --target=iPhone-6
was fine.
when write ionic serve
this is my output
ionic-app-scripts serve --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser
[app-scripts] 'ionic-app-scripts' is not recognized as an internal or external command,
[app-scripts] operable program or batch file.
[INFO] Looks like @ionic/app-scripts isn't installed in this project.
This package is required for this command to work properly. The package provides a CLI utility, but the
ionic-app-scripts binary was not found in your PATH.
? Install @ionic/app-scripts? No
[WARN] Not installing--here's how to install manually: npm i -D -E @ionic/app-scripts
[ERROR] @ionic/app-scripts is required for this command to work properly.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.