Skip to content

Allow specifying source folder and package.json location seperately #78

Description

@Weeknie

In our project, we use the following structure (only relevant files are shown, e.g. README and others are excluded):

repository/
├── test/ (unit tests)
├── lib/
│   ├── app1/
│   │   ├── function.json
│   │   └── index.js
│   └── app2/
│        ├── function.json
│        └── index.js
├── .deployment
├── deploy.cmd
└── package.json

As you can see, we keep our function app code in a lib folder, to seperate them top-level from our test code. However package.json is in the root level, since it specifies both dependencies of the actual code and additional dependencies for test code.

However, the generator, as I understand it, only accepts the package.json file to be at the same level as the function app folders (i.e. app1 and app2)

I would like to suggest the possibility to add a seperate location to copy package.json from, or something along the lines. It would result in an extra xcopy command, alongside the command to copy the functionapp root (i.e. the {sitePath} folder)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions