Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 13 22:35

    thomashoneyman on npm_and_yarn

    (compare)

  • Aug 13 22:35

    thomashoneyman on master

    Bump elliptic from 6.4.1 to 6.5… (compare)

  • Aug 13 22:14

    dependabot[bot] on npm_and_yarn

    Bump elliptic from 6.4.1 to 6.5… (compare)

  • Jun 03 13:59

    hdgarrood on v15.0.0

    (compare)

  • Jun 03 13:59

    hdgarrood on master

    Update changelog for v15.0.0 15.0.0 (compare)

  • Jun 02 20:19

    hdgarrood on remove-main-check

    (compare)

  • Jun 02 20:19

    hdgarrood on master

    Remove main checks (#393) * Re… (compare)

  • Jun 02 19:28

    garyb on remove-main-check

    Remove main-checking related te… (compare)

  • May 29 14:48

    garyb on remove-main-check

    Add explicit argonaut dependency (compare)

  • May 29 14:27

    garyb on remove-main-check

    Update dependencies to avoid vu… (compare)

  • May 29 14:12

    garyb on remove-main-check

    Remove main checks (compare)

  • Mar 19 05:37

    thomashoneyman on bump-deps

    Bump npm and bower dependencies (compare)

  • Mar 16 16:53

    hdgarrood on v14.0.0

    (compare)

  • Mar 16 16:53

    hdgarrood on master

    update changelog for 14.0 14.0.0 (compare)

  • Mar 16 14:01

    hdgarrood on no-bower-register

    (compare)

  • Mar 16 14:01

    hdgarrood on master

    Stop attempting to register on … (compare)

  • Mar 16 13:12

    hdgarrood on no-bower-register

    Update src/Pulp/Publish.purs C… (compare)

  • Mar 15 17:49

    hdgarrood on no-bower-register

    Stop attempting to register on … (compare)

  • May 29 2019 23:20

    hdgarrood on v13.0.0

    (compare)

  • May 29 2019 23:20

    hdgarrood on master

    13.0.0 (compare)

Dominik Ivosevic
@DominikDitoIvosevic
Thanks god for gitter! Hi guys!!! So I've just started with Purs and I've noticed that you require files by folder name and then the index.js inside of it get loaded by default, is that correct? Is that CommonJs behaviour?
Rob Howard
@damncabbage
It is.
Err. Well, it's Node's own version of life. I don't actually know the specifics of "CommonJS" itself, as distinct from Node's resolver + implementation.
Joy Krishna Mondal
@JoyKrishnaMondal
does pulp's tree shaking work outside of purescript code ?
Rob Howard
@damncabbage
@JoyKrishnaMondal: psc-bundle is the tool that does the tree-shaking, and I don't think so. I think uses the externs.json files to do it, which regular JS code isn't going to have.
Joy Krishna Mondal
@JoyKrishnaMondal
hmm
quite unfortunate :( since dead code elimination was the major pros for using purescript
the hardest part of using any x-to-js languages is integration wit existing codebase
Rob Howard
@damncabbage
@JoyKrishnaMondal: Agreed, but dead-code is really hard in JavaScript you can't really make assumptions about.
The generated JS that PureScript produces is basically a subset of JavaScript. And because it knows how that JS can behave, it can make assumptions and optimise appropriately.
When you have to consider all of what JS can do (which a general dead-code-elimination tool would need to do), you can't make many assumptions and so you can do less with to eliminate code. If you assume too much, you break people's scripts in hard-to-debug ways.
It's the benefit of a language that is less malleable: you shift more power to being able to analyse the resulting code.
At least with the PureScript + JS combo, and a set of entry-points you know you enter the PureScript code via, you can do the elimination on at least the PureScript part.
I agree that X-to-JS is hard in this way. :(
Srepfler Srdan
@schrepfler
if the generated code would be ES6 perhaps it would be easier to treeshake-it
or at least one can lean on additional tools in the pipeline
add typescript annotations to it as well and it would get even better
Rob Howard
@damncabbage
@schrepfler The code's already tree-shaken. Do you mean tree-shaking libraries being import'd into the .js FFI files, or...?
Srepfler Srdan
@schrepfler
I understood we don’t do tree shaking and that if I import a purescript library and concretely use just one function in it that the generated js still contains all the fn-s in the module
but if we do tree shaking that’s great
Rob Howard
@damncabbage
If you bundle and specify the entry-points, then you get tree shaking. Pulp build does bundling assuming Main.main as the only entry-point, but you can change that.
Nils Eriksson
@note89
Hi :) followed the GettingStarted guide but when i run pulp run i get errors like this
$ pulp run
* Building project in /home/nils/Programmering/esport/skinescrow
purs compile: No files found using pattern: bower_components/purescript-*/src/**/*.purs
Error 1 of 3:

  in module Main
  at src/Main.purs line 3, column 1 - line 3, column 15

    Module Prelude was not found.
    Make sure the source file exists, and that it has been provided as an input to psc.


  See https://github.com/purescript/documentation/blob/master/errors/ModuleNotFound.md for more information,
  or to contribute content related to this error.
$ pulp -v
Pulp version 11.0.0
purs version 0.11.5 using /home/nils/.nvm/versions/node/v6.9.3/bin/purs
{
  "name": "foobar",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "output"
  ],
  "dependencies": {
    "purescript-prelude": "^3.1.0",
    "purescript-console": "^3.0.0"
  },
  "devDependencies": {
    "purescript-psci-support": "^3.0.0"
  }
}
Nils Eriksson
@note89
$ pulp psci
purs repl: PSCi requires the psci-support package.
For help getting started, visit https://github.com/purescript/documentation/blob/master/guides/PSCi.md
im sitting on ubuntu 17.04
Brian McKenna
@puffnfresh
@note89 do you have a bower.json?
Nils Eriksson
@note89
yes i pasted it above :)
Brian McKenna
@puffnfresh
oh yes
have you done a bower install?
Nils Eriksson
@note89
nope, i thought pulp did that on pulp init
Brian McKenna
@puffnfresh
oh yeah it should
Nils Eriksson
@note89
i have stuff in my client/bower_components folder
w8 hmm :P
missed this line
purs compile: No files found using pattern: bower_components/purescript-*/src/**/*.purs
am i supposed to move the folder structure ?
or can i give it another search path somehow ?
it works now that i moved the bower_components folder
Brian McKenna
@puffnfresh
yeah, confused about why it's under client
know what happened there?
Nils Eriksson
@note89
nope i just ran pulp init and it created all the folders
Nils Eriksson
@note89
when i run bower install purescript-lists --save it creates the client folder again so guess its a bower thing
Nils Eriksson
@note89
okey so the fix was to add a .bowerrc that just said "directory": "bower_components"
Brian McKenna
@puffnfresh
do you have a global bower config?
~/.bowerrc maybe?
Nils Eriksson
@note89
Noo but i just did a global serach for all .bowerrc files and apparently there is a rouge file in a parent folder that makes no sense... it has been there since 2015 XD
and that file specifies the client/bower_components behaviour...
sorry for the trouble.
and thank you for your help ! real kind
Suzumiya
@suzumiyasmith

tool chain broken??
i installed purs with npm

Error: spawn /usr/lib/node_modules/purescript/vendor/purs ENOENT
at exports._errnoException (util.js:1022:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:189:19)
at onErrorNT (internal/child_process.js:366:16)
at _combinedTickCallback (internal/process/next_tick.js:102:11)
at process._tickCallback (internal/process/next_tick.js:161:9)
at Function.Module.runMain (module.js:607:11)
at startup (bootstrap_node.js:158:16)
at bootstrap_node.js:575:3

  • ERROR: Subcommand terminated with exit code 1
Adrian Sieber
@adius
Is there a way to create the app.js without running the server?
Cause If you want the execute the program with node that's the file you need ^^
Tin Pavlinic
@triggerNZ
Hi all
I am trying to build a pux react application with pulp
when running pulp browserify, I get the error Error: Cannot find module 'create-react-class. Presumably because the react dependency is missing
I can find npm examples of pux, but not pulp ones. has anybody got a successful pulp build of a pux app before?