aurajs / generator-aura Goto Github PK
View Code? Open in Web Editor NEWYeoman generator for Aura.js
Yeoman generator for Aura.js
After running yo aura
I executed the command npm install
and got the nice error message.
> [email protected] install C:\GitHub\test\auratest\node_modules\grunt-mocha\node_modules\grunt-lib-phantomjs\node_modul
es\phantomjs
> node install.js
module.js:340
throw err;
^
Error: Cannot find module 'buffers'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (C:\GitHub\test\auratest\node_modules\grunt-mocha\node_modules\grunt-lib-phantomjs\node_module
s\phantomjs\node_modules\unzip\node_modules\binary\index.js:3:15)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
npm ERR! weird error 8
npm ERR! not ok code 0
Running npm install grunt-mocha
executed fine, but several attempts on running npm install
displayed the error message ignoring the already installed grunt-mocha
Changing package.json to require grunt-mocha ~0.4.1 fixes this issue.
Otherwise nice job, guys, even if I selected to use bootstrap and when I run grunt build it complains that I don't have compass installed. Luckily I have the ruby environment on my machine so running gem install compass was not the hardest thing to do.
Hey @dotcypress. Could you possibly add me to the npm owners for this package in case we need to push updates if you're not around?
Will be opening up a few more issues to get this baby in line with the latest boilerplate :)
I need the latest change (Update yeoman-generator & mocha versions), but the repository seems to have an old version. Could you roll the version number and publish the new stuff?
Thx :)
Generators can now be installed globally:
npm install -g generator-aura
Update readme
This project is currently using the older syntax and naming convention (Widget vs component). @robertd Do you think you might have time to help @dotcypress update this to reflect latest?
It would help tremendously!
Great work on the Yeoman generator for Aura!
We've recently updated the Aura API and I was wondering if you would be interested in moving this project to the aurajs organisation and helping us officially maintain it there.
We're hoping to announce the release we've been working on for a few months soon and having this be an official part of our tooling story would be huge.
Interested?
After a fresh install I get the following error.
/usr/local/share/npm/lib/node_modules/generator-aura/app/index.js:22
'\n _'.red.bold +
^
TypeError: Cannot read property 'bold' of undefined
at AppGenerator.someQuestions (/usr/local/share/npm/lib/node_modules/generator-aura/app/index.js:22:43)
...
Yeoman version: 1.0.4
On windows (powershell) the suggested command npm install && bower install --save
doesn't work.
This looks to me as something we have to do every time we generate a new app. So maybe we should have a task for it. Typing this task in a platform depend matter is not something we want to do manually as it's treated differently on the various platforms. It also adds complexity to the documentation. We can let grunt-shell
abstract away the platform for us. Maybe this is something we could instruct yo
to add to the grunt-file for us.
I suggest that the generator adds the following parts to the Gruntfile.js
and adds the grunt-shell
requirement to the package.json
file.
// loadNpmTasks section
grunt.loadNpmTasks('grunt-shell');
// config/task section (initConfig)
shell: {
setup: {
command: ['npm install', 'bower install --save'].join('&&'),
options: {
stdout: true,
}
}
},
// registerTask section
grunt.registerTask('setup', ['shell:setup']);
The component subgenerator seems to be identical to the main aura generator. I run
yo aura:component sample
and I get a full aura app generated. According to the web page, I should only be getting app/aura_components/sample/main.js
Here's my stats:
1.0.0-rc.1.3
/home/ron.romero/opt:/bin:/home/ron.romero/bin:/usr/local:/usr/local/bin:/sbin:/usr/sbin:/usr/local:/usr/local/bin:/home/ron.romero/opt/node/bin:/usr/local/heroku/bin:/home/ron.romero/local/play:/home/ron.romero/local/bin:/home/ron.romero/bin:/usr/lib/lightdm/lightdm:/usr/local/bin:/usr/bin:/bin:/home/ron.romero/opt/eclipse
linux { http_parser: '1.0',
node: '0.10.15',
v8: '3.14.5.9',
ares: '1.9.0-DEV',
uv: '0.10.13',
zlib: '1.2.3',
modules: '11',
openssl: '1.0.1e' }
@sbellity and I both tried installing and running the generator but can into the following error when doing yo aura
:
$ yo aura
=====================================
_
/\ (_)
/ \ _ _ _ __ __ _ _ ___
/ /\ \| | | | '__/ _` | | / __|
/ ____ \ |_| | | | (_| |_| \__ \
/_/ \_\__,_|_| \__,_(_) |___/
_/ |
|__/
=====================================
Generating your awesome app. Stay tuned ;)
=====================================
/usr/local/lib/node_modules/bower/node_modules/tmp/lib/tmp.js:219
throw err;
^
Error: ENOENT, no such file or directory '/common/gitignore'
at Object.fs.openSync (fs.js:338:18)
at Object.fs.openSync (/usr/local/lib/node_modules/bower/node_modules/rimraf/node_modules/graceful-fs/graceful-fs.js:68:26)
at Object.fs.openSync (/Users/addyo/projects/temp/node_modules/generator-aura/node_modules/yeoman-generator/node_modules/bower/node_modules/rimraf/node_modules/graceful-fs/graceful-fs.js:68:26)
at Object.fs.openSync (/Users/addyo/projects/temp/node_modules/generator-mocha/node_modules/yeoman-generator/node_modules/bower/node_modules/rimraf/node_modules/graceful-fs/graceful-fs.js:68:26)
at Object.fs.readFileSync (fs.js:182:15)
at AppGenerator.copy (/Users/addyo/projects/temp/node_modules/generator-aura/node_modules/yeoman-generator/lib/actions/actions.js:74:15)
at AppGenerator.git (/Users/addyo/projects/temp/node_modules/generator-aura/app/index.js:52:8)
at next (/Users/addyo/projects/temp/node_modules/generator-aura/node_modules/yeoman-generator/lib/base.js:275:18)
at Base.run (/Users/addyo/projects/temp/node_modules/generator-aura/node_modules/yeoman-generator/lib/base.js:286:7)
at next (/Users/addyo/projects/temp/node_modules/generator-aura/node_modules/yeoman-generator/lib/util/conflicter.js:52:14)
Is it possible to address this?
How do we write test? i mean why /spec isn't under Test folder for example?
https://github.com/yeoman/generator-webapp
Of note:
Could be done as the next version.
Planning on fixing this soon, just placing this here to remind myself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.