graphql-codegen-webpack
Integrates GraphQL Code Generator with Webpack
Last updated 2 years ago by dotansimha .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install graphql-codegen-webpack 
SYNC missed versions from official npm registry.

graphql-codegen-webpack

Integrates GraphQL Code Generator with Webpack

const { GraphQLCodegenPlugin } = require('graphql-codegen-webpack');

new GraphQLCodegenPlugin({
  schema: 'src/schema.graphql',
  template: 'graphql-codegen-typescript-template',
  out: 'src/types.ts',
  overwrite: true
});

Full example of webpack configuration:

const { GraphQLCodegenPlugin } = require('graphql-codegen-webpack');

module.exports = {
  mode: 'development',
  devtool: 'inline-source-map',
  entry: './src/index.ts',
  output: {
    filename: 'bundle.js'
  },
  resolve: {
    extensions: ['.ts', '.ts', '.js', '.mjs']
  },
  plugins: [
    // GraphQL Code Generator
    new GraphQLCodegenPlugin({
      schema: 'src/schema.graphql',
      template: 'graphql-codegen-typescript-template',
      out: 'src/types.ts',
      overwrite: true
    })
  ],
  module: {
    rules: [
      { test: /\.ts$/, loader: 'ts-loader' },
      {
        test: /\.mjs$/,
        include: /node_modules/,
        type: 'javascript/auto'
      }
    ]
  }
};

Current Tags

  • 0.14.0-alpha.79712f95                                ...           canary (2 years ago)
  • 0.13.0                                ...           latest (2 years ago)

