nautil-cli
v0.19.4
Published
Nautil [https://nautil.js.org] CLI
Downloads
31
Readme
Nautil CLI
A CLI tool for Nautil app.
.nautil/cli-config.json
{
// cli
"version": "CLI_VERSION", // the version of nautil-cli when init
"typescript": false, // whether support typescript?
// build
"alias": {
"react": "../node_modules/react", // relative to .nautil/cli-config.json
},
"chunks": false, // split chunks
"dll": false, // generate dll, higher priority than chunks
"define": {
"process.env.NODE_ENV": "process.env.NODE_ENV",
"MY_CONSTANT": "aaaa",
"SOME_VAR": "process.env.SOME_VAR"
},
"clear": true, // whether to clear dist dir before build
"analyer": false,
"sourceMap": true,
"cache": false, // when true, nautil-cli will use cache feature
// dev server
"port": 9000,
"host": "127.0.0.1",
"live": true,
"hot": false, // override live
"proxy": {
"/api": "http://localhost:3000"
},
// env override
"env": {
"development": { // to override configs
"clear": false,
"analyer": true
}
},
// app configs
"apps": {
// you can run `nautil build my-app` to bundle scripts in `src/apps/my-app`
"my-app": {
"platform": "dom",
// build configs
"extensions": [
".mobile.tsx",
".mobile.jsx"
],
"libaray": "my-app",
"libraryTarget": "umd",
"globalObject": "globalThis"
}
},
}