Commit ee19be0a authored by James Laver's avatar James Laver

initial go at hot reload

parent 62a4eacb
......@@ -8,6 +8,7 @@
/.purs*
/.psa*
/.spago
/.cache
bundle.js
# tempfiles
.#*
......
......@@ -124,7 +124,7 @@ yarn clean # clean both purescript and javascript
If you edit the SASS, you'll need to rebuild the CSS:
```shell
yarn sass
yarn css
```
<!-- A `purs ide` connection will be available on port 9002 while the -->
......
<!doctype>
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>CNRS GarganText</title>
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
<!--<link href="https://use.fontawesome.com/releases/v5.0.8/styles/all.css" rel="stylesheet">-->
<link rel="stylesheet" href="icons/forkawesome.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css" integrity="sha256-gsmEoJAws/Kd3CjuOQzLie5Q3yshhvmo7YNtBG7aaEY=" crossorigin="anonymous">-->
<link href="styles/login.min.css" rel="stylesheet">
<link href="styles/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles/context-menu.css"/>
......
<!doctype>
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>CNRS GarganText</title>
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> -->
<!--<link href="https://use.fontawesome.com/releases/v5.0.8/styles/all.css" rel="stylesheet">-->
<link rel="stylesheet" href="icons/forkawesome.css">
<!-- <link href="https://use.fontawesome.com/releases/v5.0.8/styles/all.css" rel="stylesheet"> -->
<link rel="stylesheet" href="dist/icons/forkawesome.css">
<!--<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/fork-awesome@1.1.7/css/fork-awesome.min.css" integrity="sha256-gsmEoJAws/Kd3CjuOQzLie5Q3yshhvmo7YNtBG7aaEY=" crossorigin="anonymous">-->
<link href="styles/login.min.css" rel="stylesheet">
<link href="styles/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="styles/context-menu.css"/>
<link rel="stylesheet" type="text/css" href="styles/menu.css"/>
<link rel="stylesheet" type="text/css" href="styles/highlightjs-solarized-light.css"/>
<link href="styles/Graph.css" rel="stylesheet" type="text/css" />
<link href="styles/Login.css" rel="stylesheet" type="text/css" />
<link href="styles/Tree.css" rel="stylesheet" type="text/css" />
<link href="styles/CodeEditor.css" rel="stylesheet" type="text/css" />
<link href="styles/range-slider.css" rel="stylesheet" type="text/css" />
<link href="dist/styles/login.min.css" rel="stylesheet">
<link href="dist/styles/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="dist/styles/context-menu.css"/>
<link rel="stylesheet" type="text/css" href="dist/styles/menu.css"/>
<link rel="stylesheet" type="text/css" href="dist/styles/highlightjs-solarized-light.css"/>
<link href="dist/styles/Graph.css" rel="stylesheet" type="text/css" />
<link href="dist/styles/Login.css" rel="stylesheet" type="text/css" />
<link href="dist/styles/Tree.css" rel="stylesheet" type="text/css" />
<link href="dist/styles/CodeEditor.css" rel="stylesheet" type="text/css" />
<link href="dist/styles/range-slider.css" rel="stylesheet" type="text/css" />
<style>
* {margin: 0; padding: 0; list-style: none;}
.tree ul li {
......@@ -64,7 +64,7 @@
<body>
<div id="app" class ="container-fluid"></div>
<div id="portal"></div>
<script src="bundle.js"></script>
<script src="js/bootstrap-native.min.js"></script>
<script src="output/hot.js"></script>
<script src="dist/js/bootstrap-native.min.js"></script>
</body>
</html>
{
"name": "Gargantext",
"version": "0.0.1.5",
"version": "4.0.0-dev",
"scripts": {
"rebase-set": "spago package-set-upgrade && spago psc-package-insdhall",
"rebuild-set": "spago psc-package-insdhall",
"install-ps": "psc-package install",
"compile": "pulp --psc-package build",
"build": "pulp --psc-package browserify --no-check-main -t dist/bundle.js",
"sass": "sass dist/styles/",
"css": "sass dist/styles/",
"docs": "pulp docs -- --format html",
"repl": "pulp --psc-package repl",
"clean": "rm -Rf output node_modules",
"clean-js": "rm -Rf node_modules",
"clean-ps": "rm -Rf output",
"test": "pulp test",
"server": "serve dist"
"server": "serve dist",
"hot": "concurrently --kill-others \"npm:hot-*\"",
"hot-purescript": "pulp --psc-package --watch build --no-check-main -t ./output/hot.js",
"hot-server": "parcel index.html -o hot.js",
"hot-css": "sass --watch dist/styles"
},
"dependencies": {
"create-react-class": "^15.6.3",
......@@ -28,6 +32,10 @@
"sigma": "git://github.com/poorscript/sigma.js#garg"
},
"devDependencies": {
"@babel/core": "^7.10.2",
"@babel/preset-react": "^7.10.1",
"concurrently": "^5.2.0",
"parcel-bundler": "^1.12.4",
"psc-package": "^4.0.1",
"pulp": "^14.0.0",
"purescript": "^0.13.8",
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment