Giter Club home page Giter Club logo

laravel-foundation's People

Contributors

greenimp avatar

Watchers

 avatar  avatar

laravel-foundation's Issues

node-merge can't handle directories

Originally reported by: Lee Langley (Bitbucket: LeeLangleyRees, GitHub: Unknown)


If node merge finds a directory inside the one it is copying from, it throws an error:

#!bash

ReferenceError: merge is not defined
    at Object.exports.mergeTo (/path/to/script/node_modules/node-merge/merge.js:16:21)

The issue is caused by it incorrectly trying to recursively call itself, on line 16 of merge.js:

#!javascript

_results.push(merge("" + f1 + "/" + file, "" + f2 + "/" + file));

There is no such function as merge().
I'm not sure if it's correct, but replacing merge with exports.mergeTo fixes the issue:

#!javascript

_results.push(exports.mergeTo("" + f1 + "/" + file, "" + f2 + "/" + file));

I'm not wanting to modify the code though, as it's part of a separate node module.

I see three options:

  1. Create an issue with the developer, and get them to fix it.
    Unlikely to resolve, as it hasn't been updated in three years.
  2. Fork the repo and fix it myself.
    Would work, but I'm not wanting to manage a whole repo for such a minor fix.
  3. Look into alternative modules.

Install project dependencies

Originally reported by: Lee Langley (Bitbucket: LeeLangleyRees, GitHub: Unknown)


Before the script starts the installation, it could try and install the software required to set up and run the project;

Obviously, Node can't install itself, so that can be ignored.

Grunt and Bower are both installable via npm, so that should be quite simple.

Composer and Mcrypt, however, are installed differently, depending on the OS, so it may be best to leave this to the user to install.


Always compress CSS and JS

Originally reported by: Lee Langley (Bitbucket: LeeLangleyRees, GitHub: Unknown)


Currently, in Grunt, we are only compressing CSS and JS when running the production tasks. The original idea behind this was that for dev purposes, you would want to be able to read the CSS and JS files.

We are now generating source map files for both CSS and JS, so the need for an uncompressed version of the files is probably non-existent now.

This should be tested, but being able to remove the different dev/prod tasks would be lovely.


Don't compile vendor JS into single directory

Originally reported by: Lee Langley (Bitbucket: LeeLangleyRees, GitHub: Unknown)


It might be good to remove the uglify compiling of the vendor JS files into a single file.

The reason being that it could be confusing for users, if they add some of their own dependencies via bower, but are unaware of how they are compiled in the gruntfile. You could end up with cases where the user added packages are not included and don't get copied into the public directory, causing confusion.

Although it's a nice feature, it may be easier to remove it.

Instead, I propose one of the following:

  • The Gruntfile moves each JS file into a /public/vendor/ directory.

    No user added packages will be copied across, but at least it will be clear to the user which files are there.

  • The Gruntfile does nothing to the packages and we simply change the bower components directory to /public/vendor/ directory.

    The benefit is that all bower packages will be included.

    The downside is that a lot of the files included will be superflous, such as SASS files, readme files, demos etc.


NPM requires root access to install dependencies

Originally reported by: Lee Langley (Bitbucket: LeeLangleyRees, GitHub: Unknown)


On my laptop (Ubuntu 14.04), NPM requires root access to be able to install dependencies. This mainly effects the installing of Grunt modules.

This means that the command needs to be run using sudo.

I'm not sure if this is the same for all users, on all OSes, so that will have to be explored.

We need to see if we can prompt the user for sudo (or it's equivalent on Windows) access, if necessary.


dummy issue

filler issue created by bitbucket_issue_migration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.