signalpoint / jDrupal

A JavaScript Library and API for Drupal Applications
http://jdrupal.tylerfrankenstein.com/
GNU General Public License v2.0
76 stars 38 forks source link

Can you make jDrupal worked with NodeJS and Webpack? #77

Closed VienDinhCom closed 1 year ago

VienDinhCom commented 6 years ago

Hi there,

I saw that this is an awesome drupal module. However, it would be better if Drupal could work with NodeJS and Webpack.

Can you do that? Thanks :smile:

signalpoint commented 6 years ago

@Maxvien Do you mean make it available as an npm package?

VienDinhCom commented 6 years ago

Yup, I mean that :+1:

I tried to do this, but it didn't work.

import * as jdrupal from 'jdrupal/jdrupal';

signalpoint commented 6 years ago

@Maxvien Hmmm, it looks like I published it for npm long ago: https://www.npmjs.com/package/jdrupal

Their version is pointing to easystreet3/jDrupal, which on github's side now redirects to signalpoint/jDrupal.

Are you able to use something like signalpoint/jDrupal to get around it? Any ideas?

VienDinhCom commented 6 years ago

Okay, let me check it. Thanks very much :smile: