Node project generator build project
Last updated 2 months ago by winterfete .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @manpacker/noden 
SYNC missed versions from official npm registry.

npm npm bundle size npm NPM



Noden is a set of build engine based on webpack to build engine package.
Entry file supported file extension js or ts
Support for multi-portal file build, Files must be in the build root directory.


Project default initialization file, Can be a javascript script file, or a json configuration file.
Example: json

{"output": "bin"}

You can also set the manpacker field in the package.json file.

{"manpacker": {"root": "app"}}

Final input result, Merge .manpackeric config item.

{"root": "app", "output": "bin"}

You can customize the project initialization file name.
Custom name: development.ic.js

npx manpacker-noden --ci development.ic.js
manpacker-noden --ci development.ic.js


npm i @manpacker/noden -D



Start the local development environment.

manpacker-noden server
manpacker-noden server --ic [value] -c [config] --port [number]

Construction of production environment engineering project.

manpacker-noden build
manpacker-noden build --ic [value] -c [config]


const noden = require('@manpacker/noden')



Core compilation method

const { compile } = require('@manpacker/noden')
compile({ env, ic, config })
param type explain
env string env: NDOE_ENV variabl
ic object .manpackeric config item object
config function manpacker.noden.js return funtion


Commander is Create command-line class.

const { Commander } = require('@manpacker/noden')

let { version } = require('./package.json')
let commander = new Commander({ version })

Explain commander methods

method explain
build Default build production environment, enter project directory
server Launch Development Environment, Local Interconnect Service, default Port 8090
parse Compile registration command Lint


Create Eslint loader generator.

param teype explain
rgx RegExp Create eslint loader.


Default root file name: .manpackeric
Configuration item description:

name type value description
root string default: app Source directory for building the project
output string default: view Directory output after build
define object dedalut: {NODE_ENV: process.env.NODE_ENV} Define constants in a project, eslintrc set global key-value
isEslint boolean default: true Start the eslint-loader feature by default
isExternalsDependencies boolean default: false Build package dependency package


Default root file name: manpacker.noden.js

module.exports = ic => {
  // webpack config item.
  return {}

The parameter ic is the injected initialization parameter object.
Webpack configuration items can be set based on ic



Current Tags

  • 1.3.0                                ...           latest (2 months ago)

6 Versions

  • 1.3.0                                ...           2 months ago
  • 1.2.1                                ...           10 months ago
  • 1.2.0                                ...           10 months ago
  • 1.1.0                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 15
Dependencies (10)
Dev Dependencies (6)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |