unimal-jp / spear

The spear OSS repository
https://late-cloud-6411.spearly.app
MIT License
10 stars 1 forks source link

Support generate target option. #152

Closed mantaroh closed 1 year ago

mantaroh commented 1 year ago

What is this ?

This PR will make the Spear to support option which specifying generating target.

For example:

We specify the following option in InMemoryMagic (Browser mode. First parameter is whole of files, Second parameter is option)

InMemoryMagic(files, {
    projectName: "Sample Program",
    spearlyAuthKey: "AUTH_KEY",
    plugins: [],
    componentsFolder: ["/src/components"],
    srcDir: ["/src"],
    distDir: "dist",
    quiteMode: false,
    targetPagesPathList: [ '/index'  ],
  });

As result of above sample, spear will generate index.html only.