Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cvh-camera
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Döring
cvh-camera
Commits
bc423c1f
Commit
bc423c1f
authored
4 years ago
by
Simon Döring
Browse files
Options
Downloads
Patches
Plain Diff
Remove typescript compilation to single file
Nodejs can't run the single compiled file out of the box.
parent
bc9b296c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+0
-2
0 additions, 2 deletions
README.md
camera-server/package.json
+1
-2
1 addition, 2 deletions
camera-server/package.json
with
1 addition
and
4 deletions
README.md
+
0
−
2
View file @
bc423c1f
...
...
@@ -20,8 +20,6 @@ To compile the code, install all dependencies, including the typescript compiler
This can be done by running
`npm install`
in the
`camera-server`
folder.
Then run
`npm run build`
in the same folder. This will compile the files into a newly created folder
`dist`
.
If you want to compile the code into a single file, run
`npm run build-single-file`
instead.
Once the code is compiled, the server can be started with
`node server.js`
in the
`dist`
folder.
## Config
...
...
This diff is collapsed.
Click to expand it.
camera-server/package.json
+
1
−
2
View file @
bc423c1f
...
...
@@ -3,8 +3,7 @@
"version"
:
"1.0.0"
,
"main"
:
"server.js"
,
"scripts"
:
{
"build"
:
"npx tsc"
,
"build-single-file"
:
"npx tsc -m amd --outfile dist/server.js"
"build"
:
"npx tsc"
},
"dependencies"
:
{
"socket.io"
:
"^3.0.4"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment