Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
Update dependencies; Change custom build process to microbundle
Browse files Browse the repository at this point in the history
  • Loading branch information
gribnoysup committed May 12, 2019
1 parent 31dc577 commit 6a159b1
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 91 deletions.
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

11 changes: 11 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
// !!! WARNING: ONLY CHANGE THIS FILE IF OUTPUT FOLDER CHANGES !!!
// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
'use strict';

// This determines which build to use based on the `NODE_ENV` of your end user.
if (process.env.NODE_ENV === 'production') {
module.exports = require('./dist/production/react-yandex-maps.js');
} else {
module.exports = require('./dist/development/react-yandex-maps.js');
}
2 changes: 1 addition & 1 deletion jest.transform.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@
* and inline babel config here
*/
module.exports = require('babel-jest').createTransformer({
presets: ['env', 'react'],
presets: ['@babel/preset-env', '@babel/preset-react'],
});
43 changes: 18 additions & 25 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"name": "react-yandex-maps",
"version": "3.0.2",
"description": "Yandex.Maps API bindings for React",
"main": "dist/react-yandex-maps.cjs.js",
"module": "dist/react-yandex-maps.esm.js",
"browser": "dist/react-yandex-maps.umd.production.min.js",
"main": "index.js",
"module": "dist/production/react-yandex-maps.esm.js",
"umd:main": "dist/production/react-yandex-maps.umd.js",
"unpkg": "dist/production/react-yandex-maps.umd.js",
"files": [
"README.md",
"LICENSE",
Expand All @@ -14,8 +15,11 @@
"clear": "rm -rf dist",
"prettier": "prettier --write",
"lint": "eslint",
"build": "npm run clear && NODE_ENV=development rollup -c && NODE_ENV=production rollup -c",
"dev": "microbundle watch --jsx React.createElement --target web --strict true --compress false",
"build": "npm run clear && npm run microbundle:production && npm run microbundle:development",
"microbundle": "microbundle --jsx React.createElement --name ReactYandexMaps --external react --define process.env.NODE_ENV=\"${NODE_ENV}\"",
"microbundle:production": "NODE_ENV=production npm run microbundle -- --output ./dist/production",
"microbundle:development": "NODE_ENV=development npm run microbundle -- --output ./dist/development",
"microbundle:watch": "NODE_ENV=development npm run microbundle -- --compress false --watch",
"release": "./scripts/release.sh",
"test": "jest"
},
Expand All @@ -28,33 +32,22 @@
},
"dependencies": {
"create-react-context": "^0.2.3",
"prop-types": "^15.6.2",
"prop-types": "^15.7.2",
"react-display-name": "^0.2.4"
},
"devDependencies": {
"@babel/core": "^7.1.2",
"@babel/preset-env": "^7.1.0",
"@babel/preset-react": "^7.0.0",
"babel-core": "^6.26.3",
"babel-eslint": "^8.2.6",
"babel-jest": "^23.4.2",
"babel-preset-env": "^1.7.0",
"babel-preset-react": "^6.24.1",
"eslint": "^4.19.1",
"eslint-plugin-jest": "^22.1.2",
"eslint-plugin-react": "^7.12.2",
"babel-eslint": "^10.0.1",
"eslint": "^5.16.0",
"eslint-plugin-jest": "^22.5.1",
"eslint-plugin-react": "^7.13.0",
"husky": "^1.3.1",
"jest": "^23.5.0",
"jest": "^24.8.0",
"lint-staged": "^8.1.0",
"prettier": "github:prettier/prettier",
"react": "^16.7.0",
"rollup": "^1.0.1",
"rollup-plugin-babel": "^4.2.0",
"rollup-plugin-commonjs": "^9.1.8",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-replace": "^2.0.0",
"rollup-plugin-terser": "^4.0.1",
"terser": "^3.14.1"
"microbundle": "^0.11.0",
"prettier": "^1.17.0",
"react": "^16.7.0"
},
"keywords": [
"react",
Expand Down
64 changes: 0 additions & 64 deletions rollup.config.js

This file was deleted.

0 comments on commit 6a159b1

Please sign in to comment.