1.1.1 • Published 4 years ago

webresources-tool v1.1.1

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

What is this?

This application is used to generate a new _webresources file from the computers File System. After you're done with the file you can just reset it back to it's initial minified state.

webresources - Generates a new _webresources file depending on your environment Setup.

webresources --reset - Reset the file to it's initial state

This comes in handy when you want to debug Javascript in Polopoly.


Installation & Setup

  1. npm install -g webresources-tool
  2. Create and export the environment variables WEBRESOURCES_REPO_DIR and GONG_REPO_DIR inside your .bash_profile/.bashrc/.zshrc or whatever you're using.
# Repositories
WEBRESOURCES_REPO_DIR="$HOME/projects/webresources-tool"
GONG_REPO_DIR="$HOME/stampen/gong-2.1"

### Exports
export WEBRESOURCES_REPO_DIR
export GONG_REPO_DIR

Remember to apply these folder paths to those variables so it's compatible for your own local machine.

  1. Now type webresources --version in your Terminal and you should get the current version.
  2. Done!

CLI Arguments

OptionDescriptionExample
--dirSelect a folderpath as the root directory--dir $HOME/demo-project
--outputDestination of the file that will be generated--output $HOME/_webresources
--resetReset the _webresources file to it's initial state--output $HOME/_webresources --reset

Terminal example Output

Generate a new _webresources file from the file structure

➜ webresources
                  _
    __      _____| |__  _ __ ___  ___  ___  _   _ _ __ ___ ___  ___
    \ \ /\ / / _ \ '_ \| '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \/ __|
     \ V  V /  __/ |_) | | |  __/\__ \ (_) | |_| | | | (_|  __/\__ \
  ____\_/\_/ \___|_.__/|_|  \___||___/\___/ \__,_|_|  \___\___||___/
 |_____|

Selected directory:  /Users/chreng/stampen/gong-2.1/resources/src/main/contentfiles

# Files (33)
/js/footer/accordion.js
/js/footer/articleloader.js
/js/footer/auth.js
/js/footer/clipboard.js
/js/footer/e-paper.js
/js/footer/klarna.js
/js/footer/my-pages.js
/js/footer/share-subscription.js
/js/footer/site.js
/js/footer/socialpopups.js
/js/footer/subscription-handler.js
/js/footer/tab.js
/js/footer/toggleclass.js
/js/footer/ui.js
/js/header/adblockDetector.js location=header
/js/header/adform.js location=header
/js/header/authrefresh.js location=header
/js/header/consent-string.js location=header
/js/header/frequency.js location=header
/js/header/glide.js location=header
/js/header/glimr.min.js location=header
/js/header/header.js location=header
/js/header/lazysizes.js location=header
/js/header/modal.js location=header
/js/header/modules/autocomplete.js location=header
/js/header/modules/bluebird.js location=header
/js/header/modules/domninja.js location=header
/js/header/modules/getUnitType.js location=header
/js/header/modules/getViewport.js location=header
/js/header/modules/viewportFold.js location=header
/js/header/platform.js location=header
/js/header/setupListicle.js location=header
/js/header/sha256.js location=header

Created resource file:  /Users/chreng/stampen/gong-2.1/resources/src/main/contentfiles/_webresources

Reset the _webresources file to it's initial state

➜ webresources --reset
                  _
    __      _____| |__  _ __ ___  ___  ___  _   _ _ __ ___ ___  ___
    \ \ /\ / / _ \ '_ \| '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \/ __|
     \ V  V /  __/ |_) | | |  __/\__ \ (_) | |_| | | | (_|  __/\__ \
  ____\_/\_/ \___|_.__/|_|  \___||___/\___/ \__,_|_|  \___\___||___/
 |_____|

# Files (4)
 /header.min.js location=header
/header.min.js.map
/footer.min.js
/footer.min.js.map

Reseted resource:  /Users/chreng/stampen/gong-2.1/resources/src/main/contentfiles/_webresources
1.1.1

4 years ago

1.1.0

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.1.9

4 years ago

1.2.0

4 years ago

1.1.8

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago