4.0.1 • Published 7 years ago

cortex-recombiner v4.0.1

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

cortex-recombiner

recombine the cortex package structure to make it compatible with webpack

Usage

V4 (async)

const recombiner = require('cortex-recombiner');

// ...

recombiner({
    base: __dirname,                        // the base dir path of webpack project
    source_path: './neurons',               // the relative path of neurons source dir
    target_path: './node_modules/',         // the relative path of target dir where you want to recombine
    cortex_json_file: './cortex.json',      // the path of cortex config file
    scope: '@cortex',                       // recombined packages scope, require your package as `@cortex/package-name`
    noBeta: false                           // whether ignore cortex beta package in source_path
}).then(function(result) {
    // ...
}, function(error) {
    // ...
});

// ...

V3 (async)

const recombiner = require('cortex-recombiner');

// ...

// return a promise
recombiner({
    base: __dirname,                        // the base dir path of webpack project
    source_path: './neurons',               // the relative path of neurons source dir
    target_path: './node_modules/@cortex',  // the relative path of target dir where you want to recombine
    cortex_json_file: './cortex.json',      // the path of cortex config file
    noBeta: false                           // whether ignore cortex beta package in source_path
}).then(function(result) {
    // ...
}, function(error) {
    // ...
});

// ...

V1 & V2 (sync)

const recombiner = require('cortex-recombiner');

// ...

recombiner({
    base: __dirname,                        // the base dir path of webpack project
    source_path: './neurons',               // the relative path of neurons source dir
    target_path: './node_modules/@cortex',  // the relative path of target dir where you want to recombine
    cortex_json_file: './cortex.json',      // the path of cortex config file
    noBeta: false                           // whether ignore cortex beta package in source_path
});

// ...
4.0.1

7 years ago

4.0.0

7 years ago

3.0.7

7 years ago

3.0.6

7 years ago

3.0.5

7 years ago

3.0.4

7 years ago

3.0.3

7 years ago

3.0.2

7 years ago

3.0.1

7 years ago

3.0.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.15

7 years ago

1.0.14

8 years ago

1.0.13

8 years ago

1.0.12

8 years ago

1.0.11

8 years ago

1.0.10

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago