Skip to content

Commit 1334f92

Browse files
committed
chore: fail integration in build, so add setup-opal.js
1 parent 7170fd5 commit 1334f92

File tree

4 files changed

+13
-10
lines changed

4 files changed

+13
-10
lines changed

.circleci/config.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ jobs:
8888
command: |
8989
google-chrome --version
9090
npx --no -- chromedriver --version
91-
npm run setup-opal
9291
npm run test:integration -- --reporters="default" --reporters="jest-junit"
9392
- store_artifacts:
9493
path: coverage

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,3 @@ npm-*
1717
# Generated translation files
1818
/translations
1919
/locale
20-
21-
# generated opal files
22-
/static/javascripts/setup-opal.js

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,21 +13,21 @@
1313
"scripts": {
1414
"setup-opal": "node ./scripts/make-setup-opal.js",
1515
"setup-scratch-vm": "cd node_modules/scratch-vm && npm install && $(npm bin)/webpack --colors --bail --silent",
16-
"build": "npm run clean && npm run setup-opal && webpack --colors --bail",
17-
"clean": "rimraf ./static/javascripts/setup-opal.js && rimraf ./build && mkdirp build && rimraf ./dist && mkdirp dist",
16+
"build": "npm run clean && webpack --colors --bail",
17+
"clean": "rimraf ./build && mkdirp build && rimraf ./dist && mkdirp dist",
1818
"deploy": "touch build/.nojekyll && gh-pages -t -d build -m \"build: build for $(git log --pretty=format:%H -n1) [skip ci]\"",
1919
"deploy:smalruby.app": "rimraf node_modules/gh-pages/.cache && echo \"smalruby.app\" > build/CNAME && touch build/.nojekyll && gh-pages -t -d build -m \"build: build for $(git log --pretty=format:%H -n1) [skip ci] \"",
2020
"prepare": "path-exists .git && husky install || echo 'not installed husky because .git does not exist'",
2121
"prune": "./prune-gh-pages.sh",
2222
"i18n:push": "tx-push-src scratch-editor interface translations/en.json",
2323
"i18n:src": "rimraf ./translations/messages/src && babel src > tmp.js && rimraf tmp.js && build-i18n-src ./translations/messages/src ./translations/ && npm run i18n:push",
24-
"start": "npm run setup-opal && webpack-dev-server",
24+
"start": "webpack-dev-server",
2525
"test": "npm run test:lint && npm run test:unit && npm run build && npm run test:integration",
26-
"test:integration": "npm run setup-opal && jest --maxWorkers=2 test[\\\\/]integration",
26+
"test:integration": "jest --maxWorkers=2 test[\\\\/]integration",
2727
"test:lint": "eslint . --ext .js,.jsx",
28-
"test:unit": "npm run setup-opal && jest test[\\\\/]unit",
28+
"test:unit": "jest test[\\\\/]unit",
2929
"test:smoke": "jest --runInBand test[\\\\/]smoke",
30-
"watch": "npm run setup-opal && webpack --colors --watch"
30+
"watch": "webpack --colors --watch"
3131
},
3232
"config": {
3333
"commitizen": {

static/javascripts/setup-opal.js

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)