问题描述
我正在用meteor 编写一个程序,我想知道如何将单个meteor JavaScript 文件(例如根据meteor"命令生成的文件)拆分为客户端和服务器文件夹(client.js、server.js 等).我还没有找到任何好的指南.有人知道吗?谢谢
I'm writing a program with meteor and I'm wondering how one would go about splitting a single meteor JavaScript file, like one that is generated upon the 'meteor' command, into a client and server folder (client.js, server.js, etc). I haven't found any good guides. Does anybody know of any?Thanks
推荐答案
只需创建两个目录,client
和 server
.然后把前端代码放在client
,后端代码放在server
.看看 http://docs.meteor.com/#structuringyourapp
Just create two directories, client
and server
. Then put the frontend codes in client
and the backend codes in server
. Take a look at http://docs.meteor.com/#structuringyourapp
这篇关于将 Meteor 文件分成客户端和服务器文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!