Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion Parse-Dashboard/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions scripts/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [];
Expand Down
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.
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.
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.
File renamed without changes.
File renamed without changes.
Loading