copy old frontend

This commit is contained in:
2018-05-10 22:23:58 +02:00
parent 85717752ab
commit 76fbd0c972
57 changed files with 8860 additions and 194 deletions

View File

@@ -1,17 +1,55 @@
{
"name": "demo",
"version": "0.0.0",
"private": true,
"name": "websprocket",
"version": "1.0.0",
"description": "template project for websprockets",
"main": "index.js",
"scripts": {
"start": "node ./bin/www"
"clear": "rimraf target",
"setup": "yarn clear && mkdirp target",
"test": "echo \"no test specified\" && exit 0",
"dev": "yarn setup && yarn build:frontend && npm-run-all --parallel watch:*",
"build:js": "webpack",
"build:css": "lessc src/styles/main.less target/styles.css",
"build:html": "cp -r src/pages/* target/",
"build:frontend": "yarn setup && yarn build:css && yarn build:html && yarn build:js",
"watch:html": "nodemon -q -w src/pages/ --ext \".\" --exec \"npm run build:html\"",
"watch:css": "nodemon -q -w src/styles --ext \".\" --exec \"npm run build:css\"",
"watch:js": "nodemon -q -w src/app --ext \".\" --exec \"npm run build:js\"",
"watch:livereload": "cd target && live-server --port=3000",
"docker:build": "docker build -t wirelos/sprocket-ui .",
"docker:run": "docker run -p 8080:8080 -d registry.gitlab.com/wirelos/sprocket-ui",
"docker:release": "docker tag wirelos/sprocket-ui registry.gitlab.com/wirelos/sprocket-ui && docker push registry.gitlab.com/wirelos/sprocket-ui"
},
"repository": {
"type": "git",
"url": "git+https://github.com/0x1d/websprocket.git"
},
"author": "",
"license": "SEE LICENSE FILE",
"bugs": {
"url": "https://github.com/0x1d/websprocket/issues"
},
"homepage": "https://github.com/0x1d/websprocket#readme",
"devDependencies": {
"babel": "latest",
"babel-core": "latest",
"babel-loader": "latest",
"babel-plugin-transform-runtime": "latest",
"babel-preset-env": "latest",
"babel-preset-minify": "^0.3.0",
"babel-runtime": "^6.26.0",
"less": "latest",
"live-server": "^1.2.0",
"mkdirp": "^0.5.1",
"nodemon": "latest",
"npm-run-all": "^4.1.2",
"raw-loader": "^0.5.1",
"rimraf": "^2.6.2",
"webpack": "^3.11.0"
},
"dependencies": {
"body-parser": "~1.17.1",
"cookie-parser": "~1.4.3",
"debug": "~2.6.3",
"express": "~4.15.2",
"jade": "~1.11.0",
"morgan": "~1.8.1",
"serve-favicon": "~2.4.2"
"jquery": "^3.3.1",
"mustache": "^2.3.0",
"ws": "^5.0.0"
}
}