Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

yo angular:directive is not so friendly to case-sensitive FS #557

Closed
zhuangya opened this issue Jan 27, 2014 · 1 comment
Closed

yo angular:directive is not so friendly to case-sensitive FS #557

zhuangya opened this issue Jan 27, 2014 · 1 comment

Comments

@zhuangya
Copy link
Contributor

related info:

https://gist.github.com/zhuangya/8653303

so, i wanna create a directive by yeoman, and i do this:

☁  angular-generator-bug [master] yo angular:directive fooBar
   create app/scripts/directives/foobar.js
   create test/spec/directives/foobar.js

notice that the filename is foobar.js for the directive file and test file.

but what changed in the html:

diff --git a/app/index.html b/app/index.html
index b1907d3..b5085a0 100644
--- a/app/index.html
+++ b/app/index.html
@@ -55,6 +55,7 @@
         <!-- build:js({.tmp,app}) scripts/scripts.js -->
         <script src="scripts/app.js"></script>
         <script src="scripts/controllers/main.js"></script>
+        <script src="scripts/directives/fooBar.js"></script>
         <!-- endbuild -->
 </body>
 </html>

see that? it's fooBar.js

i develop my site on a MacBook Pro, and it's FS is case insensitive by default, but the production server (ubuntu) is case sensitive.

however, i execute grunt build on the server, in this case:

  • there is no error reporting for there is no such file as fooBar.js
  • i will not get anything wrong on the page, and the chrome devtool

so, could you/anybody unify the filename ?

thanks.


update,

version:

yo@1.1.2
generator-angular@0.7.1

@eddiemonge
Copy link
Member

duplicate of #533

eddiemonge pushed a commit that referenced this issue Jan 27, 2014
Update the script source path to reference the lowercase filenames

Closes #557
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants