remove unused index.html, move example fetch to own folder

This commit is contained in:
Cassie Tarakajian 2018-05-17 18:01:03 -07:00
parent 2fe11eb707
commit 752b804c55
6 changed files with 8 additions and 25 deletions

View file

@ -1,17 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="p5.js, p5.js web editor, web editor, processing, code editor" />
<meta name="description" content="A web editor for sketching using p5.js library." />
<title>p5.js Web Editor</title>
<link href='https://fonts.googleapis.com/css?family=Inconsolata' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet' type='text/css'>
</head>
<body>
<div id="root" class="root-app">
</div>
<script src="/dist/vendor.js"></script>
<script src="/dist/app.js"></script>
</body>
</html>

View file

@ -12,8 +12,8 @@
"build:client": "cross-env NODE_ENV=production webpack --config webpack.config.prod.js --progress", "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", "build:server": "cross-env NODE_ENV=production webpack --config webpack.config.server.js --progress",
"test": "npm run lint", "test": "npm run lint",
"fetch-examples": "node fetch-examples.js", "fetch-examples": "node server/scripts/fetch-examples.js",
"fetch-examples-gg": "node fetch-examples-gg.js" "fetch-examples-gg": "node server/scripts/fetch-examples-gg.js"
}, },
"main": "index.js", "main": "index.js",
"author": "Cassie Tarakajian", "author": "Cassie Tarakajian",

View file

@ -5,8 +5,8 @@ import objectID from 'bson-objectid';
import shortid from 'shortid'; import shortid from 'shortid';
import eachSeries from 'async/eachSeries'; import eachSeries from 'async/eachSeries';
import User from './models/user'; import User from '../models/user';
import Project from './models/project'; import Project from '../models/project';
// TODO: change to true when testing! // TODO: change to true when testing!
const testMake = false; const testMake = false;

View file

@ -4,8 +4,8 @@ import mongoose from 'mongoose';
import objectID from 'bson-objectid'; import objectID from 'bson-objectid';
import shortid from 'shortid'; import shortid from 'shortid';
import eachSeries from 'async/eachSeries'; import eachSeries from 'async/eachSeries';
import User from './models/user'; import User from '../models/user';
import Project from './models/project'; import Project from '../models/project';
const defaultHTML = const defaultHTML =
`<!DOCTYPE html> `<!DOCTYPE html>

View file

@ -1,4 +1,4 @@
require('babel-register'); require('babel-register');
require('babel-polyfill'); require('babel-polyfill');
require('dotenv').config(); require('dotenv').config();
require('./server/examples-gg-latest.js'); require('./examples-gg-latest.js');

View file

@ -1,4 +1,4 @@
require('babel-register'); require('babel-register');
require('babel-polyfill'); require('babel-polyfill');
require('dotenv').config(); require('dotenv').config();
require('./server/examples.js'); require('./examples.js');