+! More fixing of dev dependencies
This commit is contained in:
parent
a234696e46
commit
3ad4d4fa14
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,6 +7,7 @@ api/target/
|
|||||||
api/dev/
|
api/dev/
|
||||||
api/vids/
|
api/vids/
|
||||||
api/static/js/
|
api/static/js/
|
||||||
|
api/static/dist/
|
||||||
api/thumbs/
|
api/thumbs/
|
||||||
api/*.db
|
api/*.db
|
||||||
|
|
||||||
@ -25,3 +26,4 @@ aws/infra/terraform.tfvars
|
|||||||
aws/playbooks/hosts
|
aws/playbooks/hosts
|
||||||
|
|
||||||
ts/dist/
|
ts/dist/
|
||||||
|
ts/node_modules/
|
||||||
|
@ -7,6 +7,9 @@ stages:
|
|||||||
pages:
|
pages:
|
||||||
image: shockrah/website:latest
|
image: shockrah/website:latest
|
||||||
stage: pages
|
stage: pages
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
before_script:
|
before_script:
|
||||||
- git submodule init
|
- git submodule init
|
||||||
- git submodule update
|
- git submodule update
|
||||||
@ -22,6 +25,10 @@ pages:
|
|||||||
build-frontend-js:
|
build-frontend-js:
|
||||||
image: codesignal/typescript:v9.6.0
|
image: codesignal/typescript:v9.6.0
|
||||||
stage: build-frontend
|
stage: build-frontend
|
||||||
|
stage: pages
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
script:
|
script:
|
||||||
- cd ts/
|
- cd ts/
|
||||||
- npm run setup
|
- npm run setup
|
||||||
@ -36,6 +43,10 @@ build-frontend-js:
|
|||||||
build-server-binaries:
|
build-server-binaries:
|
||||||
image: rustlang/rust:nightly
|
image: rustlang/rust:nightly
|
||||||
stage: build-backend
|
stage: build-backend
|
||||||
|
stage: pages
|
||||||
|
only:
|
||||||
|
refs:
|
||||||
|
- master
|
||||||
script:
|
script:
|
||||||
- mkdir -p build
|
- mkdir -p build
|
||||||
- cp api/templates/ api/static/ build/ -r
|
- cp api/templates/ api/static/ build/ -r
|
||||||
|
@ -34,7 +34,7 @@ async fn main() {
|
|||||||
.mount("/api", routes![category::list, video::list]) // json
|
.mount("/api", routes![category::list, video::list]) // json
|
||||||
.mount("/thumbnail", routes![thumbnail::get]) // images
|
.mount("/thumbnail", routes![thumbnail::get]) // images
|
||||||
.mount("/video", routes![video::get_video]) // videos
|
.mount("/video", routes![video::get_video]) // videos
|
||||||
.mount("/admin?", routes![
|
.mount("/admin", routes![
|
||||||
admin::login_dashboard,
|
admin::login_dashboard,
|
||||||
admin::dashboard
|
admin::dashboard
|
||||||
])
|
])
|
||||||
|
870
ts/package-lock.json
generated
870
ts/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "ts",
|
"name": "ts",
|
||||||
"version": "1.0.0",
|
"version": "1.1.0",
|
||||||
"description": "Frontend scripts built out for clippable's frontend",
|
"description": "Frontend scripts built out for clippable's frontend",
|
||||||
"main": "index.js",
|
"main": "main.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"lint": "npm exec eslint .",
|
||||||
"setup": "mkdir -p api/static/js",
|
"build": "webpack",
|
||||||
"build": "tsc"
|
"build-dev": "webpack && cp -r dist/ ../api/static/"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -20,5 +20,8 @@
|
|||||||
"eslint": "^8.11.0",
|
"eslint": "^8.11.0",
|
||||||
"ts-loader": "^9.2.8",
|
"ts-loader": "^9.2.8",
|
||||||
"tslib": "^2.3.1"
|
"tslib": "^2.3.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"webpack-cli": "^4.9.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user