Skip to content

Commit

Permalink
Moves all sources to src/
Browse files Browse the repository at this point in the history
- moves webpack configs to webpack/
- adds gulp to build the full server in Parse-Dashboard
  • Loading branch information
flovilmart committed Mar 6, 2016
1 parent 02a7a67 commit 7547c41
Show file tree
Hide file tree
Showing 517 changed files with 23 additions and 14 deletions.
3 changes: 2 additions & 1 deletion Parse-Dashboard/index.js
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
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
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.
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.
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.
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.
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.
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.

0 comments on commit 7547c41

Please sign in to comment.