Comments (9)
pulp init && pulp test
works, btw. I think it has to do with the node env not being set correctly.
from pulp.
It's because main.js is picked up as the main module, but the default skeleton creates a Main
purescript module, which results in output/Main/index.js
. Node will import main.js
on require('Main')
, rather than Main/index.js
.
from pulp.
Proposed solution would be to not store the wrapper file inside the build directory at all, rather using the temp
module to store it somewhere out of the way, then get rid of it automatically when it's no longer needed.
from pulp.
I appreciate it's not an all encompassing solution but that is besides the point of the pull request. The initial experience of starting with pulp is what mattered to me. If I change things, I can expect unforeseen things to happen.
from pulp.
I appreciate that, I'd still like to get the correct solution in asap. And I'm working on it as we speak, give me a moment. :)
from pulp.
That commit introduces a Type error in run.js
on line 22. Just add the additional parameter to fs.write
and it works: felixSchl/pulp@908600e
from pulp.
That's curious. What Node version are you on, just for reference? The docs have that parameter down as optional.
from pulp.
The docs specify the parameter as optional only if the other optional parameter position
has been specified - note the nested brackets. You can refer to the implementation which has not changed since mid july 2013.
from pulp.
The code seems to willingly accept both, but I agree with your interpretation of the doc. JS is terrible. :(
It did run correctly in its previous form on my v0.12.0 version of Node, though, which is why I'm puzzled.
from pulp.
Related Issues (20)
- Building dependencies only or first HOT 1
- is there a way to build only dependencies? HOT 1
- Allow pulp init with superuser access
- Unable to run pulp init using volta which shims purs into my path HOT 11
- Lua backend HOT 1
- psc-package asks for bower.json OR psc-package.json and then requires bower.json anyway HOT 2
- Have trouble to specify license to run `pulp version` HOT 3
- Dead link in README.md (using npm as your build tool)
- Pulp test no longer seems to work with purs 0.13.8 HOT 5
- Suggest Spago in README
- `pulp publish` doesn't support --dry-run HOT 2
- Add support for publishing to the PureScript registry
- Add support for upcoming 0.15.0 PureScript release
- Remove bower re-install code in `integration.js` HOT 1
- Determine how bundling works with PureScript v0.15.0 version HOT 2
- Versioning confusion HOT 5
- Fix the documentation on releasing packages HOT 4
- Drop the `devDependencies` check when publishing on PureScript `0.15.2` or greater
- `pulp publish` fails for large bower resolution file
- How can I get the docs generator to just generate docs for my files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulp.