Code Monkey home page Code Monkey logo

generator-angular-module's People

Contributors

lukemadera avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

generator-angular-module's Issues

File names are not same as my module name

Am I doing anything wrong? I'm trying to make a module called json-formatter but my less and js files are being made ad rmatter.js etc.

Here is my console output:

~/Desktop ❯❯ mkdir json-formatter
~/Desktop ❯❯ cd json-formatter/
~/D/json-formatter ❯❯ yo angular-module json-formatter

     _-----_
    |       |
    |--(o)--|   .--------------------------.
   `---------´  |    Welcome to Yeoman,    |
    ( _´U`_ )   |   ladies and gentlemen!  |
    /___A___\   '__________________________'
     |  ~  |
   __'.___.'__
 ´   `  |° ´ Y `

[?] What type? directive
[?] Module name (i.e. angular-forminput) json-formatter
[?] Github User or Organization Name: mohsen1
[?] Module prefix - typically an abbreviation of your Github User/Organization Name (i.e. jrg) ms1
[?] Author name and email (i.e. John Smith <[email protected]>) Mohsen Azimi
[?] Module description (i.e. AngularJS form input builder directive) JSON Formatter
[?] Module (Bower) keywords, space separated (i.e. angular AngularJS form input angular-forminput directive) json, formatter
   invoke   angular-module:directive:/usr/local/lib/node_modules/generator-angular-module/app/index.js
   create     bower.json
   create     README.md
   create     .gitignore
   create     CHANGELOG.md
command run and done: git init . && git add -A && git commit -am 'init' && git remote add origin [email protected]:mohsen1/json-formatter.git && git checkout --orphan gh-pages && git rm -rf .
stdout: Initialized empty Git repository in /Users/mohsen/Desktop/json-formatter/.git/
[master (root-commit) a0ea5dd] init
 4 files changed, 106 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 CHANGELOG.md
 create mode 100644 README.md
 create mode 100644 bower.json
rm '.gitignore'
rm 'CHANGELOG.md'
rm 'README.md'
rm 'bower.json'
 stderr: Switched to a new branch 'gh-pages'

   create     .gitignore
   create     _base.less
   create     bower.json
   create     app.js
   create     Gruntfile.js
   create     index.html
   create     package.json
   create     rmatter.js
   create     rmatter.less
   create     _rmatter.less
   create     server.js
   create     pages/home/home.html
   create     pages/home/HomeCtrl.js
command run and done: git add -A && git commit -am 'init'
stdout: [gh-pages (root-commit) 33ef68e] init
 13 files changed, 363 insertions(+)
 create mode 100644 .gitignore
 create mode 100644 Gruntfile.js
 create mode 100644 _base.less
 create mode 100644 _rmatter.less
 create mode 100644 app.js
 create mode 100644 bower.json
 create mode 100644 index.html
 create mode 100644 package.json
 create mode 100644 pages/home/HomeCtrl.js
 create mode 100644 pages/home/home.html
 create mode 100644 rmatter.js
 create mode 100644 rmatter.less
 create mode 100644 server.js
 stderr:
   invoke   angular-module:service:/usr/local/lib/node_modules/generator-angular-module/app/index.js
Next steps:
1. run `npm install && bower install`
2. write your code then run `grunt`
3. create github repo
4. commit & push `gh-pages` branch
5. commit, tag, & push `master` branch
6. (optional) register bower component

And here is the file names:

~/D/json-formatter (gh-pages|✔) ❯❯ tree .
.
├── Gruntfile.js
├── _base.less
├── _rmatter.less
├── app.js
├── bower.json
├── index.html
├── package.json
├── pages
│   └── home
│       ├── HomeCtrl.js
│       └── home.html
├── rmatter.js
├── rmatter.less
└── server.js

2 directories, 12 files

Github User or Organization Name should be sanitized before creation.

Reproduction steps:

Create a new module.
Answer the questions as following:

[?] What type? directive
[?] Module name (i.e. angular-forminput) some-directive
[?] Github User or Organization Name: Super Awesome Company, Inc.
[?] Module prefix - typically an abbreviation of your Github User/Organization Name (i.e. jrg) aw

Then, in the generated app.js file:

angular.module('myApp', [
'ngRoute', 'ngSanitize', 'ngTouch', 'ngAnimate',        //additional angular modules
'Super Awesome Company, Inc..some-directive'
]).

It should be:

angular.module('myApp', [
'ngRoute', 'ngSanitize', 'ngTouch', 'ngAnimate',        //additional angular modules
'SuperAwesomeCompanyInc.some-directive'
]).

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.