adonisjs / ace

Node.js framework for creating command line applications
MIT License
366 stars 35 forks source link

Can I ignore a folder with production build command? #124

Closed juniorbotelho closed 3 years ago

juniorbotelho commented 3 years ago

Can I ignore a folder with production build command?

Ex: node ace build --production --ignore=["src", "readme"] or node ace build --production --ignore ./src

Image from dev env (Just as an example, I haven't set up Webpack and Babel yet.):

Captura de Tela 2021-01-17 às 19 50 01

Why this feature is required (specific use-cases will be appreciated)?

It is a good approach for applications in React, where there is the folder "src". So when building the application, we will not need this folder since in package.json, I will add a script to build the React App within "resources/view/react/index.edge".

Have you tried any other work arounds?

No

Are you willing to work on it with little guidance?

Yes

thetutlage commented 3 years ago

How about adding the src folder to the excludes list of the tsconfig.json file?

{
  "exclude": ["node_modules", "build", "src"]
}
juniorbotelho commented 3 years ago

Close the issue, I already solved it with a custom webpack. As for your suggestion, it didn’t work very well since dynamic typing was disabled, thanks anyway: D