I'm following the outline of tutorial (https://egghead.io/courses/professor-frisby-introduces-composable-functional-javascript). I've tried to make it clear that JavaScripters go through his tutorials first so that they understand the abstractions in the comfort of JavaScript before tackling them in PureScript.
In video 1, function composition is covered, followed by the Identity functor (calling it Box in order not to scare anyone). The Box object includes map, inspect, and fold: f => f(x). I felt that the Comonad was the best approach to tackling his version of fold, though not exactly a one-for-one translation.
That said I'm very open to pull requests. I want these tutorials to make a positive contribution to the PS community.
Does the pulp
work after that? It should, as it says it's optional dependency. As for the issue, see this SO thread — looks like the solution is to install npm v3.
Depend on what build tool you use. Common method is use `process.env` in source code then add configuration variables in build step
Webpack example, https://webpack.js.org/plugins/environment-plugin/