Permalink
Browse files

Moves all sources to src/

- moves webpack configs to webpack/
- adds gulp to build the full server in Parse-Dashboard
  • Loading branch information...
1 parent 02a7a67 commit 7547c4161cd90b4f9426d0d7a5d8f1a83134f8cc @flovilmart flovilmart committed Mar 5, 2016
Showing 517 changed files with 23 additions and 14 deletions.
@@ -22,12 +22,13 @@ var port = program.port || process.env.PORT;
var allowInsecureHTTP = program.allowInsecureHTTP || process.env.PARSE_DASHBOARD_ALLOW_INSECURE_HTTP;
var basicAuth = require('basic-auth');
+var path = require('path');
var jsonFile = require('json-file-plus');
var express = require('express');
var app = express();
// Serve public files.
-app.use(express.static('Parse-Dashboard/public'));
+app.use(express.static(path.join(__dirname,'public')));
app.get('/parse-dashboard-config.json', function(req, res) {
jsonFile(configFile)
View
@@ -35,21 +35,21 @@
"webpack": "~1.12.0"
},
"scripts": {
- "dashboard": "node ./Parse-Dashboard/index.js & webpack --config build.config.js --progress --watch",
- "pig": "http-server ./PIG -p 4041 -s & webpack --config PIG.config.js --progress --watch",
- "build": "NODE_ENV=production webpack --config production.config.js && webpack --config PIG.config.js",
+ "dashboard": "node ./Parse-Dashboard/index.js & webpack --config webpack/build.config.js --progress --watch",
+ "pig": "http-server ./PIG -p 4041 -s & webpack --config webpack/PIG.config.js --progress --watch",
+ "build": "NODE_ENV=production webpack --config webpack/production.config.js && webpack --config webpack/PIG.config.js",
"test": "NODE_PATH=./node_modules jest",
"generate": "node scripts/generate.js",
"preinstall": "git update-index --skip-worktree Parse-Dashboard/parse-dashboard-config.json",
- "prestart": "webpack --config build.config.js --progress",
+ "prestart": "webpack --config webpack/build.config.js --progress",
"start": "node ./Parse-Dashboard/index.js"
},
"engines": {
"node": ">=4.3"
},
"jest": {
"testPathDirs": [
- "lib"
+ "src/lib"
],
"scriptPreprocessor": "<rootDir>/testing/preprocessor.js",
"testDirectoryName": "tests",
View
@@ -12,9 +12,9 @@
const fs = require('fs');
const path = require('path');
-const rootDir = path.join(__dirname, '..', 'components');
-const pigDir = path.join(__dirname, '..', 'parse-interface-guide');
-const testDir = path.join(__dirname, '..', 'lib', 'tests');
+const rootDir = path.join(__dirname, '..', 'src','components');
+const pigDir = path.join(__dirname, '..', 'src','parse-interface-guide');
+const testDir = path.join(__dirname, '..', 'src','lib', 'tests');
function padding(length) {
let space = [];
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.

0 comments on commit 7547c41

Please sign in to comment.