Comments (8)
You're right, the current convention seems a bit risky. @paf31?
from pulp.
For this to cause problems, I think all of the following have to hold:
- A module is called
purescript-something
inbower_components
- That module has a
.js
file undersrc/
- That JS files has a magic
// module ...
comment (otherwise the compiler won't accept it as an FFI module anyway, and you'll get an error early on in the compilation process)
I would say this would be rare enough to not worry, but I'm happy to discuss alternatives.
It might be a good idea for the compiler to warn and continue, instead of raising an error, when 3) holds though.
from pulp.
@paf31 re: 1, the glob doesn't mention purescript-
, so that's probably the only problem here.
from pulp.
Oops, I see. Yes, that should definitely be there.
I'll send a PR.
from pulp.
We are, of course, trading one global convention for another here, but I think this one (dependencies being called purescript-something
) is more likely to be used in practice.
from pulp.
Very true. I quite like the idea of .purs.js
too, shame we didn't do that already in the core libraries.
from pulp.
I agree, .purs.js
would be the cleanest solution here. Requiring PS packages to always be called purescript-
something is a bit iffy, but it's probably a convention that's entirely valid right now, so let's go with it until it starts causing trouble.
from pulp.
I think the problem is that the compiler tries to be entirely conventionless, whereas pulp
tries to do the exact opposite, so at some point, it's naturally going to run into the need for global conventions. Arguably it already has: the compiler doesn't enforce that PureScript source files be called *.purs
, but it's a global convention which everyone has adopted.
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.