160 Versions

  • 0.14.0-alpha.79712f95                                ...           2 years ago
  • 0.14.0-alpha.e0b68192                                ...           2 years ago
  • 0.14.0-alpha.a4171527                                ...           2 years ago
  • 0.14.0-alpha.6a8b5cfc                                ...           2 years ago
  • 0.14.0-alpha.abf2abc1                                ...           2 years ago
  • 0.14.0-alpha.38e06f3a                                ...           2 years ago
  • 0.14.0-alpha.75a033d5                                ...           2 years ago
  • 0.14.0-alpha.d40fcf9c                                ...           2 years ago
  • 0.14.0-alpha.795d213a                                ...           2 years ago
  • 0.14.0-alpha.1bd7b5ab                                ...           2 years ago
  • 0.14.0-alpha.0260ba30                                ...           2 years ago
  • 0.14.0-alpha.a14782b5                                ...           2 years ago
  • 0.14.0-alpha.fad16cda                                ...           2 years ago
  • 0.14.0-alpha.9703fc49                                ...           2 years ago
  • 0.14.0-alpha.0cd5095f                                ...           2 years ago
  • 0.14.0-alpha.d1abca73                                ...           2 years ago
  • 0.14.0-alpha.3e8b9116                                ...           2 years ago
  • 0.14.0-alpha.ba87906d                                ...           2 years ago
  • 0.14.0-alpha.b838ee10                                ...           2 years ago
  • 0.14.0-alpha.23ea5a67                                ...           2 years ago
  • 0.14.0-alpha.cdbaa3ca                                ...           2 years ago
  • 0.14.0-alpha.4e941c37                                ...           2 years ago
  • 0.14.0-alpha.61fad1d1                                ...           2 years ago
  • 0.14.0-alpha.b36b8079                                ...           2 years ago
  • 0.14.0-alpha.10b46622                                ...           2 years ago
  • 0.14.0-alpha.e1d2272f                                ...           2 years ago
  • 0.14.0-alpha.7b52c5bd                                ...           2 years ago
  • 0.14.0-alpha.d4cb7a5e                                ...           2 years ago
  • 0.14.0-alpha.d940567c                                ...           2 years ago
  • 0.14.0-alpha.b621df0d                                ...           2 years ago
  • 0.14.0-alpha.f7561c79                                ...           2 years ago
  • 0.14.0-alpha.75231e89                                ...           2 years ago
  • 0.14.0-alpha.9ae230a1                                ...           2 years ago
  • 0.14.0-alpha.73107458                                ...           2 years ago
  • 0.14.0-alpha.9fd01297                                ...           2 years ago
  • 0.14.0-alpha.320d80a7                                ...           2 years ago
  • 0.14.0-alpha.4f6651d6                                ...           2 years ago
  • 0.14.0-alpha.d39554c4                                ...           2 years ago
  • 0.14.0-alpha.f1e5a0c0                                ...           2 years ago
  • 0.14.0-alpha.8db877df                                ...           2 years ago
  • 0.14.0-alpha.deabf4b9                                ...           2 years ago
  • 0.14.0-alpha.b04233ad                                ...           2 years ago
  • 0.14.0-alpha.33699d2b                                ...           2 years ago
  • 0.14.0-alpha.1effdd2e                                ...           2 years ago
  • 0.14.0-alpha.5d14f9ae                                ...           2 years ago
  • 0.14.0-alpha.0d34d7bc                                ...           2 years ago
  • 0.14.0-alpha.a71f9d83                                ...           2 years ago
  • 0.14.0-alpha.07bda304                                ...           2 years ago
  • 0.14.0-alpha.4a64f195                                ...           2 years ago
  • 0.14.0-alpha.79f8d805                                ...           2 years ago
  • 0.14.0-alpha.c9d705fd                                ...           2 years ago
  • 0.14.0-alpha.8d8bee2f                                ...           2 years ago
  • 0.14.0-alpha.ebdda7aa                                ...           2 years ago
  • 0.14.0-alpha.a4838807                                ...           2 years ago
  • 0.14.0-alpha.ccdfeb71                                ...           2 years ago
  • 0.14.0-alpha.70003040                                ...           2 years ago
  • 0.14.0-alpha.9218e2b8                                ...           2 years ago
  • 0.14.0-alpha.51ab2f2f                                ...           2 years ago
  • 0.14.0-alpha.0088a6ab                                ...           2 years ago
  • 0.14.0-alpha.cbd3f405                                ...           2 years ago
  • 0.14.0-alpha.8feda251                                ...           2 years ago
  • 0.14.0-alpha.c0b3122c                                ...           2 years ago
  • 0.14.0-alpha.609b90b2                                ...           2 years ago
  • 0.14.0-alpha.28268e43                                ...           2 years ago
  • 0.14.0-alpha.a4fbd654                                ...           2 years ago
  • 0.14.0-alpha.ae45d308                                ...           2 years ago
  • 0.14.0-alpha.ad801dc3                                ...           2 years ago
  • 0.14.0-alpha.56eee35e                                ...           2 years ago
  • 0.14.0-alpha.1b4ee721                                ...           2 years ago
  • 0.14.0-alpha.028ad0ed                                ...           2 years ago
  • 0.14.0-alpha.6ec6ac43                                ...           2 years ago
  • 0.14.0-alpha.0dc3c08f                                ...           2 years ago
  • 0.14.0-alpha.2b5dd4de                                ...           2 years ago
  • 0.14.0-alpha.65c5da61                                ...           2 years ago
  • 0.14.0-alpha.12824a93                                ...           2 years ago
  • 0.14.0-alpha.7a8564cf                                ...           2 years ago
  • 0.14.0-alpha.217d012f                                ...           2 years ago
  • 0.14.0-alpha.3ba697be                                ...           2 years ago
  • 0.14.0-alpha.e0b152f9                                ...           2 years ago
  • 0.14.0-alpha.3b5bda17                                ...           2 years ago
  • 0.14.0-alpha.d8402d86                                ...           2 years ago
  • 0.14.0-alpha.f29bb497                                ...           2 years ago
  • 0.14.0-alpha.a7d6cc1b                                ...           2 years ago
  • 0.14.0-alpha.365ebd86                                ...           2 years ago
  • 0.14.0-alpha.600d2aab                                ...           2 years ago
  • 0.14.0-alpha.d3681d44                                ...           2 years ago
  • 0.14.0-alpha.21950c91                                ...           2 years ago
  • 0.14.0-alpha.a5b572ed                                ...           2 years ago
  • 0.14.0-alpha.10dfa501                                ...           2 years ago
  • 0.14.0-alpha.8e19c3fb                                ...           2 years ago
  • 0.14.0-alpha.932a4f69                                ...           2 years ago
  • 0.14.0-alpha.08d3f8ea                                ...           2 years ago
  • 0.14.0-alpha.079e17f5                                ...           2 years ago
  • 0.14.0-alpha.667411c7                                ...           2 years ago
  • 0.14.0-alpha.a9096b1b                                ...           2 years ago
  • 0.14.0-alpha.0bf44189                                ...           2 years ago
  • 0.14.0-alpha.7c111b43                                ...           2 years ago
  • 0.14.0-alpha.72564d2a                                ...           2 years ago
  • 0.14.0-alpha.197bcfb7                                ...           2 years ago
  • 0.14.0-alpha.69d49fc2                                ...           2 years ago
  • 0.14.0-alpha.5591e383                                ...           2 years ago
  • 0.14.0-alpha.e90b63a5                                ...           2 years ago
  • 0.14.0-alpha.cfc8fe47                                ...           2 years ago
  • 0.14.0-alpha.150a7582                                ...           2 years ago
  • 0.14.0-alpha.0c572152                                ...           2 years ago
  • 0.14.0-alpha.45c04164                                ...           2 years ago
  • 0.14.0-alpha.4c605fc9                                ...           2 years ago
  • 0.14.0-alpha.12b4fe0e                                ...           2 years ago
  • 0.14.0-alpha.6d918651                                ...           2 years ago
  • 0.14.0-alpha.cd9a7e57                                ...           2 years ago
  • 0.14.0-alpha.2e1219b8                                ...           2 years ago
  • 0.14.0-alpha.31f55221                                ...           2 years ago
  • 0.14.0-alpha.7cc612f8                                ...           2 years ago
  • 0.14.0-alpha.0292b740                                ...           2 years ago
  • 0.14.0-alpha.58a2c883                                ...           2 years ago
  • 0.14.0-alpha.8c647ccd                                ...           2 years ago
  • 0.14.0-alpha.b4492c37                                ...           2 years ago
  • 0.14.0-alpha.13706952                                ...           2 years ago
  • 0.14.0-alpha.42a7054a                                ...           2 years ago
  • 0.14.0-alpha.7537dfee                                ...           2 years ago
  • 0.14.0-alpha.5aabe967                                ...           2 years ago
  • 0.14.0-alpha.92ec3c00                                ...           2 years ago
  • 0.14.0-alpha.753cf9d2                                ...           2 years ago
  • 0.14.0-alpha.3861680e                                ...           2 years ago
  • 0.14.0-alpha.6e18acb1                                ...           2 years ago
  • 0.13.0                                ...           2 years ago
  • 0.13.0-alpha.70def5f8                                ...           2 years ago
  • 0.13.0-alpha.612fa4cb                                ...           2 years ago
  • 0.13.0-alpha.3fc4ec09                                ...           2 years ago
  • 0.13.0-alpha.898ab460                                ...           2 years ago
  • 0.13.0-alpha.e2710037                                ...           2 years ago
  • 0.13.0-alpha.fb93ced7                                ...           2 years ago
  • 0.13.0-alpha.ca932b4e                                ...           2 years ago
  • 0.13.0-alpha.43b5774c                                ...           2 years ago
  • 0.13.0-alpha.f7c23626                                ...           2 years ago
  • 0.13.0-alpha.31a499db                                ...           2 years ago
  • 0.13.0-alpha.fa30b773                                ...           2 years ago
  • 0.13.0-alpha.576fc71f                                ...           2 years ago
  • 0.13.0-alpha.bff9b6a4                                ...           2 years ago
  • 0.13.0-alpha.4466f6e3                                ...           2 years ago
  • 0.13.0-alpha.5bbf4d4f                                ...           2 years ago
  • 0.13.0-alpha.c4a47fc3                                ...           2 years ago
  • 0.13.0-alpha.13cefbdd                                ...           2 years ago
  • 0.13.0-alpha.4bf4aa96                                ...           2 years ago
  • 0.13.0-alpha.e54c047f                                ...           2 years ago
  • 0.13.0-alpha.68753636                                ...           2 years ago
  • 0.13.0-alpha.c0fdf220                                ...           2 years ago
  • 0.13.0-alpha.42376d8c                                ...           2 years ago
  • 0.13.0-alpha.f6ccc34c                                ...           2 years ago
  • 0.13.0-alpha.9a8a0654                                ...           2 years ago
  • 0.13.0-alpha.41be2362                                ...           2 years ago
  • 0.13.0-alpha.96742667                                ...           2 years ago
  • 0.13.0-alpha.a8fa20a9                                ...           2 years ago
  • 0.13.0-alpha.053963c9                                ...           2 years ago
  • 0.13.0-alpha.75065061                                ...           2 years ago
  • 0.13.0-alpha.8dba4aeb                                ...           2 years ago
  • 0.13.0-alpha.a5a7962f                                ...           2 years ago
  • 0.13.0-alpha.1036df2c                                ...           2 years ago
  • 0.13.0-alpha.dae974ff                                ...           2 years ago
  • 0.13.0-alpha.fe7f3e8e                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (1)
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |