diff --git a/index.html b/index.html deleted file mode 100644 index 10a68414..00000000 --- a/index.html +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - - p5.js Web Editor - - - - -
-
- - - - diff --git a/package.json b/package.json index bc53a3a2..a0b8bc59 100644 --- a/package.json +++ b/package.json @@ -12,8 +12,8 @@ "build:client": "cross-env NODE_ENV=production webpack --config webpack.config.prod.js --progress", "build:server": "cross-env NODE_ENV=production webpack --config webpack.config.server.js --progress", "test": "npm run lint", - "fetch-examples": "node fetch-examples.js", - "fetch-examples-gg": "node fetch-examples-gg.js" + "fetch-examples": "node server/scripts/fetch-examples.js", + "fetch-examples-gg": "node server/scripts/fetch-examples-gg.js" }, "main": "index.js", "author": "Cassie Tarakajian", diff --git a/server/examples-gg-latest.js b/server/scripts/examples-gg-latest.js similarity index 99% rename from server/examples-gg-latest.js rename to server/scripts/examples-gg-latest.js index f2fa5ff2..513e87ff 100644 --- a/server/examples-gg-latest.js +++ b/server/scripts/examples-gg-latest.js @@ -5,8 +5,8 @@ import objectID from 'bson-objectid'; import shortid from 'shortid'; import eachSeries from 'async/eachSeries'; -import User from './models/user'; -import Project from './models/project'; +import User from '../models/user'; +import Project from '../models/project'; // TODO: change to true when testing! const testMake = false; diff --git a/server/examples.js b/server/scripts/examples.js similarity index 99% rename from server/examples.js rename to server/scripts/examples.js index bdf54c1d..c1cccc60 100644 --- a/server/examples.js +++ b/server/scripts/examples.js @@ -4,8 +4,8 @@ import mongoose from 'mongoose'; import objectID from 'bson-objectid'; import shortid from 'shortid'; import eachSeries from 'async/eachSeries'; -import User from './models/user'; -import Project from './models/project'; +import User from '../models/user'; +import Project from '../models/project'; const defaultHTML = ` diff --git a/fetch-examples-gg.js b/server/scripts/fetch-examples-gg.js similarity index 65% rename from fetch-examples-gg.js rename to server/scripts/fetch-examples-gg.js index fc354c2c..73fcc26b 100644 --- a/fetch-examples-gg.js +++ b/server/scripts/fetch-examples-gg.js @@ -1,4 +1,4 @@ require('babel-register'); require('babel-polyfill'); require('dotenv').config(); -require('./server/examples-gg-latest.js'); +require('./examples-gg-latest.js'); diff --git a/fetch-examples.js b/server/scripts/fetch-examples.js similarity index 71% rename from fetch-examples.js rename to server/scripts/fetch-examples.js index aecc226a..c46eeb54 100644 --- a/fetch-examples.js +++ b/server/scripts/fetch-examples.js @@ -1,4 +1,4 @@ require('babel-register'); require('babel-polyfill'); require('dotenv').config(); -require('./server/examples.js'); +require('./examples.js');