Skip to content

Commit

Permalink
Merge be703a2 into 8235908
Browse files Browse the repository at this point in the history
  • Loading branch information
datakurre committed Jul 24, 2019
2 parents 8235908 + be703a2 commit 2bcd80f
Show file tree
Hide file tree
Showing 7 changed files with 384 additions and 377 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -53,5 +53,7 @@ node_modules/
.ipynb_checkpoints
.jupyter
.jupyterlab
.yalc
yalc.lock
/gatsby-node.js
/utils.js
9 changes: 3 additions & 6 deletions Makefile
Expand Up @@ -54,14 +54,10 @@ watch-plugin:
watch-test: node_modules
jest --watch src

.PHONY: watch-tests
watch-tests:
nodemon -w gatsby-node.js \
--exec "$(MAKE) -C demo watch"

.PHONY: watch
watch: node_modules
make -j watch-plugin watch-tests
nodemon --verbose -w src \
--exec "yalc publish && $(MAKE) -C demo watch"

%:
$(MAKE) -C demo $*
Expand All @@ -72,3 +68,4 @@ gatsby-node.js: node_modules $(SOURCES)
node_modules: package.json
yarn install
touch node_modules
yalc publish
7 changes: 1 addition & 6 deletions demo/Makefile
Expand Up @@ -26,6 +26,7 @@ clean:
.PHONY: develop
develop: node_modules
docker-compose up -d
yalc link gatsby-source-plone
gatsby develop

.PHONY: export-fixture
Expand Down Expand Up @@ -102,12 +103,6 @@ pyvenv: requirements.txt

node_modules: package.json
yarn install
$(RM) -r node_modules/gatsby-source-plone
mkdir node_modules/gatsby-source-plone
ln -sf ../../../package.json node_modules/gatsby-source-plone
ln -sf ../../../index.js node_modules/gatsby-source-plone
ln -sf ../../../gatsby-node.js node_modules/gatsby-source-plone
ln -sf ../../../utils.js node_modules/gatsby-source-plone

src/styles/_typography.scss:
node -e "console.log(new require('typography')(require('typography-theme-twin-peaks')).toString())" \
Expand Down
60 changes: 9 additions & 51 deletions demo/package.json
Expand Up @@ -3,46 +3,15 @@
"description": "GtsbSrcPlone documentation",
"version": "1.0.0",
"author": "Asko Soukka <asko.soukka@iki.fi>",
"babel": {
"presets": [
[
"@babel/preset-env",
{
"useBuiltIns": "usage",
"corejs": 2
}
],
[
"@babel/preset-react",
{
"useBuiltIns": true,
"pragma": "React.createElement"
}
]
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-syntax-dynamic-import",
[
"@babel/plugin-transform-runtime",
{
"helpers": true,
"regenerator": true
}
]
]
},
"dependencies": {
"bootstrap": "^4.3.1",
"dotenv": "^8.0.0",
"gatsby": "2.13.8",
"gatsby": "2.13.35",
"gatsby-image": "^2.2.6",
"gatsby-plugin-react-helmet": "^3.1.2",
"gatsby-plugin-sass": "^2.1.3",
"gatsby-plugin-sharp": "^2.2.8",
"gatsby-source-filesystem": "^2.1.5",
"gatsby-source-plone": "^0.1.0",
"gatsby-plugin-sharp": "^2.2.9",
"gatsby-source-filesystem": "^2.1.6",
"gatsby-source-plone": "https://github.com/collective/gatsby-source-plone.git#master",
"gatsby-transformer-sharp": "^2.2.4",
"node-sass": "^4.12.0",
"react": "^16.8.6",
Expand All @@ -51,26 +20,15 @@
"react-icons": "^3.7.0",
"react-redux": "^7.1.0",
"react-serialize": "^0.2.0",
"redux": "^4.0.1"
"redux": "^4.0.1",
"typography": "^0.16.19",
"typography-theme-twin-peaks": "^0.16.19"
},
"license": "MIT",
"main": "n/a",
"devDependencies": {
"@babel/cli": "^7.5.0",
"@babel/core": "^7.5.0",
"@babel/plugin-proposal-class-properties": "^7.5.0",
"@babel/plugin-proposal-object-rest-spread": "^7.5.1",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.5.0",
"@babel/preset-env": "^7.5.0",
"@babel/preset-react": "^7.0.0",
"@babel/runtime": "^7.0.0",
"babel-core": "^7.0.0-bridge.0",
"dotenv": "^8.0.0",
"prettier": "^1.18.2",
"typography": "^0.16.19",
"typography-theme-twin-peaks": "^0.16.19"
},
"resolutions": {
"babel-core": "7.0.0-bridge.0"
"yalc": "^1.0.0-pre.32"
}
}

0 comments on commit 2bcd80f

Please sign in to comment.