4.0.1 • Published 8 years ago
cortex-recombiner v4.0.1
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
8 years ago
4.0.0
8 years ago
3.0.7
9 years ago
3.0.6
9 years ago
3.0.5
9 years ago
3.0.4
9 years ago
3.0.3
9 years ago
3.0.2
9 years ago
3.0.1
9 years ago
3.0.0
9 years ago
2.0.2
9 years ago
2.0.1
9 years ago
2.0.0
9 years ago
1.0.15
9 years ago
1.0.14
9 years ago
1.0.13
9 years ago
1.0.12
9 years ago
1.0.11
9 years ago
1.0.10
9 years ago
1.0.9
9 years ago
1.0.8
9 years ago
1.0.7
10 years ago
1.0.6
10 years ago
1.0.5
10 years ago
1.0.4
10 years ago
1.0.3
10 years ago
1.0.2
10 years ago
1.0.1
10 years ago
1.0.0
10 years ago