1.10.0 • Published 10 months ago

pub-resolve-opts v1.10.0

Weekly downloads
56
License
MIT
Repository
github
Last release
10 months ago

pub-resolve-opts

CI

config resolver for pub-generator and pub-server

resolvedOpts = require('pub-resolve-opts')('.', path.join(__dirname, 'node_modules'));
  • param 1: directory (containing .md files or pub-config.js) or opts e.g. from cli
  • param 2: optional dir for builtins
  • output = fully resolved opts, merging packages opts with pub-config file
var OPTSKEYS = [ 'sources',           // paths to source files
                 'staticPaths',       // paths to static files
                 'outputs',           // output destination(s)
                 'browserScripts',    // for browserify
                 'generatorPlugins',  // e.g. to define handlebars helpers
                 'serverPlugins',     // e.g. to deploy server-side packages
                 'injectCss',         // CSS paths to inject
                 'injectJs',          // js paths to inject
                 'pkgs' ];            // npm packages with more of the above

normalized form for OPTSKEY values

  • OPTSKEY values from the input pub-config file or opts are normalized
  • normalized = array of (zero or more) objects with a path:value
  • relative paths and module names are resolved relative to the config directory
  • modules and relative paths inside packages are resolved relative to package directories
  • OPTSKEY values from each package are merged into top-level arrays
  • returns object with one set of fully resolved sources, staticPaths etc.
1.10.0

10 months ago

1.9.4

3 years ago

1.9.3

4 years ago

1.9.2

5 years ago

1.9.1

5 years ago

1.9.0

5 years ago

1.7.8

5 years ago

1.7.7

5 years ago

1.7.6

5 years ago

1.7.5

6 years ago

1.7.4

6 years ago

1.7.3

6 years ago

1.7.2

6 years ago

1.7.1

6 years ago

1.7.0

6 years ago

1.6.20

6 years ago

1.6.19

6 years ago

1.6.18

6 years ago

1.6.17

6 years ago

1.6.16

6 years ago

1.6.15

9 years ago

1.6.14

10 years ago

1.6.13

10 years ago

1.6.12

10 years ago

1.6.11

10 years ago

1.6.10

10 years ago

1.6.9

10 years ago

1.6.8

10 years ago

1.6.7

10 years ago

1.6.6

10 years ago

1.6.5

10 years ago

1.6.4

10 years ago

1.6.3

10 years ago

1.6.2

10 years ago

1.6.1

10 years ago

1.6.0

10 years ago

1.5.0

10 years ago

1.4.0

10 years ago

1.3.2

10 years ago

1.3.1

10 years ago

1.3.0

10 years ago

1.2.1

10 years ago

1.2.0

10 years ago

1.1.1

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.5.1

10 years ago

0.5.0

10 years ago