Skip to content
Permalink
Browse files

Ensure all examples are MIT licensed (#16691)

  • Loading branch information
Timer committed Aug 30, 2020
1 parent d6188a8 commit f17d435166727a06ee982b03d0ff87f9fd7a40b3
Showing with 296 additions and 214 deletions.
  1. +16 −0 check-examples.sh
  2. +0 −13 check-git-ignore.sh
  3. +1 −1 examples/active-class-name/package.json
  4. +1 −1 examples/amp-first/package.json
  5. +1 −1 examples/amp-story/package.json
  6. +1 −1 examples/amp/package.json
  7. +1 −1 examples/analyze-bundles/package.json
  8. +1 −1 examples/api-routes-apollo-server-and-client-auth/package.json
  9. +1 −1 examples/api-routes-apollo-server-and-client/package.json
  10. +1 −1 examples/api-routes-apollo-server/package.json
  11. +1 −1 examples/api-routes-cors/package.json
  12. +1 −1 examples/api-routes-graphql/package.json
  13. +1 −1 examples/api-routes-middleware/package.json
  14. +1 −1 examples/api-routes-rest/package.json
  15. +1 −1 examples/api-routes/package.json
  16. +1 −1 examples/basic-css/package.json
  17. +1 −1 examples/basic-export/package.json
  18. +2 −1 examples/blog-starter-typescript/package.json
  19. +2 −1 examples/blog-starter/package.json
  20. +1 −1 examples/catch-all-routes/package.json
  21. +2 −1 examples/cms-agilitycms/package.json
  22. +2 −1 examples/cms-buttercms/package.json
  23. +2 −1 examples/cms-contentful/package.json
  24. +2 −1 examples/cms-cosmic/package.json
  25. +2 −1 examples/cms-datocms/package.json
  26. +2 −1 examples/cms-graphcms/package.json
  27. +2 −1 examples/cms-kontent/package.json
  28. +2 −1 examples/cms-prismic/package.json
  29. +2 −1 examples/cms-sanity/package.json
  30. +2 −1 examples/cms-storyblok/package.json
  31. +2 −1 examples/cms-strapi/package.json
  32. +2 −1 examples/cms-takeshape/package.json
  33. +2 −1 examples/cms-wordpress/package.json
  34. +2 −1 examples/custom-routes-proxying/package.json
  35. +2 −1 examples/custom-server-actionhero/package.json
  36. +2 −1 examples/custom-server-express/package.json
  37. +2 −1 examples/custom-server-fastify/package.json
  38. +2 −1 examples/custom-server-hapi/package.json
  39. +2 −1 examples/custom-server-koa/package.json
  40. +2 −1 examples/custom-server-polka/package.json
  41. +2 −1 examples/custom-server-typescript/package.json
  42. +2 −1 examples/custom-server/package.json
  43. +1 −1 examples/dynamic-routing/package.json
  44. +1 −1 examples/environment-variables/package.json
  45. +1 −1 examples/gh-pages/package.json
  46. +1 −1 examples/head-elements/package.json
  47. +1 −1 examples/hello-world/package.json
  48. +1 −1 examples/layout-component/package.json
  49. +1 −1 examples/nested-components/package.json
  50. +2 −1 examples/progressive-render/package.json
  51. +2 −1 examples/redirects/package.json
  52. +1 −1 examples/ssr-caching/package.json
  53. +2 −1 examples/svg-components/package.json
  54. +2 −1 examples/using-preact/package.json
  55. +1 −1 examples/using-router/package.json
  56. +2 −1 examples/with-absolute-imports/package.json
  57. +2 −1 examples/with-algolia-react-instantsearch/package.json
  58. +1 −1 examples/with-ant-design-less/package.json
  59. +2 −1 examples/with-ant-design-mobile/package.json
  60. +1 −1 examples/with-ant-design-pro-layout-less/package.json
  61. +2 −1 examples/with-ant-design/package.json
  62. +1 −1 examples/with-aphrodite/package.json
  63. +2 −1 examples/with-apollo-and-redux/package.json
  64. +1 −1 examples/with-apollo/package.json
  65. +1 −1 examples/with-app-layout/package.json
  66. +1 −1 examples/with-astroturf/package.json
  67. +2 −1 examples/with-atlaskit/package.json
  68. +1 −1 examples/with-aws-amplify-typescript/package.json
  69. +1 −1 examples/with-aws-amplify/package.json
  70. +1 −1 examples/with-carbon-components/package.json
  71. +1 −1 examples/with-cerebral/package.json
  72. +2 −1 examples/with-chakra-ui/package.json
  73. +1 −1 examples/with-context-api/package.json
  74. +2 −1 examples/with-cookie-auth-fauna/package.json
  75. +1 −1 examples/with-custom-babel-config/package.json
  76. +1 −1 examples/with-custom-reverse-proxy/package.json
  77. +1 −1 examples/with-cxs/package.json
  78. +1 −1 examples/with-docker/package.json
  79. +1 −1 examples/with-draft-js/package.json
  80. +1 −1 examples/with-dynamic-app-layout/package.json
  81. +1 −1 examples/with-dynamic-import/package.json
  82. +2 −1 examples/with-electron-typescript/package.json
  83. +2 −1 examples/with-electron/package.json
  84. +1 −1 examples/with-emotion-11/package.json
  85. +1 −1 examples/with-emotion/package.json
  86. +1 −1 examples/with-env-from-next-config-js/package.json
  87. +2 −1 examples/with-expo-typescript/package.json
  88. +2 −1 examples/with-expo/package.json
  89. +2 −1 examples/with-fela/package.json
  90. +1 −1 examples/with-filbert/package.json
  91. +2 −1 examples/with-firebase-authentication/package.json
  92. +2 −1 examples/with-firebase-cloud-messaging/package.json
  93. +2 −1 examples/with-firebase-hosting/package.json
  94. +1 −1 examples/with-framer-motion/package.json
  95. +1 −1 examples/with-glamor/package.json
  96. +2 −1 examples/with-google-analytics-amp/package.json
  97. +2 −1 examples/with-google-analytics/package.json
  98. +2 −1 examples/with-graphql-faunadb/package.json
  99. +1 −1 examples/with-graphql-hooks/package.json
  100. +1 −1 examples/with-graphql-react/package.json
  101. +1 −1 examples/with-grommet/package.json
  102. +1 −1 examples/with-http2/package.json
  103. +1 −1 examples/with-i18n-rosetta/package.json
  104. +2 −1 examples/with-iron-session/package.json
  105. +2 −1 examples/with-jest/package.json
  106. +1 −1 examples/with-kea/package.json
  107. +1 −1 examples/with-linaria/package.json
  108. +1 −1 examples/with-lingui/package.json
  109. +1 −1 examples/with-loading/package.json
  110. +1 −1 examples/with-magic/package.json
  111. +1 −1 examples/with-mdx/package.json
  112. +1 −1 examples/with-mobx-react-lite/package.json
  113. +1 −1 examples/with-mobx-state-tree-typescript/package.json
  114. +1 −1 examples/with-mobx-state-tree/package.json
  115. +1 −1 examples/with-mobx/package.json
  116. +2 −1 examples/with-mocha/package.json
  117. +2 −1 examples/with-monaco-editor/package.json
  118. +1 −1 examples/with-mongodb-mongoose/package.json
  119. +1 −1 examples/with-netlify-cms/package.json
  120. +1 −1 examples/with-next-auth/package.json
  121. +2 −1 examples/with-next-css/package.json
  122. +2 −1 examples/with-next-less/package.json
  123. +2 −1 examples/with-next-offline/package.json
  124. +1 −1 examples/with-next-page-transitions/package.json
  125. +2 −1 examples/with-next-sass/package.json
  126. +1 −1 examples/with-next-seo/package.json
  127. +2 −1 examples/with-next-translate/package.json
  128. +1 −1 examples/with-orbit-components/package.json
  129. +1 −1 examples/with-overmind/package.json
  130. +1 −1 examples/with-passport-and-next-connect/package.json
  131. +1 −1 examples/with-passport/package.json
  132. +1 −1 examples/with-patternfly/package.json
  133. +2 −1 examples/with-polyfills/package.json
  134. +2 −1 examples/with-portals-ssr/package.json
  135. +2 −1 examples/with-portals/package.json
  136. +1 −1 examples/with-prefetching/package.json
  137. +1 −1 examples/with-quill-js/package.json
  138. +2 −1 examples/with-rbx-bulma-pro/package.json
  139. +1 −1 examples/with-react-ga/package.json
  140. +1 −1 examples/with-react-helmet/package.json
  141. +1 −1 examples/with-react-intl/package.json
  142. +1 −1 examples/with-react-jss/package.json
  143. +1 −1 examples/with-react-md-typescript/package.json
  144. +1 −1 examples/with-react-md/package.json
  145. +1 −1 examples/with-react-multi-carousel/package.json
  146. +2 −1 examples/with-react-native-web/package.json
  147. +1 −1 examples/with-react-relay-network-modern/package.json
  148. +2 −1 examples/with-react-toolbox/package.json
  149. +2 −1 examples/with-reactstrap/package.json
  150. +1 −1 examples/with-realm-web/package.json
  151. +1 −1 examples/with-reason-relay/package.json
  152. +1 −1 examples/with-reasonml-todo/package.json
  153. +1 −1 examples/with-reasonml/package.json
  154. +2 −1 examples/with-rebass/package.json
  155. +1 −1 examples/with-recoil/package.json
  156. +1 −1 examples/with-redux-code-splitting/package.json
  157. +1 −1 examples/with-redux-observable/package.json
  158. +1 −1 examples/with-redux-persist/package.json
  159. +1 −1 examples/with-redux-saga/package.json
  160. +1 −1 examples/with-redux-thunk/package.json
  161. +1 −1 examples/with-redux-toolkit/package.json
  162. +1 −1 examples/with-redux-wrapper/package.json
  163. +1 −1 examples/with-redux/package.json
  164. +1 −1 examples/with-reflux/package.json
  165. +1 −1 examples/with-relay-modern/package.json
  166. +1 −1 examples/with-rematch/package.json
  167. +1 −1 examples/with-route-as-modal/package.json
  168. +2 −1 examples/with-segment-analytics/package.json
  169. +1 −1 examples/with-semantic-ui/package.json
  170. +1 −1 examples/with-sentry/package.json
  171. +1 −1 examples/with-shallow-routing/package.json
  172. +2 −1 examples/with-slate/package.json
  173. +2 −1 examples/with-static-export/package.json
  174. +2 −1 examples/with-stencil/package.json
  175. +2 −1 examples/with-stitches-styled/package.json
  176. +2 −1 examples/with-stitches/package.json
  177. +2 −1 examples/with-stomp/package.json
  178. +1 −1 examples/with-storybook/package.json
  179. +1 −1 examples/with-strict-csp/package.json
  180. +1 −1 examples/with-stripe-typescript/package.json
  181. +1 −1 examples/with-style-sheet/package.json
  182. +1 −1 examples/with-styled-components-rtl/package.json
  183. +1 −1 examples/with-styled-components/package.json
  184. +1 −1 examples/with-styled-jsx-plugins/package.json
  185. +1 −1 examples/with-styled-jsx-scss/package.json
  186. +2 −1 examples/with-styletron/package.json
  187. +1 −1 examples/with-tesfy/package.json
  188. +2 −1 examples/with-three-js/package.json
  189. +1 −1 examples/with-typescript-graphql/package.json
  190. +1 −1 examples/with-typescript-styled-components/package.json
  191. +1 −1 examples/with-typescript/package.json
  192. +1 −1 examples/with-typestyle/package.json
  193. +2 −1 examples/with-unstated/package.json
  194. +2 −1 examples/with-userbase/package.json
  195. +1 −1 examples/with-videojs/package.json
  196. +2 −1 examples/with-web-worker/package.json
  197. +2 −1 examples/with-webassembly/package.json
  198. +1 −1 examples/with-webpack-bundle-size-analyzer/package.json
  199. +1 −1 examples/with-why-did-you-render/package.json
  200. +1 −1 examples/with-xstate/package.json
  201. +2 −1 examples/with-yarn-workspaces/package.json
  202. +1 −1 examples/with-zeit-fetch/package.json
  203. +2 −1 examples/with-zones/package.json
@@ -0,0 +1,16 @@
#!/bin/bash

cd `dirname $0`

for folder in examples/* ; do
cp -n packages/create-next-app/templates/default/gitignore $folder/.gitignore;
if [ -f "$folder/package.json" ]; then
cat $folder/package.json | jq '.license = "MIT"' | sponge $folder/package.json
fi
done;

if [[ ! -z $(git status -s) ]];then
echo "Detected changes"
git status
exit 1
fi

This file was deleted.

@@ -12,5 +12,5 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -11,5 +11,5 @@
"react": "^16.10.2",
"react-dom": "^16.10.2"
},
"license": "ISC"
"license": "MIT"
}
@@ -11,5 +11,5 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -11,5 +11,5 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -15,5 +15,5 @@
"react": "^16.8.0",
"react-dom": "^16.8.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -18,5 +18,5 @@
"react-dom": "^16.7.0",
"uuid": "8.1.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -15,5 +15,5 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -14,5 +14,5 @@
"react": "16.13.1",
"react-dom": "16.13.1"
},
"license": "ISC"
"license": "MIT"
}
@@ -12,5 +12,5 @@
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"license": "ISC"
"license": "MIT"
}
@@ -14,5 +14,5 @@
"react-dom": "16.13.1",
"swr": "0.1.18"
},
"license": "ISC"
"license": "MIT"
}
@@ -13,5 +13,5 @@
"react-dom": "^16.8.6",
"swr": "0.1.18"
},
"license": "ISC"
"license": "MIT"
}
@@ -12,5 +12,5 @@
"react-dom": "^16.8.6",
"swr": "^0.1.18"
},
"license": "ISC"
"license": "MIT"
}
@@ -12,5 +12,5 @@
"react-dom": "^16.8.6",
"swr": "0.1.18"
},
"license": "ISC"
"license": "MIT"
}
@@ -11,5 +11,5 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -11,5 +11,5 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -26,5 +26,6 @@
"@types/react-dom": "^16.9.8",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.4.0"
}
},
"license": "MIT"
}
@@ -19,5 +19,6 @@
"devDependencies": {
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.4.0"
}
},
"license": "MIT"
}
@@ -6,7 +6,7 @@
"build": "next build",
"start": "next start"
},
"license": "ISC",
"license": "MIT",
"dependencies": {
"next": "latest",
"react": "^16.12.0",
@@ -23,5 +23,6 @@
"@fullhuman/postcss-purgecss": "^2.1.0",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.2.0"
}
},
"license": "MIT"
}
@@ -19,5 +19,6 @@
"postcss-flexbugs-fixes": "4.2.1",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.4.6"
}
},
"license": "MIT"
}
@@ -21,5 +21,6 @@
"contentful-import": "^7.7.12",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.2.0"
}
},
"license": "MIT"
}
@@ -23,5 +23,6 @@
"postcss-flexbugs-fixes": "4.2.1",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.4.6"
}
},
"license": "MIT"
}
@@ -20,5 +20,6 @@
"postcss-flexbugs-fixes": "4.2.1",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.4.6"
}
},
"license": "MIT"
}
@@ -17,5 +17,6 @@
"postcss-flexbugs-fixes": "^4.2.1",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.4.6"
}
},
"license": "MIT"
}
@@ -22,5 +22,6 @@
"postcss-flexbugs-fixes": "^4.2.1",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.7.3"
}
},
"license": "MIT"
}
@@ -19,5 +19,6 @@
"@fullhuman/postcss-purgecss": "^2.1.0",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.2.0"
}
},
"license": "MIT"
}
@@ -20,5 +20,6 @@
"@fullhuman/postcss-purgecss": "^2.1.0",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.2.0"
}
},
"license": "MIT"
}
@@ -20,5 +20,6 @@
"postcss-flexbugs-fixes": "4.2.1",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.4.6"
}
},
"license": "MIT"
}
@@ -20,5 +20,6 @@
"postcss-flexbugs-fixes": "4.2.1",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.4.6"
}
},
"license": "MIT"
}
@@ -20,5 +20,6 @@
"@fullhuman/postcss-purgecss": "^2.1.0",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.2.0"
}
},
"license": "MIT"
}
@@ -17,5 +17,6 @@
"postcss-flexbugs-fixes": "4.2.1",
"postcss-preset-env": "^6.7.0",
"tailwindcss": "^1.4.6"
}
},
"license": "MIT"
}
@@ -10,5 +10,6 @@
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
}
},
"license": "MIT"
}
@@ -12,5 +12,6 @@
},
"scripts": {
"start": "actionhero start"
}
},
"license": "MIT"
}
@@ -12,5 +12,6 @@
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
}
},
"license": "MIT"
}
@@ -12,5 +12,6 @@
"next": "latest",
"react": "^16.13.0",
"react-dom": "^16.13.0"
}
},
"license": "MIT"
}
@@ -12,5 +12,6 @@
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
}
},
"license": "MIT"
}
@@ -13,5 +13,6 @@
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
}
},
"license": "MIT"
}
@@ -12,5 +12,6 @@
"polka": "0.5.1",
"react": "^16.7.0",
"react-dom": "^16.7.0"
}
},
"license": "MIT"
}
@@ -19,5 +19,6 @@
"nodemon": "^2.0.4",
"ts-node": "^8.10.2",
"typescript": "4.0"
}
},
"license": "MIT"
}
@@ -10,5 +10,6 @@
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1"
}
},
"license": "MIT"
}
@@ -6,7 +6,7 @@
"build": "next build",
"start": "next start"
},
"license": "ISC",
"license": "MIT",
"dependencies": {
"next": "latest",
"react": "^16.13.1",
@@ -11,5 +11,5 @@
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"license": "ISC"
"license": "MIT"
}
@@ -13,7 +13,7 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"license": "ISC",
"license": "MIT",
"devDependencies": {
"babel-plugin-transform-define": "^1.3.0"
}
@@ -11,5 +11,5 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -11,5 +11,5 @@
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"license": "ISC"
"license": "MIT"
}
@@ -11,5 +11,5 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -11,5 +11,5 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"license": "ISC"
"license": "MIT"
}
@@ -10,5 +10,6 @@
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
}
},
"license": "MIT"
}

0 comments on commit f17d435

Please sign in to comment.