Skip to content

Instantly share code, notes, and snippets.

@zgordon
Last active February 20, 2018 18:06
Show Gist options
  • Save zgordon/5360653817a43dd6d9d45ce51960cfaf to your computer and use it in GitHub Desktop.
Save zgordon/5360653817a43dd6d9d45ce51960cfaf to your computer and use it in GitHub Desktop.
An example package.json for a Gutenberg block plugin
{
"name": "ex6-events",
"version": "1.0.0",
"scripts": {
"build": "cross-env BABEL_ENV=default NODE_ENV=production webpack",
"dev": "cross-env BABEL_ENV=default webpack --watch"
},
"browserslist": [
"extends @wordpress/browserslist-config"
],
"dependencies": {
"@wordpress/browserslist-config": "^2.1.0",
"classnames": "^2.2.5"
},
"devDependencies": {
"@wordpress/babel-preset-default": "^1.1.0",
"autoprefixer": "^7.1.6",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-jsx": "^6.24.1",
"babel-plugin-transform-runtime": "^6.23.0",
"cross-env": "^5.1.1",
"extract-text-webpack-plugin": "^3.0.2",
"node-sass": "^4.7.2",
"postcss-loader": "^2.0.9",
"raw-loader": "^0.5.1",
"sass-loader": "^6.0.6",
"webpack": "^3.8.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment