fumiX / fuBlog

Blog Software
https://blog.fumix.de
Apache License 2.0
2 stars 1 forks source link

NPM workspaces #9

Closed floscher closed 1 year ago

floscher commented 1 year ago

Adds a root package.json, which makes use of NPM workspaces: https://docs.npmjs.com/cli/v7/using-npm/workspaces https://ruanmartinelli.com/posts/npm-7-workspaces-1

With this, one npm install is enough to get all dependencies for all modules. Tasks can also be started from the root directory:

npm run taskName --workspaces # starts a task with that name in all workspaces
npm run taskName --workspace workspaceName # starts a task with that name in a specific workspace