1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-27 18:12:44 +03:00

Extract pulp scripts, which might be deprecated

in any future ...
This commit is contained in:
Jens Krause 2017-08-27 22:20:55 +02:00
parent 9115a574a5
commit afc326c30c
No known key found for this signature in database
GPG Key ID: 3B2FAFBCEFA5906D
2 changed files with 5 additions and 11 deletions

View File

@ -9,13 +9,14 @@
"clean": "rimraf output",
"build:client": "npm run clean && rimraf public/*.js && webpack --config ./webpack.config.client.js --progress",
"build:server": "npm run clean && rimraf dist && webpack --config ./webpack.config.server.js --progress",
"build": "npm run build:client && npm build:server",
"run:server": "PORT=3333 node dist/server.js",
"start": "npm run run:server",
"test": "echo \"Error: no test specified\" && exit 1",
"--comment--": "All following `build:*-pulp` scripts are for debugging only and will be removed in the future",
"build:server-pulp": "rimraf output/Main && mkdir -p dist && pulp build --src-path ./server --include ./common -O > ./dist/server.js",
"build:category-detail-pulp": "rimraf output/Main && pulp build --src-path ./client --main Guide.Client.CategoryDetail --include ./common --no-check-main -O > ./public/category-detail.js",
"build:category-overview-pulp": "rimraf output/Main && pulp build --src-path ./client --main Guide.Client.CategoryOverview --include ./common -O > ./public/category-overview.js"
"--comment--": "All following `pulp:*` scripts are for debugging only and will be removed in the future",
"pulp:server": "rimraf output/Main && mkdir -p dist && pulp build --src-path ./server --include ./common -O > ./dist/server.js",
"pulp:category-detail": "rimraf output/Main && pulp build --src-path ./client --main Guide.Client.CategoryDetail --include ./common --no-check-main -O > ./public/category-detail.js",
"pulp:category-overview": "rimraf output/Main && pulp build --src-path ./client --main Guide.Client.CategoryOverview --include ./common --no-check-main -O > ./public/category-overview.js"
},
"repository": {
"type": "git",

View File

@ -1,8 +1 @@
module Guide.Server.Types where
newtype PageConfig = PageConfig
{ contentId :: String
, title :: String
, catName :: String --
, catDetailId :: String
}