diff --git a/.gitignore b/.gitignore index 1b478d3..f0caf10 100644 --- a/.gitignore +++ b/.gitignore @@ -6,3 +6,6 @@ tmp/ output/ bundle.js bundle.js.map +.spago/ +.gcroots/ +dist/ diff --git a/README.md b/README.md index 7cf19bb..5a12c74 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ Example project using PureScript with webpack. ## Installation ```bash -bower install +spago install npm install ``` @@ -29,7 +29,7 @@ npm start To test this in the browser with the webpack-dev-server. ```bash -bower install +spago install npm install @@ -55,18 +55,17 @@ However, if you want to use globally installed binaries, this means that you'll have to take care of all binary dependencies yourself. Right now, this includes having in your `$PATH`: -* `psc` that comes from `purescript` (`haskellPackages.purescript` on Nix) -* `psa` that comes from `purescript-psa` (on Nix, you'll have to install it -yourself via `node2nix -i node-packages.json` and `nix-env -f default.nix -iA -purescript.psa`; node-packages.json is a file you create yourself containing -`[ "purescript-psa" ]`). You can remove the dependency on `psa` by changing `psc: 'psa'` -to `psc: 'psc'` inside `webpack.config.js`. `psa` just provides clearer compilation -messages compared to `psc` -* `webpack` (on Nix, `nodePackages.webpack`) -* `node` that comes from `nodejs` +- `psc` that comes from `purescript` (`haskellPackages.purescript` on Nix) +- `psa` that comes from `purescript-psa` (on Nix, you'll have to install it + yourself via `node2nix -i node-packages.json` and `nix-env -f default.nix -iA purescript.psa`; node-packages.json is a file you create yourself containing + `[ "purescript-psa" ]`). You can remove the dependency on `psa` by changing `psc: 'psa'` + to `psc: 'psc'` inside `webpack.config.js`. `psa` just provides clearer compilation + messages compared to `psc` +- `webpack` (on Nix, `nodePackages.webpack`) +- `node` that comes from `nodejs` ## Additional examples - - [Fast rebuilds](https://github.com/ethul/purescript-webpack-example/tree/fast-rebuilds) - - [Psc package](https://github.com/ethul/purescript-webpack-example/tree/psc-package) - - [Source maps](https://github.com/ethul/purescript-webpack-example/tree/source-maps) +- [Fast rebuilds](https://github.com/ethul/purescript-webpack-example/tree/fast-rebuilds) +- [Psc package](https://github.com/ethul/purescript-webpack-example/tree/psc-package) +- [Source maps](https://github.com/ethul/purescript-webpack-example/tree/source-maps) diff --git a/bower.json b/bower.json deleted file mode 100644 index b561fdc..0000000 --- a/bower.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "purescript-webpack-example", - "private": true, - "dependencies": { - "purescript-console": "^3.0.0", - "purescript-eff": "^3.1.0", - "purescript-react": "^3.0.0", - "purescript-react-dom": "^3.0.0" - } -} diff --git a/index.html b/index.html index 3db7456..dbbf1ca 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,5 @@
-