Hi @breadcrumble to answer your questions:
-
You are right, phrase from “getting started” is wrong, it should be “naming convention” or something similar - not “pattern for input file structure”…
-
You can generate and edit app, but if you generate it again - your files will be overwritten. I didn’t try mixing Angular.js code with meteor (with or without generator), so I am not sure how to make it work, but I believe it’s possible - you can create component of type “custom_component” and provide custom html & js code that can contain anything. Also, you can instruct generator to copy any external files into server, client, both (anywhere - see application object, property “copy_files”).
About plugins: my plan is to completely remove plugins in future versions - their functionality will be replaced by extending “custom_component”. The only difference is that “custom_component” doesn’t have mechanism for executing custom code while generating app (but that possibility will be added).
However, to answer your questions about plugins:
-
Yes, it’s easier to provide external template html file and load it with readFileSync - my attention was to keep example as simple as possible without external files.
-
in plugin directory, you can see plugin.json
file, it can contain something like:
{
"packages": {
"meteor": ["add-your-packages-here"],
"mrt" : []
},
"copy_files": [
{ "source": "whatever_file", "dest": "CLIENT_DIR/whatever_file" }
]
}
here you can specify packages that are used by your plugin, and also copy files into destination directories (you can use directory aliases, in this example CLIENT_DIR
but there is more:
OUTPUT_DIR, CLIENT_DIR, CLIENT_LIB_DIR, CLIENT_STYLES_DIR, CLIENT_STYLES_DEFAULT_DIR, CLIENT_STYLES_THEME_DIR, CLIENT_VIEWS_DIR, CLIENT_VIEWS_NOT_FOUND_DIR, CLIENT_VIEWS_LOADING_DIR, LIB_DIR, SETTINGS_DIR, BOTH_DIR, BOTH_LIB_DIR, BOTH_COLLECTIONS_DIR, PUBLIC_DIR, PUBLIC_IMAGES_DIR, PRIVATE_DIR, SERVER_DIR, SERVER_LIB_DIR, SERVER_COLLECTIONS_DIR, SERVER_PUBLISH_DIR, SERVER_CONTROLLERS_DIR, SERVER_METHODS_DIR
I believe this should be enough, however, if you spent more time with using angular.js with meteor-kitchen, please keep me updated - and let me know can I make any quick-fix to make it easier (or possible).
Thanks!