Skip to content

Commit

Permalink
V6 lerna (#804)
Browse files Browse the repository at this point in the history
* Move to lerna

* Examples are now packages

* Lerna import react-static-plugin-emotion

* prepend example packages with react-static

* Lerna import react-static-plugin-styled-components

* Lerna import react-static-plugin-sass

* Lerna import react-static-plugin-preact

* Fix: example-contentful package.json version

* Update all example dependencies

* Move babelrc to react-static core

* Move docs to root

* Move repo files back to root

* Fix documentation scripts
  • Loading branch information
tannerlinsley committed Oct 8, 2018
1 parent f8c0b63 commit b263c17
Show file tree
Hide file tree
Showing 722 changed files with 46,446 additions and 3,639 deletions.
4 changes: 2 additions & 2 deletions .github/issue_template.md
Expand Up @@ -33,9 +33,9 @@ If you answered "No":

### Environment

1. `react-static -v`:
1. `react-static -V`:
2. `node -v`:
3. `yarn --version or npm -v`:
3. `npm -v`:
4. Operating system:
5. Browser and version (if relevant):

Expand Down
22 changes: 0 additions & 22 deletions examples/markdown/package.json

This file was deleted.

21 changes: 0 additions & 21 deletions examples/styled-jsx/package.json

This file was deleted.

9 changes: 9 additions & 0 deletions lerna.json
@@ -0,0 +1,9 @@
{
"packages": [
"packages/*"
],
"version": "independent",
"npmClient": "yarn",
"registry": "https://registry.npmjs.org/",
"useWorkspaces": true
}
152 changes: 11 additions & 141 deletions package.json
@@ -1,154 +1,24 @@
{
"name": "react-static",
"description": "A progressive static site generator for React",
"version": "6.0.0-beta.25",
"license": "MIT",
"repository": "https://github.com/nozzle/react-static",
"main": "lib/index.js",
"types": "src/index.d.ts",
"engines": {
"node": ">=8.9.0"
},
"bin": {
"react-static": "./bin/react-static"
},
"private": true,
"scripts": {
"build": "rimraf lib && rimraf node_modules/react-static && babel src --out-dir lib --ignore '**/__tests__/*' --source-maps inline && yarn prepGitignore",
"start": "rimraf lib && rimraf node_modules/react-static && babel -w src --out-dir lib --ignore '**/__tests__/*' --source-maps inline ",
"release": "yarn publish",
"releaseNext": "yarn publish --tag next",
"preversion": "yarn build && yarn test",
"postversion": "git push && git push --tags",
"prepGitignore": "node scripts/prepGitignore.js",
"startDocs": "cd www && yarn start",
"publishNext": "lerna publish --npm-tag next",
"build": "lerna run 'build' --ignore react-static-example-*",
"watch": "lerna run 'watch' --ignore react-static-example-* --parallel",
"startDocs": "cd www && yarn && yarn start",
"buildDocs": "cd www && yarn && yarn build",
"buildDocsProd": "yarn build && yarn link && cd www && yarn && yarn link react-static && yarn build",
"prettier": "prettier --config .prettierrc.js {examples/*/src,node,scripts,src,www/src}/**/*.js --write",
"serveDocs": "serve www/dist -p 3000",
"test": "yarn build && yarn lint && yarn unitTest",
"lint": "eslint src test && yarn prettier",
"unitTest": "NODE_ENV=test yarn jest src",
"unitTestWatch": "NODE_ENV=test yarn jest src --watch",
"test": "lerna run test",
"test-sample-build": "yarn link && cd examples/basic && yarn && yarn link react-static && yarn build"
},
"dependencies": {
"@babel/cli": "^7.0.0",
"@babel/core": "^7.0.0",
"@babel/plugin-proposal-class-properties": "^7.0.0",
"@babel/plugin-proposal-export-default-from": "^7.0.0",
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
"@babel/plugin-syntax-dynamic-import": "^7.0.0",
"@babel/plugin-transform-destructuring": "^7.0.0",
"@babel/plugin-transform-runtime": "^7.0.0",
"@babel/preset-env": "^7.0.0",
"@babel/preset-react": "^7.0.0",
"@babel/preset-stage-0": "^7.0.0",
"@babel/register": "^7.0.0",
"@babel/runtime": "^7.0.0",
"@types/react": "^16.4.11",
"@types/react-helmet": "^5.0.7",
"@types/react-router-dom": "^4.3.0",
"autoprefixer": "^9.1.1",
"axios": "^0.18.0",
"babel-loader": "^8.0.0",
"babel-plugin-macros": "^2.4.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.15",
"babel-plugin-universal-import": "^3.0.2",
"case-sensitive-paths-webpack-plugin": "^2.1.2",
"chalk": "^2.4.1",
"chokidar": "^2.0.4",
"circular-dependency-plugin": "^5.0.2",
"commander": "^2.17.1",
"cors": "^2.8.4",
"css-loader": "^1.0.0",
"download-git-repo": "^1.1.0",
"eslint-config-react-tools": "^1.0.0",
"extract-css-chunks-webpack-plugin": "^3.1.2-beta.2",
"file-loader": "2.0.0",
"fs-extra": "^7.0.0",
"git-promise": "^0.3.1",
"glob": "^7.1.2",
"history": "^4.7.2",
"html-webpack-plugin": "^3.2.0",
"inquirer": "^6.1.0",
"inquirer-autocomplete-prompt": "^1.0.1",
"match-sorter": "^2.2.3",
"openport": "^0.0.5",
"optimize-css-assets-webpack-plugin": "^5.0.0",
"postcss-flexbugs-fixes": "^4.1.0",
"postcss-loader": "^3.0.0",
"preact": "^8.3.1",
"preact-compat": "^3.18.3",
"pretty-error": "^2.1.1",
"progress": "^2.0.0",
"prop-types": "^15.6.1",
"raf": "^3.4.0",
"raw-loader": "^0.5.1",
"react": "^16.5.2",
"react-dev-utils": "^5.0.2",
"react-dom": "^16.5.2",
"react-helmet": "^5.2.0",
"react-hot-loader": "^4.3.4",
"react-router": "^4.3.1",
"react-router-dom": "^4.3.1",
"react-universal-component": "^3.0.2",
"resolve-from": "^4.0.0",
"serve": "^10.0.0",
"shorthash": "^0.0.2",
"slash": "^2.0.0",
"socket.io": "^2.1.1",
"socket.io-client": "^2.1.1",
"style-loader": "0.23.0",
"swimmer": "^1.4.0",
"thread-loader": "^1.2.0",
"uglifyjs-webpack-plugin": "^1.3.0",
"upath": "^1.1.0",
"update-notifier": "^2.5.0",
"url-loader": "^1.1.1",
"webpack": "^4.18.0",
"webpack-bundle-analyzer": "^2.13.1",
"webpack-dev-server": "^3.1.5",
"webpack-flush-chunks": "^2.0.1",
"webpack-node-externals": "^1.7.2"
},
"devDependencies": {
"babel-core": "^7.0.0-0",
"babel-jest": "^23.6.0",
"enzyme": "^3.4.3",
"enzyme-adapter-react-16": "^1.2.0",
"enzyme-to-json": "^3.3.4",
"eslint": "^5.4.0",
"eslint-config-prettier": "^3.0.1",
"eslint-plugin-babel": "^5.1.0",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.10.0",
"husky": "^1.0.0-rc.13",
"jest": "^23.6.0",
"prettier": "1.14.2",
"rimraf": "^2.6.2"
},
"husky": {
"hooks": {
"pre-commit": "yarn prettier && git add"
}
},
"jest": {
"verbose": true,
"moduleDirectories": [
"node_modules",
"src"
],
"testRegex": "(/__tests__/.*\\.(test))\\.jsx?$",
"moduleNameMapper": {
"static.config.js": "<rootDir>/src/static/__mocks__/static.config.mock.js",
"./path/to/static.config.js": "<rootDir>/src/static/__mocks__/static.config.mock.js"
},
"setupFiles": [
"<rootDir>/setupTests.js"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
]
"workspaces": [
"packages/*"
],
"devDependencies": {
"lerna": "^3.4.1"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
21 changes: 21 additions & 0 deletions packages/react-static-example-algolia/gitignore
@@ -0,0 +1,21 @@
# dependencies
/node_modules

# testing
/coverage

# production
/dist
/tmp
/tmp

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
Expand Up @@ -11,12 +11,12 @@
},
"dependencies": {
"algoliasearch": "^3.24.11",
"axios": "^0.16.2",
"react-instantsearch": "^4.5.1",
"react-static": "^5.1.8"
"axios": "^0.18.0",
"react-instantsearch": "^5.3.1",
"react-static": "6.0.0-beta.25"
},
"devDependencies": {
"eslint-config-react-tools": "1.x.x",
"serve": "^6.1.0"
"serve": "^10.0.2"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
{
"name": "react-static-example-basic",
"name": "react-static-example-animated-routes",
"version": "1.0.1",
"main": "index.js",
"license": "MIT",
Expand All @@ -10,14 +10,14 @@
"serve": "serve dist -p 3000"
},
"dependencies": {
"axios": "^0.16.2",
"axios": "^0.18.0",
"d3-ease": "^1.0.3",
"react-move": "^2.6.0",
"react-static": "^5",
"recompose": "^0.26.0"
"react-static": "6.0.0-beta.25",
"recompose": "^0.30.0"
},
"devDependencies": {
"eslint-config-react-tools": "1.x.x",
"serve": "^6.1.0"
"serve": "^10.0.2"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -13,17 +13,17 @@
"apollo-cache-inmemory": "^1.0.0",
"apollo-client": "^2.0.1",
"apollo-link-http": "^1.1.0",
"axios": "^0.16.2",
"graphql": "^0.11.7",
"axios": "^0.18.0",
"graphql": "^14.0.2",
"graphql-tag": "^2.5.0",
"json-loader": "^0.5.7",
"react-apollo": "^2.0.0",
"react-redux": "^5.0.6",
"react-static": "^5",
"redux": "^3.7.2"
"react-static": "^6.0.0-beta.25",
"redux": "^4.0.0"
},
"devDependencies": {
"eslint-config-react-tools": "1.x.x",
"serve": "^6.1.0"
"serve": "^10.0.2"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
{
"name": "react-static-example-apollo-redux",
"name": "react-static-example-apollo",
"version": "1.0.1",
"main": "index.js",
"license": "MIT",
Expand All @@ -13,15 +13,15 @@
"apollo-cache-inmemory": "^1.0.0",
"apollo-client": "^2.0.1",
"apollo-link-http": "^1.1.0",
"axios": "^0.16.2",
"graphql": "^0.11.7",
"axios": "^0.18.0",
"graphql": "^14.0.2",
"graphql-tag": "^2.5.0",
"json-loader": "^0.5.7",
"react-apollo": "^2.0.0",
"react-static": "^5"
"react-static": "6.0.0-beta.25"
},
"devDependencies": {
"eslint-config-react-tools": "1.x.x",
"serve": "^6.1.0"
"serve": "^10.0.2"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
{
"name": "react-static-example-basic",
"name": "react-static-example-basic-prismic",
"version": "1.0.1",
"main": "index.js",
"license": "MIT",
Expand All @@ -10,12 +10,12 @@
"serve": "serve dist -p 3000"
},
"dependencies": {
"axios": "^0.16.2",
"axios": "^0.18.0",
"prismic-javascript": "^1.5.0-beta.1",
"react-static": "^5"
"react-static": "6.0.0-beta.25"
},
"devDependencies": {
"eslint-config-react-tools": "1.x.x",
"serve": "^6.1.0"
"serve": "^10.0.2"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -12,11 +12,11 @@
"serve": "serve dist -p 3000"
},
"dependencies": {
"axios": "^0.16.2",
"react-static": "^5"
"axios": "^0.18.0",
"react-static": "6.0.0-beta.25"
},
"devDependencies": {
"eslint-config-react-tools": "1.x.x",
"serve": "6"
"serve": "10.0.2"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit b263c17

Please sign in to comment.