Coder Social home page Coder Social logo

robert-w / esri-flux-react Goto Github PK

View Code? Open in Web Editor NEW
22.0 22.0 5.0 635 KB

Simple Boilerplate for using React and Esri's JavaScript API together. It supports IE 9+ and the last two versions of all major browsers and can run in https or http. For data management, it's using Alt.js (a flux library).

Home Page: https://robert-w.github.io/esri-flux-react/

License: MIT License

ApacheConf 1.45% JavaScript 60.77% CSS 8.11% HTML 29.67%

esri-flux-react's People

Contributors

robert-w avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

esri-flux-react's Issues

Investigate: Flowtypes

This is referring to http://flowtype.org, Facebook's static type checker for javascript.

There is a branch called flowtype that has some boilerplate for getting flowtypes to check props and things in raw src at compile time and not at run time. This is a really useful feature as it can statically check whether or not people are using components and functions correctly before a build is ever deployed for testing.

Things Working:

  • components are checking other component types
  • components can see other components types even when they are not in the same file
  • figure out aliases so flow can easily find other files imported in
  • utility and helper functions work

Things to look into:

  • Help flow understand Alt.js exports so actions and store methods can type check
  • Learn more about custom declarations and how to correctly use them
  • Lean more about different options for .flowconfig

Investigate `npm start`

Current start command uses & for parallelism, e.g. (npm run babel & gulp start & gulp serve). This does not work reliably on windows and since the & runs things in the background, this potentially causes issues when an error occurs, leaving a process running in the background. This has been spotted when someone's start task throws an error or quits and then they save a js file and babel is still running, which has to be killed with the kill command.

Upgrade Tooling

  • - Upgrade to Sass instead of stylus
  • - Upgrade to Pug since Jade is being renamed
  • - Upgrade Tooling to use gulp-sass, gulp-pug, and gulp-replace possibly for injecting inline styles if jstransformer-scss will not work

Not an Issue but a question

I've been looking through how you add js/main in dojoConfig through the callback and require.

I've found that some packages can't be used easily due to AMD/CommonJS complications and other things I don't fully understand.

For instance, how would you go about adding react-linkify to this build?

Any help would be greatly appreciated in figuring out the wild west of javascript build processes hah

Problem wiht npm start

Thanks for making this boilerplate. It seems great. However, I cannot get the npm start command to work. The "npm start" command stops at the following line:

src\locals.js -> build\locals.js

.. and then it just stays there, with nothing happening. Do you know a workaround for this?

Using Material-UI?

Any chance you can create an example of how to properly include a library like Material-UI into this build process?

Fix build command for Windows

running mkdir -p on some windows machines seems to throw an error about the syntax not being correct. And also a fellow dev had no success with the r.js command until she changed it to r.js.cmd.

I will test r.js.cmd on Mac and if it works will update the builds and see about an alternative to mkdir -p if it becomes an issue.

Also not using gulp task babel:polyfill which is needed for older browsers like IE <= 9, so I need to simply add that to the gulp build and gulp dist commands.

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.