In Meteor documentation I've read that I can test my custom Meteor package locally under one of my Meteor projects by placing the custom package under the /packages folder and entering (meteor add), yet I can't locate the Package folder...I've looked under .meteor folder but can't find any packages folder, the only packages folder I found was under .meteor/local/build/programs/packages so is this the folder where I should place my custom package to test? if now where I can find the packages folder? Thanks
That's because this folder does not exist by default in a Meteor project (just like the client/ or server/ folders).
You need to create this directory at the root of your project, place your custom packages under this directory and meteor add them.
Related
I found nowhere a perfect answer. Let me have a directory or folder created inside the package of my java project. The location of the java project isn't static. I want to get the entire mentioned folder inside the package copied to another desired folder. I tried:
Path from = Paths.get(getClass().getResource("Folder").toString());
to get the path of the folder. But it didn't work...
How to do it now?
I am trying to install silverstripe, downloaded the zip file, unzipped and copied all the files into the root of a folder in MAMP.
When I go to the root location in the url, in goes to install.php, but shows no styling whatsoever. But in the console no issues.
In this way I can't even install silverstripe because it isn't doing anything.
Any help would be appreciated.
SS 4.1 now uses a sub folder called public as root for your site. You will need to change the Document root to the public folder, and then move some files and folders into the public folder as described in the install docs.
htaccess
assets - folder
resources - folder
index
install
web.config
favicon
install-frameworkmissing
Most important run the following in composer
composer vendor-expose
I want to remove the meteor installation from my meteor project directory while keeping my source code intact, so that I can archive the project without the installed packages. I also want the package configuration to be retained in the archive so that I can re-install the project without having to re-add and re-remove the packages again.
How do I do this?
Meteor already creates a .gitignore file for you. That file tells you everything that should be archived. So you can simple look at that file and only archive that (either by deleting everything else, or just writing a script that reads the .gitignore file and interprets it). Alternatively, of course, you could just add everything to git (in which case git will interpret the .gitignore file for you), and then create an archive from the git repo.
Of course, that .gitignore file only excludes .meteor/local, so as Kyll already said, you could just delete that folder.
I had a problem where I couldn't create a meteor project using the following command:
cd c:/projects
meteor create foo
I got this error:
You can't create a Meteor project inside another Meteor project.
I found some answers for this problem saying there could me a .meteor folder in the projects folder, but this was not the case.
Turned out there was a .meteor folder in my c:/. After removing this folder the command create worked again.
In my meteor project I want to use gulp for tasks meteor doesn't support.
Anyway, the problem is that gulp uses a file called gulpfile.js which is loaded by meteor too and gives errors. So my question is, is there a way to tell meteor to ignore some files ?
UPDATE: One solution I can think of is to put gulpfile.js in the folder packages or public and run gulp as follows
$> gulp --gulpfile packages/gulpfile.js
UPDATE: Just noticed that meteor also seems to load node_modules files :(
Unfortunately, in the current release there's no way to tell Meteor to leave certain files alone, so you cannot have gulpfile.js in your main app folder.
You can, however, leave it in an ignored subfolder. Meteor ignores files and directories that ends with tilde ~, the /tests directory and all private files (those beginning with a dot .). So you can create a folder named for example gulp~ and use it for your gulp-related stuff.
The same holds for node_modules folder, you cannot have it in your application, and you shouldn't. If you want to use a node package in your Meteor application, you can do this with npm package.
Add it to your project with mrt add npm command.
Then create packages.json file with a list of all required packages, for example:
{
"something": "1.5.0",
"something-else": "0.9.11"
}
Afterwards, include your package with Meteor.require:
var something = Meteor.require('something');
If you want to use a node package in your gulp tasks, install it inside the ignored directory.