Skip to content

Commit

Permalink
refactor(cli): update template config
Browse files Browse the repository at this point in the history
  • Loading branch information
moonrailgun committed Jul 28, 2023
1 parent 7c02848 commit f29352d
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 7 deletions.
2 changes: 1 addition & 1 deletion apps/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tailchat-cli",
"version": "1.5.11",
"version": "1.5.12",
"description": "A Command line interface of tailchat",
"bin": {
"tailchat": "./bin/cli"
Expand Down
16 changes: 13 additions & 3 deletions apps/cli/templates/server-plugin-full/{{id}}/.ministarrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
const path = require('path');

const pluginRoot = path.resolve(__dirname, './web');
const outDir = path.resolve(__dirname, '../../public');

module.exports = {
externalDeps: ['react', 'react-router', 'axios', 'styled-components', 'zustand', 'zustand/middleware/immer'],
pluginRoot: path.resolve(__dirname, './web'),
outDir: path.resolve(__dirname, '../../public'),
externalDeps: [
'react',
'react-router',
'axios',
'styled-components',
'zustand',
'zustand/middleware/immer'
],
pluginRoot,
outDir,
};
16 changes: 13 additions & 3 deletions apps/cli/templates/server-plugin-web/{{id}}/.ministarrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
const path = require('path');

const pluginRoot = path.resolve(__dirname, './web');
const outDir = path.resolve(__dirname, '../../public');

module.exports = {
externalDeps: ['react', 'react-router', 'axios', 'styled-components', 'zustand', 'zustand/middleware/immer'],
pluginRoot: path.resolve(__dirname, './web'),
outDir: path.resolve(__dirname, '../../public'),
externalDeps: [
'react',
'react-router',
'axios',
'styled-components',
'zustand',
'zustand/middleware/immer'
],
pluginRoot,
outDir,
};

0 comments on commit f29352d

Please sign in to comment.