Git Product home page Git Product logo

Comments (8)

smakman avatar smakman commented on July 18, 2024

Did you run bower install?

from generator-gulp-bootstrap.

jurgenhaas avatar jurgenhaas commented on July 18, 2024

Sorry, no. I missed that. Maybe that should go into the "Getting started" section on your project's README.

Now gulp is running but it show the following error lines:

/PATH/src/js/app.js: line 17, col 5, Missing "use strict" statement.
/PATH/src/js/app.js: line 17, col 36, Strings must use singlequote.
/PATH/src/js/app.js: line 17, col 74, Strings must use singlequote.
/PATH/src/js/app.js: line 29, col 80, Strings must use singlequote.
/PATH/src/js/app.js: line 38, col 32, Strings must use singlequote.
/PATH/src/js/app.js: line 46, col 1, Missing "use strict" statement.
/PATH/src/js/app.js: line 70, col 22, Strings must use singlequote.
/PATH/src/js/app.js: line 99, col 17, Strings must use singlequote.
/PATH/src/js/app.js: line 111, col 22, Expected '!==' and instead saw '!='.
/PATH/src/js/app.js: line 185, col 37, Strings must use singlequote.
/PATH/src/js/app.js: line 194, col 36, Strings must use singlequote.
/PATH/src/js/app.js: line 206, col 43, Expected '!==' and instead saw '!='.
/PATH/src/js/app.js: line 244, col 22, Strings must use singlequote.
/PATH/src/js/app.js: line 244, col 71, Strings must use singlequote.
/PATH/src/js/app.js: line 256, col 47, Strings must use singlequote.
/PATH/src/js/app.js: line 262, col 22, Expected '!==' and instead saw '!='.
/PATH/src/js/app.js: line 278, col 45, Strings must use singlequote.
/PATH/src/js/app.js: line 283, col 73, Strings must use singlequote.
/PATH/src/js/app.js: line 301, col 20, Expected '===' and instead saw '=='.
/PATH/src/js/app.js: line 302, col 28, Strings must use singlequote.
/PATH/src/js/app.js: line 305, col 39, Strings must use singlequote.
/PATH/src/js/app.js: line 305, col 68, Strings must use singlequote.
/PATH/src/js/app.js: line 306, col 57, Strings must use singlequote.
/PATH/src/js/app.js: line 321, col 43, Strings must use singlequote.
/PATH/src/js/app.js: line 322, col 57, Strings must use singlequote.
/PATH/src/js/app.js: line 337, col 48, Strings must use singlequote.
/PATH/src/js/app.js: line 396, col 23, Expected '===' and instead saw '=='.
/PATH/src/js/app.js: line 397, col 15, Strings must use singlequote.
/PATH/src/js/app.js: line 398, col 24, Strings must use singlequote.
/PATH/src/js/app.js: line 398, col 45, Strings must use singlequote.
/PATH/src/js/app.js: line 405, col 20, Expected '!==' and instead saw '!='.
/PATH/src/js/app.js: line 408, col 44, Strings must use singlequote.
/PATH/src/js/app.js: line 420, col 22, Expected '===' and instead saw '=='.
/PATH/src/js/app.js: line 469, col 30, Expected '!==' and instead saw '!='.
/PATH/src/js/app.js: line 479, col 30, Expected '!==' and instead saw '!='.
/PATH/src/js/app.js: line 497, col 41, Strings must use singlequote.
/PATH/src/js/app.js: line 529, col 76, Strings must use singlequote.
/PATH/src/js/app.js: line 529, col 86, Strings must use singlequote.
/PATH/src/js/app.js: line 530, col 27, Strings must use singlequote.
/PATH/src/js/app.js: line 530, col 40, Strings must use singlequote.
/PATH/src/js/app.js: line 539, col 26, Strings must use singlequote.
/PATH/src/js/app.js: line 542, col 29, Strings must use singlequote.
/PATH/src/js/app.js: line 550, col 28, Strings must use singlequote.
/PATH/src/js/app.js: line 551, col 35, Strings must use singlequote.
/PATH/src/js/app.js: line 589, col 23, Strings must use singlequote.
/PATH/src/js/app.js: line 604, col 22, Unexpected use of '<<'.
/PATH/src/js/app.js: line 610, col 0, Identifier 'push_native' is not in camel case.
/PATH/src/js/app.js: line 626, col 140, Strings must use singlequote.
/PATH/src/js/app.js: line 631, col 39, Strings must use singlequote.
/PATH/src/js/app.js: line 633, col 59, Strings must use singlequote.
/PATH/src/js/app.js: line 633, col 59, Too many errors. (5% scanned).

What's strange though, the app.js file only contains 3 commented lines and not those lines that are referenced in the messages.

from generator-gulp-bootstrap.

smakman avatar smakman commented on July 18, 2024

If you use the yeoman generator it runs bower install automatically. The lines in app.js are includes and the messages you are seeing are JSLint warnings. Those should not prevent the app from running.

from generator-gulp-bootstrap.

jurgenhaas avatar jurgenhaas commented on July 18, 2024

Interesting. Bower wasn't available on my new Linux box and yeoman obviously ignored that silently. Maybe bower should be included in the dependencies?

from generator-gulp-bootstrap.

jurgenhaas avatar jurgenhaas commented on July 18, 2024

Did some more testing today and all is working just fine now. I'm very impressed and I like it a lot. Thank you for your great work.

Now, I'm wondering how to move that forward. My own use case is development of Bootstrap subthemes for the Drupal CMS. The file structure and some of the setup is different. Does it make sense to make your package customizable or would you recommend a fork?

from generator-gulp-bootstrap.

smakman avatar smakman commented on July 18, 2024

I've created this yeoman generator for our own projects, so the file structure and setup is very opinionated. I would recommend creating a fork for your own setup or even your own generator.

from generator-gulp-bootstrap.

jurgenhaas avatar jurgenhaas commented on July 18, 2024

OK, thanks a lot. If you don't mind, what's required to create my own generator then?

from generator-gulp-bootstrap.

smakman avatar smakman commented on July 18, 2024

You have to create a node module, check out the Yeoman documentation. Also have a look at my package.json and index.js to get you started.

from generator-gulp-bootstrap.

Related Issues (1)

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.