GithubHelp home page GithubHelp logo

kfranqueiro / electron-dojo-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
6.0 4.0 2.0 118 KB

Boilerplate for Electron apps using the Dojo Toolkit.

License: MIT License

JavaScript 88.44% Batchfile 0.34% HTML 11.22%

electron-dojo-boilerplate's Introduction

Electron Dojo Boilerplate

This repository provides a starting/reference point for Electron-based applications using the Dojo toolkit and the Stylus CSS preprocessor.

Setup

  1. Clone this repository into a directory of your choice
  2. rm -rf .git and git init to nuke this repo's history
  3. Update name in package.json and bower.json, and otherwise tweak as desired
  4. npm install
  5. bower install
  6. Replace "Electron Dojo Boilerplate" in Gruntfile.js and src/browser/main.js
  7. Update or replace LICENSE as desired
  8. Optionally replace icon.ico and icon.icns with your own icon, or delete them and remove icon from the electron-packager task configuration in Gruntfile.js

Usage

Development

  1. grunt dev
  2. bin/run

Release

grunt release

This will set up releases for OS X, Linux, and Windows under the dist directory. (Target platforms can be customized via the arch and platform properties in the electron-packager task configuration.)

Note that cross-OS limitations may apply. In particular:

  • Building for Windows targets with a custom icon requires wine on non-Windows OSes for rcedit
  • Building for OS X is skipped on Windows due to dodgy symlink support

License

MIT

electron-dojo-boilerplate's People

Contributors

kfranqueiro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ysobj phpmaps

electron-dojo-boilerplate's Issues

Require still points to dojoRequire

From the src folder tying to run a simple electron app.
My index.html loads dojo something like

< script>
var dojoConfig = {
async: true,
deps: [ 'app/main' ],
has: {
'host-node': false
}
};
window.electronRequire = require;
delete window.require;
</script>
and
< script src="https://ajax.googleapis.com/ajax/libs/dojo/1.10.4/dojo/dojo.js" ></script>

on running the electron app, app loads dojo sucessfully but tries to load main.js from https://ajax.googleapis.com/ajax/libs/dojo/1.10.4/app/main.js
and hence fails.

Is there anything else as well to be fixed to load dojo.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.