open-xchange-frontend / generator-ox-ui-module Goto Github PK
View Code? Open in Web Editor NEWBoilerplate code for Open-Xchange Appsuite UI modules
License: MIT License
Boilerplate code for Open-Xchange Appsuite UI modules
License: MIT License
This error came up when I tried to lay out the boilerplate for first time:
/Users/michael-heuberger/code/smx/appsuite-theme-test ❯❯❯ ./node_modules/.bin/yo ox-ui-module
force .yo-rc.json
TypeError: Cannot read property 'hasOwnProperty' of undefined
at OxUiModuleGenerator.end (/Users/michael-heuberger/code/smx/appsuite-theme-test/node_modules/generator-ox-ui-module/generators/app/index.js:85:83)
at Object.<anonymous> (/Users/michael-heuberger/code/smx/appsuite-theme-test/node_modules/yeoman-generator/lib/index.js:751:25)
at /Users/michael-heuberger/code/smx/appsuite-theme-test/node_modules/run-async/index.js:47:25
at new Promise (<anonymous>)
at /Users/michael-heuberger/code/smx/appsuite-theme-test/node_modules/run-async/index.js:24:19
at runLoop.add.taskCompleted (/Users/michael-heuberger/code/smx/appsuite-theme-test/node_modules/yeoman-generator/lib/index.js:752:11)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)
at process.topLevelDomainCallback (domain.js:126:23)
Full console output pasted here: https://oxpad.net/uRsKrNdWrn
OSX Yosemite 10.10.2
Node v0.10.36
NPM v2.8.4
yo v1.4.6
generator-ox-ui-module v0.14.0
If I create a blank, brand new project and build it with grunt, then try to package it, I get the following errors for the following commands:
grunt dist:source --include-dependencies
Warning: Unable to write "dist/testapp-0.0.0/node_modules/appserver" file (Error code: EISDIR). Use --force to continue.
Aborted due to warnings.
yo ox-ui-module:rpm-pkg
/usr/local/lib/node_modules/generator-ox-ui-module/lib/pkg_generator.js:11
var pkgFile = options.argv.remain[0] || 'package.json';
^
TypeError: Cannot read property 'remain' of undefined
yo ox-ui-module:deb-pkg
/usr/local/lib/node_modules/generator-ox-ui-module/lib/pkg_generator.js:11
var pkgFile = options.argv.remain[0] || 'package.json';
^
TypeError: Cannot read property 'remain' of undefined
I may be doing something incorrectly, but I've been following instructions listed at: http://oxpedia.org/wiki/index.php?title=AppSuite:GettingStarted_7.6.0#Packaging
As best I can tell, this is a bug, but feel free to correct me if not.
node version 6.11.1
npm version 3.10.10
yo version 2.0.0
generator-ox-ui-module version 0.16.1
CentOS 7.3
Building a new and empty project, running grunt rpm-build --include-dependencies
fails with the error:
Running` "eslint:all" (eslint) task
Warning: No ESLint configuration found. Use --force to continue.
The entire output can be found here: https://gist.github.com/martygra/c992db678ea1550fcde015a5ada2c8fd
I'm unable to figure out which eslint config file the Grunt task is looking for.
Running grunt eslint:all
in my project directory successfully completes.
[vagrant@localhost mypackage]$ grunt eslint:all
Running "eslint:all" (eslint) taskDone, without errors.
Running grunt eslint:all
in the rpmbuild/BUILD directory, where I believe exec:rpmbuild
is trying to run it at fails on the missing eslint config:
[vagrant@localhost mypackage-0.0.0]$ grunt eslint:all
Running "eslint:all" (eslint) task
Warning: No ESLint configuration found. Use --force to continue.Aborted due to warnings.
This occurs on running grunt dev
in the app generated by ox-ui-module.
My stack:
Node: v8.9.0
Npm: 5.6.1
Also it always throw error about npm when it is installed globally. I've to run add npm in local dependencies to bypass the error. (npm exists in PATH, yet the error)
Error: Cannot find module 'npm'
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.