nightscout / trio-oref

MIT License
7 stars 4 forks source link

Add scripts to rename files output and create bundle directory #15

Closed avouspierre closed 5 months ago

avouspierre commented 5 months ago

Allows to copy and rename all js files in a correct name for oiaps and directly in the bundle directory.

bjornoleh commented 5 months ago

Thanks, nice find! Tested and working.

Now I can simplify the webpack-cp.sh a little. I think that script is still useful though, as it makes sure the files are correctly copied to OiAPS, and with info on oref0 branch name and git reference etc.

I did have to repeat the install of webpack though, as I otherwise got this error: [webpack-cli] Error: Cannot find module 'copy-rename-webpack-plugin'

To get past that, I did:

npm install --save-dev webpack