Skip to content

Commit 32d18bf

Browse files
authored
Merge pull request #197 from smalruby/merge/scratch-gui
scratch guiをマージしました
2 parents 5f9be47 + dbf45fd commit 32d18bf

File tree

487 files changed

+23690
-3671
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

487 files changed

+23690
-3671
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
last 3 versions
2+
Safari >= 8
3+
iOS >= 8

.travis.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
language: node_js
22
sudo: required
3-
dist: trusty
3+
dist: xenial
44
addons:
55
chrome: stable
66
node_js:
77
- 10
88
env:
99
global:
10+
- CHROMEDRIVER_VERSION=LATEST
1011
- NODE_ENV=production
11-
- SMOKE_URL=http://smalruby.jp/smalruby3-gui/
12+
- NODE_OPTIONS=--max-old-space-size=7250
1213
- NPM_TAG=latest
1314
cache:
1415
directories:
1516
- node_modules
17+
before_install:
18+
# package-lock.json was introduced in npm@5
19+
- '[[ $(node -v) =~ ^v9.*$ ]] || npm install -g npm@latest' # skipped when using node 9
1620
install:
1721
- npm --production=false install
1822
- npm --production=false update
@@ -27,4 +31,4 @@ deploy:
2731
branch:
2832
- develop
2933
skip_cleanup: true
30-
script: npm run deploy -- -x -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
34+
script: npm run deploy -- -x -e $TRAVIS_BRANCH -r https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git

README.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,66 @@ If you want to watch the browser as it runs the test, rather than running headle
9494
USE_HEADLESS=no $(npm bin)/jest --runInBand test/integration/backpack.test.js
9595
```
9696

97+
## Troubleshooting
98+
99+
### Ignoring optional dependencies
100+
101+
When running `npm install`, you can get warnings about optionsl dependencies:
102+
103+
```
104+
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
105+
npm WARN notsup Not compatible with your operating system or architecture: [email protected]
106+
```
107+
108+
You can suppress them by adding the `no-optional` switch:
109+
110+
```
111+
npm install --no-optional
112+
```
113+
114+
Further reading: [Stack Overflow](https://stackoverflow.com/questions/36725181/not-compatible-with-your-operating-system-or-architecture-fsevents1-0-11)
115+
116+
### Resolving dependencies
117+
118+
When installing for the first time, you can get warnings which need to be resolved:
119+
120+
```
121+
npm WARN [email protected] requires a peer of babel-eslint@^8.0.1 but none was installed.
122+
npm WARN [email protected] requires a peer of eslint@^4.0 but none was installed.
123+
npm WARN [email protected] requires a peer of react-intl-redux@^0.7 but none was installed.
124+
npm WARN [email protected] requires a peer of react-responsive@^4 but none was installed.
125+
```
126+
127+
You can check which versions are available:
128+
129+
```
130+
npm view react-intl-redux@0.* version
131+
```
132+
133+
You will neet do install the required version:
134+
135+
```
136+
npm install --no-optional --save-dev react-intl-redux@^0.7
137+
```
138+
139+
The dependency itself might have more missing dependencies, which will show up like this:
140+
141+
```
142+
user@machine:~/sources/scratch/scratch-gui (491-translatable-library-objects)$ npm install --no-optional --save-dev react-intl-redux@^0.7
143+
[email protected] /media/cuideigin/Linux/sources/scratch/scratch-gui
144+
145+
└── UNMET PEER DEPENDENCY [email protected]
146+
```
147+
148+
You will need to install those as well:
149+
150+
```
151+
npm install --no-optional --save-dev react-responsive@^5.0.0
152+
```
153+
154+
Further reading: [Stack Overflow](https://stackoverflow.com/questions/46602286/npm-requires-a-peer-of-but-all-peers-are-in-package-json-and-node-modules)
155+
156+
97157
## Publishing to GitHub Pages
98158

99159
see Scratch's document: [Read the wiki for a step-by-step guide.](https://github.com/LLK/scratch-gui/wiki/Publishing-to-GitHub-Pages)

0 commit comments

Comments
 (0)