mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 05:52:42 -05:00
commit
452ded76e3
3 changed files with 18 additions and 12 deletions
|
@ -6,9 +6,6 @@ node_js:
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
- node_modules
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- NODE_ENV=production
|
|
||||||
install:
|
install:
|
||||||
- sudo apt-get update && sudo apt-get install -y libcairo2-dev libpango1.0-dev libssl-dev libjpeg62-dev libgif-dev pkg-config
|
- sudo apt-get update && sudo apt-get install -y libcairo2-dev libpango1.0-dev libssl-dev libjpeg62-dev libgif-dev pkg-config
|
||||||
- npm install canvas
|
- npm install canvas
|
||||||
|
@ -35,4 +32,3 @@ deploy:
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
email: $NPM_EMAIL
|
email: $NPM_EMAIL
|
||||||
api_key: $NPM_TOKEN
|
api_key: $NPM_TOKEN
|
||||||
|
|
22
package.json
22
package.json
|
@ -11,7 +11,7 @@
|
||||||
"i18n:src": "babel src > tmp.js && rimraf tmp.js && ./scripts/build-i18n-source.js ./translations/messages/ ./translations/",
|
"i18n:src": "babel src > tmp.js && rimraf tmp.js && ./scripts/build-i18n-source.js ./translations/messages/ ./translations/",
|
||||||
"lint": "eslint . --ext .js,.jsx",
|
"lint": "eslint . --ext .js,.jsx",
|
||||||
"start": "npm run i18n:msgs && webpack-dev-server",
|
"start": "npm run i18n:msgs && webpack-dev-server",
|
||||||
"test": "npm run lint && npm run build && npm run unit",
|
"test": "npm run lint && npm run unit && NODE_ENV=production npm run build",
|
||||||
"unit": "jest",
|
"unit": "jest",
|
||||||
"watch": "webpack --progress --colors --watch"
|
"watch": "webpack --progress --colors --watch"
|
||||||
},
|
},
|
||||||
|
@ -23,8 +23,8 @@
|
||||||
"url": "git+ssh://git@github.com/LLK/scratch-paint.git"
|
"url": "git+ssh://git@github.com/LLK/scratch-paint.git"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"react": "^15",
|
"react": "^16",
|
||||||
"react-dom": "^15"
|
"react-dom": "^16"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "7.1.2",
|
"autoprefixer": "7.1.2",
|
||||||
|
@ -39,7 +39,8 @@
|
||||||
"babel-preset-react": "^6.22.0",
|
"babel-preset-react": "^6.22.0",
|
||||||
"classnames": "2.2.5",
|
"classnames": "2.2.5",
|
||||||
"css-loader": "0.28.3",
|
"css-loader": "0.28.3",
|
||||||
"enzyme": "^2.8.2",
|
"enzyme": "^3.1.0",
|
||||||
|
"enzyme-adapter-react-16": "^1.0.1",
|
||||||
"eslint": "^4.4.1",
|
"eslint": "^4.4.1",
|
||||||
"eslint-config-import": "^0.13.0",
|
"eslint-config-import": "^0.13.0",
|
||||||
"eslint-config-scratch": "^4.0.0",
|
"eslint-config-scratch": "^4.0.0",
|
||||||
|
@ -58,12 +59,13 @@
|
||||||
"postcss-loader": "^2.0.5",
|
"postcss-loader": "^2.0.5",
|
||||||
"postcss-simple-vars": "^4.0.0",
|
"postcss-simple-vars": "^4.0.0",
|
||||||
"prop-types": "^15.5.10",
|
"prop-types": "^15.5.10",
|
||||||
"react": "15.6.1",
|
"raf": "^3.4.0",
|
||||||
"react-dom": "15.6.1",
|
"react": "16.0.0",
|
||||||
"react-intl": "2.3.0",
|
"react-dom": "16.0.0",
|
||||||
|
"react-intl": "2.4.0",
|
||||||
"react-intl-redux": "0.6.0",
|
"react-intl-redux": "0.6.0",
|
||||||
"react-redux": "5.0.5",
|
"react-redux": "5.0.5",
|
||||||
"react-test-renderer": "^15.5.4",
|
"react-test-renderer": "^16.0.0",
|
||||||
"redux": "3.7.0",
|
"redux": "3.7.0",
|
||||||
"redux-mock-store": "^1.2.3",
|
"redux-mock-store": "^1.2.3",
|
||||||
"redux-throttle": "0.1.1",
|
"redux-throttle": "0.1.1",
|
||||||
|
@ -75,6 +77,10 @@
|
||||||
"webpack-dev-server": "^2.7.0"
|
"webpack-dev-server": "^2.7.0"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
|
"setupFiles": [
|
||||||
|
"raf/polyfill",
|
||||||
|
"<rootDir>/test/helpers/enzyme-setup.js"
|
||||||
|
],
|
||||||
"moduleNameMapper": {
|
"moduleNameMapper": {
|
||||||
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
|
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/__mocks__/fileMock.js",
|
||||||
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js"
|
"\\.(css|less)$": "<rootDir>/test/__mocks__/styleMock.js"
|
||||||
|
|
4
test/helpers/enzyme-setup.js
Normal file
4
test/helpers/enzyme-setup.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
import Enzyme from 'enzyme';
|
||||||
|
import Adapter from 'enzyme-adapter-react-16';
|
||||||
|
|
||||||
|
Enzyme.configure({adapter: new Adapter()});
|
Loading…
Reference in a new issue