Skip to content

Commit

Permalink
fix: reactjs demo during yarn install, fixes #145
Browse files Browse the repository at this point in the history
simply remove unused dependencies fixes this issue, but I removed
all package-lock.json / yarn.lock since the demo should always be
in sync with the codebase
  • Loading branch information
harttle committed Aug 26, 2019
1 parent 3b9fc7e commit b65df44
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 8,535 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Expand Up @@ -10,7 +10,10 @@ coverage/
# modules
node_modules/
dist/
demo/*/package-lock.json
demo/*/yarn.json

# editors
.*.swp
.vscode

6 changes: 2 additions & 4 deletions demo/browser/package.json
Expand Up @@ -8,10 +8,8 @@
},
"author": "harttle <yangjvn@126.com>",
"license": "ISC",
"devDependencies": {
"http-server": "^0.11.1"
},
"dependencies": {
"liquidjs": "^7.0.0"
"http-server": "^0.11.1",
"liquidjs": "*"
}
}
3 changes: 2 additions & 1 deletion demo/express/package.json
Expand Up @@ -10,6 +10,7 @@
"author": "harttle",
"license": "MIT",
"dependencies": {
"express": "^4.14.0"
"express": "^4.14.0",
"liquidjs": "*"
}
}
2 changes: 1 addition & 1 deletion demo/nodejs/package.json
Expand Up @@ -6,6 +6,6 @@
"start": "node index.js"
},
"dependencies": {
"liquidjs": "^7.0.0"
"liquidjs": "*"
}
}
1 change: 1 addition & 0 deletions demo/reactjs/.env
@@ -0,0 +1 @@
SKIP_PREFLIGHT_CHECK=true
4 changes: 1 addition & 3 deletions demo/reactjs/package.json
Expand Up @@ -3,10 +3,8 @@
"version": "0.1.0",
"private": true,
"dependencies": {
"dns": "^0.2.2",
"html-react-parser": "^0.4.7",
"liquidjs": "^6.0.1",
"path": "^0.12.7",
"liquidjs": "*",
"react": "^16.5.2",
"react-dom": "^16.5.2",
"react-promise": "^2.0.3",
Expand Down
2 changes: 1 addition & 1 deletion demo/reactjs/src/App.js
Expand Up @@ -3,7 +3,7 @@ import logo from './logo.svg';
import './App.css';

let path = require('path')
let Liquid = require('liquidjs');
let { Liquid } = require('liquidjs');

let config = require('./views/demo.liquid');
let pageConfig = config.toString()
Expand Down

0 comments on commit b65df44

Please sign in to comment.