Browse Source

Move server.js to website/server.js

master
Futago-za Ryuu 3 years ago
parent
commit
4866d6ddb6
  1. 2
      .eslintignore
  2. 3
      now.json
  3. 10
      package.json
  4. 12
      website/package.json
  5. 2
      website/server.js

2
.eslintignore

@ -3,4 +3,4 @@
/packages/pegjs/dist
/coverage
/node_modules
/website
/website/*/**

3
now.json

@ -14,10 +14,9 @@
"packages",
"test",
"tools/benchmark",
"tools/bundle",
"website",
".babelrc.js",
"package.json",
"server.js",
"yarn.lock"
]
}

10
package.json

@ -3,7 +3,8 @@
"private": true,
"workspaces": [
"packages/*",
"tools/*"
"tools/*",
"website"
],
"scripts": {
"lint": "eslint .",
@ -13,20 +14,15 @@
"generate-dist": "bundle",
"clean": "rimraf packages/pegjs/dist website/js/*-bundle.js examples/*.js",
"impact": "impact master",
"start": "node server.js",
"start": "node website/server.js",
"test": "eslint . && nyc mocha --recursive",
"coverage": "nyc report --reporter=text-lcov | coveralls"
},
"dependencies": {
"@babel/core": "~7.1.0",
"@babel/preset-env": "~7.1.0",
"body-parser": "1.18.3",
"chai": "4.2.0",
"chai-like": "1.1.1",
"ejs": "2.6.1",
"express": "4.16.4",
"express-layout": "0.1.0",
"morgan": "1.9.1",
"sinon": "7.1.0"
},
"devDependencies": {

12
website/package.json

@ -0,0 +1,12 @@
{
"name": "pegjs-website",
"version": "1.3.0",
"private": true,
"dependencies": {
"body-parser": "1.18.3",
"ejs": "2.6.1",
"express": "4.16.4",
"express-layout": "0.1.0",
"morgan": "1.9.1"
}
}

2
server.js → website/server.js

@ -8,7 +8,7 @@ const logger = require( "morgan" );
const { readFileSync } = require( "fs" );
const { join } = require( "path" );
const path = ( ...parts ) => join( __dirname, ...parts );
const path = ( ...parts ) => join( __dirname, "..", ...parts );
/* Setup */
Loading…
Cancel
Save