Fix issue preventing installation of Elm 0.18
This commit is contained in:
parent
3fb754d9b7
commit
4a2f7e1a20
|
@ -2,3 +2,4 @@ elm.js
|
||||||
bundle.js
|
bundle.js
|
||||||
node_modules
|
node_modules
|
||||||
elm-stuff
|
elm-stuff
|
||||||
|
tar-packages
|
||||||
|
|
23
README.md
23
README.md
|
@ -1 +1,24 @@
|
||||||
# dbio - Share your bio via the InterPlanetary File System
|
# dbio - Share your bio via the InterPlanetary File System
|
||||||
|
|
||||||
|
dbio is a web application that allows you to very easily publish an [about.me](https://about.me)-style web page to IPFS.
|
||||||
|
|
||||||
|
## Running the app
|
||||||
|
|
||||||
|
First, like all good Node.JS projects, you've got to run:
|
||||||
|
|
||||||
|
````
|
||||||
|
$ npm install
|
||||||
|
```
|
||||||
|
|
||||||
|
Since this project was started a long time ago, it uses Elm 0.18.0. Binaries for this version aren't available using NPM anymore. Instead, this version of Elm must be downloaded as a tarball from a github repository. To do this, run:
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npm run install-tarballs
|
||||||
|
```
|
||||||
|
|
||||||
|
Now, you can use
|
||||||
|
|
||||||
|
```
|
||||||
|
$ npm run build
|
||||||
|
$ npm start
|
||||||
|
```
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
13
package.json
13
package.json
|
@ -5,15 +5,22 @@
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "http-server www -a 127.0.0.1 -p 3000",
|
"start": "http-server www -a 127.0.0.1 -p 3000",
|
||||||
"build": "browserify js/index.js > www/bundle.js && elm make src/Publish.elm --output=www/elm.js && elm make src/Retrieve.elm --output=www/u/elm.js"
|
"build": "browserify js/index.js > www/bundle.js && tar-packages/elm/elm-make src/Publish.elm --output=www/elm.js && tar-packages/elm/elm-make src/Retrieve.elm --output=www/u/elm.js",
|
||||||
|
"install-tarballs": "tar-dependency install"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "natjms",
|
"author": "natjms",
|
||||||
"license": "BSD-3-Clause",
|
"license": "BSD-3-Clause",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browserify": "^13.1.1",
|
"browserify": "^13.1.1",
|
||||||
"ipfs-api": "^11.1.0",
|
|
||||||
"http-server": "^0.9.0",
|
"http-server": "^0.9.0",
|
||||||
"elm": "^0.18.0"
|
"ipfs-api": "^11.1.0",
|
||||||
|
"tar-dependency": "^0.1.0"
|
||||||
|
},
|
||||||
|
"tarDependencies": {
|
||||||
|
"tar-packages/elm": {
|
||||||
|
"url": "https://github.com/lydell/elm-old-binaries/releases/download/main/0.18.0-linux-x64.tar.gz",
|
||||||
|
"strip": 1
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue