0.9.10 • Published 6 years ago

googshift v0.9.10

Weekly downloads
12
License
MIT
Repository
github
Last release
6 years ago

Description

This repository contains jscodeshift scripts to convert a code based on the Google Closure Compiler goog.require and goog.provide / goog.module to ES6 modules.

Example use

  • Convert from goog.provide to goog.module:
node_modules/.bin/jscodeshift -t transforms/goog_provide_to_goog_module.js ~/dev/suisseapline/ui/suissealpine/static/js/  ~/dev/suisseapline/ui/suissealpine/static/modules/ --ignore-pattern goog --skip-requires goog,ol,ngeo
  • Convert from goog.module to ES6 module:
node_modules/.bin/jscodeshift -t transforms/goog_module_to_es6_module.js ~/dev/suisseapline/ui/suissealpine/static/js/  ~/dev/suisseapline/ui/suissealpine/static/modules/

Publishing

  • Increment package.json version
  • Create a git tag and push it to the repository
  • Publish the npm package with npm publish
0.9.10

6 years ago

0.9.9

6 years ago

0.9.8

6 years ago

0.9.7

6 years ago

0.9.6

6 years ago

0.9.5

6 years ago

0.9.4

6 years ago

0.9.3

6 years ago

0.9.2

6 years ago

0.9.1

7 years ago

0.9.0

7 years ago