nanaeasiedu / generator-express-simple Goto Github PK
View Code? Open in Web Editor NEWexpress server generator for yeoman
License: MIT License
express server generator for yeoman
License: MIT License
Latest version, 0.5.3.
Generator options:
[?] Do you want an mvc express app: Yes
[?] Select the css preprocessor you would like to use: stylus
[?] Select view engine you would like to use: handlebars
[?] Do you want your Gruntfile in javascript or coffeescript: javascript
Running grunt
:
Running "jshint:gruntfile" (jshint) task
>> 1 file lint free.
Running "jshint:server" (jshint) task
>> 5 files lint free.
Running "jshint:client" (jshint) task
>> 1 file lint free.
Running "stylus:files" (stylus) task
Warning: Object #<Object> has no method 'indexOf' Use --force to continue.
Aborted due to warnings.
Edit: LESS and Sass appear to have issues as well:
Running "jshint:gruntfile" (jshint) task
>> 1 file lint free.
Running "jshint:server" (jshint) task
>> 5 files lint free.
Running "jshint:client" (jshint) task
>> 1 file lint free.
Running "less:files" (less) task
Warning: Object #<Object> has no method 'indexOf' Use --force to continue.
Aborted due to warnings.
Warning: Task "sass" not found. Use --force to continue.
Aborted due to warnings.
Your generator is putting an extra comma in after the Jade dependency, causing the rest of the generator job to fail. Thanks for your hard work on this.
{
"name": "project1",
"version": "0.0.0",
"dependencies": {
"express": "~4.0.0-rc2",
"morgan": "~1.0.0",
"body-parser": "~1.0.0",
"compression": "1.0.1",
"static-favicon": "~1.0.1",
"method-override": "~1.0.0",
"errorhandler": "~1.0.0",
"jade": "~1.1.5",,
"mongoose": "~3.8.7"
},
"devDependencies": {
"grunt": "~0.4.2",
"grunt-contrib-jshint": "~0.8.0",
"grunt-contrib-watch": "~0.5.3",
"grunt-concurrent": "~0.4.3",
"grunt-nodemon": "~0.2.0",
"grunt-node-inspector": "~0.1.2",
"grunt-contrib-cssmin": "~0.8.0",
"matchdep": "~0.3.0",
"grunt-contrib-sass": "~0.7.2"
}
}
Maybe it's just me, but after running
nodemon -L --watch . --debug app.js
inside the /website directory
followed by gulp watch
Any changes I make inside /sass/ do not appear or compile. I get "finished buildCss" but I need to restart the server in order to see the changes. Only happens for SCSS.
Thanks
Trying your boilerplate out. Found a couple things in the grunt file.
When generator finish, grun command ends with error:
I have choosed stylus, jade and coffescript.
Ivans-MacBook-Pro:ECofTest skivan$ grunt
Loading "Gruntfile.coffee" tasks...ERROR
Error: In /Users/skivan/WebstormProjects/ECofTest/Gruntfile.coffee, Parse error on line 1: Unexpected ','
The current template generator adds a comma to the last element which invalidates the package.json
Generated an app with these options:
node 4.x
no mvc
stylus
jade
javascript
when you run the app you get an error:
Error: Cannot find module '../controllers'
I'm seeing an error when running with the default grunt config. The concat:css options are:
concat: {
css: {
// add your css files over here to concatenate all css files
// let's save our site users some bandwith
files: {
src: ['public/vendor/bootstrap/dist/css/bootstrap.min.css', 'public/css/styles.min.css'],
dest: 'public/css/app.styles.min.css'
}
}
},
When I run grunt, I get:
Warning: Unable to write "src" file (Error code: EISDIR). Use --force to continue.
I believe the issue is with the files options it should be like this:
concat: {
css: {
// add your css files over here to concatenate all css files
// let's save our site users some bandwith
files: {
'public/css/app.styles.min.css': ['public/vendor/bootstrap/dist/css/bootstrap.min.css', 'public/css/styles.min.css'],
}
}
},
After doing a clean npm install of 0.6.1 and running yeoman, yo does not complete because it cannot find app/templates/common/.gitignore. Looking in node_modules, .gitignore is definitely missing from the common/ directory.
When "coffeescript" is selected as build tool language, gulpfile.coffee is generated but "coffee-script" is not added to package.json dependency.
And also gulpfile.coffee requires "gulp-nodemon", but its not used anywhere in gulpfile, and also its not listed in package.json dependency.
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.