Skip to content

Copying javascripts is disabled #180

@jacobtjackson

Description

@jacobtjackson

Hi, I'm trying to use commontator with a Rails 5.2 app that uses webpacker for javascript deployment. I tried importing the necessary javascripts going off of the readme, but didn't have much success. I then noticed that you can copy most of the gem into your project using rails commontator:copy:<item_to_copy/>. This worked great for the stylesheets, but it doesn't seem to have an option for copying the javascript files; when I run rails --tasks the list of commontator-related tasks looks like this:

rails commontator:copy                   # Copy assets, views, mailers, helpers, controllers and models from commontator to application
rails commontator:copy:controllers       # Copy controllers from commontator to application
rails commontator:copy:helpers           # Copy helpers from commontator to application
rails commontator:copy:images            # Copy images from commontator to application
rails commontator:copy:locales           # Copy locales from commontator to application
rails commontator:copy:mailers           # Copy mailers from commontator to application
rails commontator:copy:models            # Copy models from commontator to application
rails commontator:copy:stylesheets       # Copy stylesheets from commontator to application
rails commontator:copy:views             # Copy views from commontator to application
rails commontator:install                # Copy initializers and migrations from commontator to application
rails commontator:install:initializers   # Copy initializers from commontator to application
rails commontator:install:migrations     # Copy migrations from commontator to application 

Is there another way I can easily copy the Javascript files without having to do it manually?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions