Socket
Socket
Sign inDemoInstall

soy-declaration-loader

Package Overview
Dependencies
5
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    soy-declaration-loader

Webpack-Loader that extracts type declarations from Google Closure templates (.soy files)


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
726 kB
Created
Weekly downloads
 

Readme

Source

soy-declaration-loader

This project lets you use .soy-file templates from Google Closure projects in TypeScript projects using webpack without giving up the many benefits of TypeScripts strong type system. Basically, this loader will generate typings for the soy templates.

Getting Started

Simply install via NPM:

npm install --save-dev soy-declaration-loader

Then, configure your webpack to load .soy files using soy-declaration-loader:

  module: {
    loaders: [
      {
        test: /\.soy$/,
        include: [
          path.resolve(__dirname, './src/main/resources/soy')
        ],
        loader: 'soy-declaration-loader'
      }
    ]
  }

This will make them available from TypeScript at compile time.

Contributing

If you want to help develop, please make sure the tests don't break. Check out this repository and run the tests with npm run test.

Also, when contributing to this repository, please first discuss the change you wish to make via issue, email, or any other method with the owners of this repository before making a change.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

License

This project is licensed under the Unlicense - see the LICENSE.md file for details.

FAQs

Last updated on 26 Nov 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc