Centralize npm installation in root, so you only have to do it once
This commit is contained in:
33
.gitignore
vendored
33
.gitignore
vendored
@@ -1,33 +1,2 @@
|
|||||||
# Logs
|
elm-stuff
|
||||||
logs
|
|
||||||
*.log
|
|
||||||
npm-debug.log*
|
|
||||||
|
|
||||||
# Runtime data
|
|
||||||
pids
|
|
||||||
*.pid
|
|
||||||
*.seed
|
|
||||||
|
|
||||||
# Directory for instrumented libs generated by jscoverage/JSCover
|
|
||||||
lib-cov
|
|
||||||
|
|
||||||
# Coverage directory used by tools like istanbul
|
|
||||||
coverage
|
|
||||||
|
|
||||||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
|
|
||||||
.grunt
|
|
||||||
|
|
||||||
# node-waf configuration
|
|
||||||
.lock-wscript
|
|
||||||
|
|
||||||
# Compiled binary addons (http://nodejs.org/api/addons.html)
|
|
||||||
build/Release
|
|
||||||
|
|
||||||
# Dependency directory
|
|
||||||
node_modules
|
node_modules
|
||||||
|
|
||||||
# Optional npm cache directory
|
|
||||||
.npm
|
|
||||||
|
|
||||||
# Optional REPL history
|
|
||||||
.node_repl_history
|
|
||||||
|
|||||||
14
elm-package.json
Normal file
14
elm-package.json
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"version": "1.0.0",
|
||||||
|
"summary": "helpful summary of your project, less than 80 characters",
|
||||||
|
"repository": "https://github.com/user/project.git",
|
||||||
|
"license": "BSD3",
|
||||||
|
"source-directories": [
|
||||||
|
"."
|
||||||
|
],
|
||||||
|
"exposed-modules": [],
|
||||||
|
"dependencies": {
|
||||||
|
"elm-lang/core": "3.0.0 <= v < 4.0.0"
|
||||||
|
},
|
||||||
|
"elm-version": "0.16.0 <= v < 0.17.0"
|
||||||
|
}
|
||||||
10
install.js
Normal file
10
install.js
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
var fs = require("fs");
|
||||||
|
var execSync = require("child_process").execSync;
|
||||||
|
var path = require("path");
|
||||||
|
|
||||||
|
fs.readdirSync("stages").forEach(function(stage) {
|
||||||
|
var cwd = path.join(__dirname, "stages", stage);
|
||||||
|
|
||||||
|
console.log("Installing packages for " + cwd);
|
||||||
|
execSync("elm-package install --yes", { cwd: cwd });
|
||||||
|
});
|
||||||
22
package.json
Normal file
22
package.json
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"name": "elm-hub",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "Like GitHub, but for Elm stuff.",
|
||||||
|
"scripts": {
|
||||||
|
"install": "node install.js"
|
||||||
|
},
|
||||||
|
"repository": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "git+https://github.com/rtfeldman/elm-workshop.git"
|
||||||
|
},
|
||||||
|
"author": "Richard Feldman",
|
||||||
|
"license": "BSD-3-Clause",
|
||||||
|
"bugs": {
|
||||||
|
"url": "https://github.com/rtfeldman/elm-workshop/issues"
|
||||||
|
},
|
||||||
|
"homepage": "https://github.com/rtfeldman/elm-workshop#readme",
|
||||||
|
"devDependencies": {
|
||||||
|
"elm-live": "2.0.4",
|
||||||
|
"elm-test": "0.16.1-alpha3"
|
||||||
|
}
|
||||||
|
}
|
||||||
2
stages/1/.gitignore
vendored
2
stages/1/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
elm-stuff
|
|
||||||
elm.js
|
|
||||||
10728
stages/1/elm.js
Normal file
10728
stages/1/elm.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,8 @@
|
|||||||
"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": "elm-live src/ElmHub.elm --open -- --output=elm.js",
|
"watch": "../../node_modules/.bin/elm-live src/ElmHub.elm --open -- --output=elm.js",
|
||||||
"test": "elm-test test/TestRunner.elm",
|
"install": "npm run build"
|
||||||
"install": "elm-package install --yes && npm run build"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
2
stages/2/.gitignore
vendored
2
stages/2/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
elm-stuff
|
|
||||||
elm.js
|
|
||||||
10742
stages/2/elm.js
Normal file
10742
stages/2/elm.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,8 @@
|
|||||||
"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": "elm-live src/ElmHub.elm --open -- --output=elm.js",
|
"watch": "../../node_modules/.bin/elm-live src/ElmHub.elm --open -- --output=elm.js",
|
||||||
"test": "elm-test test/TestRunner.elm",
|
"install": "npm run build"
|
||||||
"install": "elm-package install --yes && npm run build"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
2
stages/3/.gitignore
vendored
2
stages/3/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
elm-stuff
|
|
||||||
elm.js
|
|
||||||
10762
stages/3/elm.js
Normal file
10762
stages/3/elm.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,8 @@
|
|||||||
"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": "elm-live src/ElmHub.elm --open -- --output=elm.js",
|
"watch": "../../node_modules/.bin/elm-live src/ElmHub.elm --open -- --output=elm.js",
|
||||||
"test": "elm-test test/TestRunner.elm",
|
"install": "npm run build"
|
||||||
"install": "elm-package install --yes && npm run build"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
2
stages/4/.gitignore
vendored
2
stages/4/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
elm-stuff
|
|
||||||
elm.js
|
|
||||||
11088
stages/4/elm.js
Normal file
11088
stages/4/elm.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,8 @@
|
|||||||
"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": "elm-live src/ElmHub.elm --open -- --output=elm.js",
|
"watch": "../../node_modules/.bin/elm-live src/ElmHub.elm --open -- --output=elm.js",
|
||||||
"test": "elm-test test/TestRunner.elm",
|
"install": "npm run build"
|
||||||
"install": "elm-package install --yes && npm run build"
|
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
2
stages/5/.gitignore
vendored
2
stages/5/.gitignore
vendored
@@ -1,2 +0,0 @@
|
|||||||
elm-stuff
|
|
||||||
elm.js
|
|
||||||
11088
stages/5/elm.js
Normal file
11088
stages/5/elm.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -4,9 +4,9 @@
|
|||||||
"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": "elm-live src/ElmHub.elm --open -- --output=elm.js",
|
"watch": "../../node_modules/.bin/elm-live src/ElmHub.elm --open -- --output=elm.js",
|
||||||
"test": "elm-test test/TestRunner.elm",
|
"test": "../../node_modules/.bin/elm-test test/TestRunner.elm",
|
||||||
"install": "elm-package install --yes && npm run build"
|
"install": "npm run build"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
|
|||||||
Reference in New Issue
Block a user