Code Monkey home page Code Monkey logo

Comments (5)

gathuku avatar gathuku commented on July 22, 2024 1

@giuseb Confirm you have this in package.json

"scripts": {
    "build": "node esbuild.config.js",
    "build:css": "sass ./app/assets/stylesheets/application.bootstrap.scss ./app/assets/builds/application.css --no-source-map --load-path=node_modules" 
  }

from jumpstart.

giuseb avatar giuseb commented on July 22, 2024 1

@gathuku, I did not have this snippet, now it works, thank you.

Shouldn't this be inserted by the jumpstart script, or at least mentioned in the readme?

from jumpstart.

gathuku avatar gathuku commented on July 22, 2024

There's a command for that npm set-script from npm >= 7.1. Time to upgrade npm :)

jumpstart/template.rb

Lines 244 to 252 in 51f8376

def add_esbuild_script
build_script = "node esbuild.config.js"
if (`npx -v`.to_f < 7.1 rescue "Missing")
say %(Add "scripts": { "build": "#{build_script}" } to your package.json), :green
else
run %(npm set-script build "#{build_script}")
end
end

from jumpstart.

giuseb avatar giuseb commented on July 22, 2024

Ah, yes, I re-ran the script and found the notice scrolling back, thank you.

May I suggest that, given the output's verbosity, all actionable information be shown at the end of the process, along the To get started with your new app: block.

Cheers!

from jumpstart.

gathuku avatar gathuku commented on July 22, 2024

@giuseb the suggestion is good, Am sure @excid3 will like it.

from jumpstart.

Related Issues (20)

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.