How to package the Node Express project?

0

I know how to package a project using restify in Node Express, because in projects using restify it is possible to allocate the application resources all in one file, just in the end give a nodemon and the file name, but not I can do the same with express, the reason I need to know how to package because only then can I send this project to the Heroku server.

This is my project

What kinds of modifications could you make to package this project? If you can not help me in changing the project where can I find some documentation that explains how to package?

To package I did it that way;

I created a file called tsconfig.json

{
  "compilerOptions": {
    "outDir": "dist",
    "target": "es2015",
    "module": "commonjs"
  }
}

and in the root folder I executed tsc -w, it created the file that was packaged in the dist folder, but instead generated this error;

error TS18003: No inputs were found in config file 'C:/layout resposive/API/ep/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["dist"]'.
09:19:23 - Compilation complete. Watching for file changes.
    
asked by anonymous 18.06.2018 / 12:42

0 answers