Add watch.js for non-5 stages

This commit is contained in:
Richard Feldman
2016-03-06 11:31:13 -08:00
parent e7c4767f8f
commit 47c7909e76
16 changed files with 64 additions and 8 deletions

View File

@@ -4,7 +4,7 @@
"description": "Like GitHub, but for Elm stuff.", "description": "Like GitHub, but for Elm stuff.",
"scripts": { "scripts": {
"build": "elm-make src/ElmHub.elm --output elm.js", "build": "elm-make src/ElmHub.elm --output elm.js",
"watch": "../../node_modules/.bin/elm-live src/ElmHub.elm --open -- --output=elm.js", "watch": "node watch.js",
"install": "npm run build" "install": "npm run build"
}, },
"repository": { "repository": {

7
stages/1/watch.js Normal file
View File

@@ -0,0 +1,7 @@
var fs = require("fs");
var execSync = require("child_process").execSync;
var path = require("path");
var binPath = path.join(__dirname, "..", "..", "node_modules", ".bin");
var watchPath = path.join(binPath, "elm-live");
execSync(watchPath + " src/ElmHub.elm --open -- --output=elm.js", { stdio: "inherit" });

View File

@@ -4,7 +4,7 @@
"description": "Like GitHub, but for Elm stuff.", "description": "Like GitHub, but for Elm stuff.",
"scripts": { "scripts": {
"build": "elm-make src/ElmHub.elm --output elm.js", "build": "elm-make src/ElmHub.elm --output elm.js",
"watch": "../../node_modules/.bin/elm-live src/ElmHub.elm --open -- --output=elm.js", "watch": "node watch.js",
"install": "npm run build" "install": "npm run build"
}, },
"repository": { "repository": {

7
stages/2/watch.js Normal file
View File

@@ -0,0 +1,7 @@
var fs = require("fs");
var execSync = require("child_process").execSync;
var path = require("path");
var binPath = path.join(__dirname, "..", "..", "node_modules", ".bin");
var watchPath = path.join(binPath, "elm-live");
execSync(watchPath + " src/ElmHub.elm --open -- --output=elm.js", { stdio: "inherit" });

View File

@@ -4,7 +4,7 @@
"description": "Like GitHub, but for Elm stuff.", "description": "Like GitHub, but for Elm stuff.",
"scripts": { "scripts": {
"build": "elm-make src/ElmHub.elm --output elm.js", "build": "elm-make src/ElmHub.elm --output elm.js",
"watch": "../../node_modules/.bin/elm-live src/ElmHub.elm --open -- --output=elm.js", "watch": "node watch.js",
"install": "npm run build" "install": "npm run build"
}, },
"repository": { "repository": {

7
stages/3/watch.js Normal file
View File

@@ -0,0 +1,7 @@
var fs = require("fs");
var execSync = require("child_process").execSync;
var path = require("path");
var binPath = path.join(__dirname, "..", "..", "node_modules", ".bin");
var watchPath = path.join(binPath, "elm-live");
execSync(watchPath + " src/ElmHub.elm --open -- --output=elm.js", { stdio: "inherit" });

View File

@@ -4,7 +4,7 @@
"description": "Like GitHub, but for Elm stuff.", "description": "Like GitHub, but for Elm stuff.",
"scripts": { "scripts": {
"build": "elm-make src/ElmHub.elm --output elm.js", "build": "elm-make src/ElmHub.elm --output elm.js",
"watch": "../../node_modules/.bin/elm-live src/ElmHub.elm --open -- --output=elm.js", "watch": "node watch.js",
"install": "npm run build" "install": "npm run build"
}, },
"repository": { "repository": {

7
stages/4/watch.js Normal file
View File

@@ -0,0 +1,7 @@
var fs = require("fs");
var execSync = require("child_process").execSync;
var path = require("path");
var binPath = path.join(__dirname, "..", "..", "node_modules", ".bin");
var watchPath = path.join(binPath, "elm-live");
execSync(watchPath + " src/ElmHub.elm --open -- --output=elm.js", { stdio: "inherit" });

View File

@@ -4,7 +4,7 @@
"description": "Like GitHub, but for Elm stuff.", "description": "Like GitHub, but for Elm stuff.",
"scripts": { "scripts": {
"build": "elm-make src/Main.elm --output elm.js", "build": "elm-make src/Main.elm --output elm.js",
"watch": "../../node_modules/.bin/elm-live src/Main.elm --open -- --output=elm.js", "watch": "node watch.js",
"test": "node test.js", "test": "node test.js",
"install": "npm run build" "install": "npm run build"
}, },

7
stages/6/watch.js Normal file
View File

@@ -0,0 +1,7 @@
var fs = require("fs");
var execSync = require("child_process").execSync;
var path = require("path");
var binPath = path.join(__dirname, "..", "..", "node_modules", ".bin");
var watchPath = path.join(binPath, "elm-live");
execSync(watchPath + " src/Main.elm --open -- --output=elm.js", { stdio: "inherit" });

View File

@@ -4,7 +4,7 @@
"description": "Like GitHub, but for Elm stuff.", "description": "Like GitHub, but for Elm stuff.",
"scripts": { "scripts": {
"build": "elm-make src/Main.elm --output elm.js", "build": "elm-make src/Main.elm --output elm.js",
"watch": "../../node_modules/.bin/elm-live src/Main.elm --open -- --output=elm.js", "watch": "node watch.js",
"test": "node test.js", "test": "node test.js",
"install": "npm run build" "install": "npm run build"
}, },

7
stages/7/watch.js Normal file
View File

@@ -0,0 +1,7 @@
var fs = require("fs");
var execSync = require("child_process").execSync;
var path = require("path");
var binPath = path.join(__dirname, "..", "..", "node_modules", ".bin");
var watchPath = path.join(binPath, "elm-live");
execSync(watchPath + " src/Main.elm --open -- --output=elm.js", { stdio: "inherit" });

View File

@@ -4,7 +4,7 @@
"description": "Like GitHub, but for Elm stuff.", "description": "Like GitHub, but for Elm stuff.",
"scripts": { "scripts": {
"build": "elm-make src/Main.elm --output elm.js", "build": "elm-make src/Main.elm --output elm.js",
"watch": "../../node_modules/.bin/elm-live src/Main.elm --open -- --output=elm.js", "watch": "node watch.js",
"test": "node test.js", "test": "node test.js",
"install": "npm run build" "install": "npm run build"
}, },

7
stages/8/watch.js Normal file
View File

@@ -0,0 +1,7 @@
var fs = require("fs");
var execSync = require("child_process").execSync;
var path = require("path");
var binPath = path.join(__dirname, "..", "..", "node_modules", ".bin");
var watchPath = path.join(binPath, "elm-live");
execSync(watchPath + " src/Main.elm --open -- --output=elm.js", { stdio: "inherit" });

View File

@@ -4,7 +4,7 @@
"description": "Like GitHub, but for Elm stuff.", "description": "Like GitHub, but for Elm stuff.",
"scripts": { "scripts": {
"build": "elm-make src/Main.elm --output elm.js", "build": "elm-make src/Main.elm --output elm.js",
"watch": "../../node_modules/.bin/elm-live src/Main.elm --open -- --output=elm.js", "watch": "node watch.js",
"css": "../../node_modules/.bin/elm-css css/Stylesheets.elm", "css": "../../node_modules/.bin/elm-css css/Stylesheets.elm",
"test": "node test.js", "test": "node test.js",
"install": "npm run build" "install": "npm run build"

7
stages/9/watch.js Normal file
View File

@@ -0,0 +1,7 @@
var fs = require("fs");
var execSync = require("child_process").execSync;
var path = require("path");
var binPath = path.join(__dirname, "..", "..", "node_modules", ".bin");
var watchPath = path.join(binPath, "elm-live");
execSync(watchPath + " src/Main.elm --open -- --output=elm.js", { stdio: "inherit" });