Skip to content

Commit

Permalink
rebasee, fix depedencies (babel 7)
Browse files Browse the repository at this point in the history
  • Loading branch information
ognen committed Sep 20, 2018
1 parent d977768 commit c7e6e8b
Show file tree
Hide file tree
Showing 7 changed files with 3,657 additions and 1,680 deletions.
15 changes: 0 additions & 15 deletions .babelrc

This file was deleted.

15 changes: 15 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
presets: ['module:metro-react-native-babel-preset'],
env: {
test: {
plugins: [
[
'@babel/plugin-transform-runtime',
{
regenerator: true,
},
],
],
},
},
}
63 changes: 32 additions & 31 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"name": "skele-container",
"private": true,
"description":
"Skele is an architectural framework that assists with building data-driven apps with React or React Native.",
"description": "Skele is an architectural framework that assists with building data-driven apps with React or React Native.",
"repository": {
"type": "git",
"url": "git+https://github.com/netceteragroup/skele.git"
Expand All @@ -20,28 +19,21 @@
"coverage": "jest --coverage",
"coverage-report": "cat ./coverage/lcov.info | coveralls",
"lint": "eslint .",
"es5":
"yarn run es5:classic && yarn run es5:config && yarn run es5:components && yarn run es5:core",
"es5:classic":
"babel -q packages/classic/src --out-dir packages/classic/dist/es5",
"es5:config":
"babel -q packages/config/src --out-dir packages/config/dist/es5",
"es5:components":
"babel -q packages/components/src --out-dir packages/components/dist/es5",
"es5:core": "babel -q packages/core/src --out-dir packages/core/dist/es5",
"clean":
"yarn run clean:classic && yarn run clean:config && yarn run clean:components && yarn run clean:core",
"es5": "yarn run es5:classic && yarn run es5:config && yarn run es5:components && yarn run es5:core",
"es5:classic": "babel packages/classic/src --out-dir packages/classic/dist/es5",
"es5:config": "babel packages/config/src --out-dir packages/config/dist/es5",
"es5:components": "babel packages/components/src --out-dir packages/components/dist/es5",
"es5:core": "babel packages/core/src --out-dir packages/core/dist/es5",
"clean": "yarn run clean:classic && yarn run clean:config && yarn run clean:components && yarn run clean:core",
"clean:classic": "del-cli packages/classic/dist",
"clean:config": "del-cli packages/config/dist",
"clean:components": "del-cli packages/components/dist",
"clean:core": "del-cli packages/core/dist",
"build": "yarn run clean && yarn run test && yarn run lint && yarn run es5",
"release:test-token":
"test -n \"$CONVENTIONAL_GITHUB_RELEASER_TOKEN\" || (echo 'Setup your github autho token first: https://github.com/conventional-changelog/conventional-github-releaser#cli' && exit 1)",
"release:test-token": "test -n \"$CONVENTIONAL_GITHUB_RELEASER_TOKEN\" || (echo 'Setup your github autho token first: https://github.com/conventional-changelog/conventional-github-releaser#cli' && exit 1)",
"release:publish": "lerna publish",
"release:github": "conventional-github-releaser -p angular",
"release":
"yarn run build && yarn run release:test-token && yarn run release:publish && yarn run release:github"
"release": "yarn run build && yarn run release:test-token && yarn run release:publish && yarn run release:github"
},
"engines": {
"node": ">= 7.4.0",
Expand All @@ -50,13 +42,15 @@
},
"dependencies": {},
"devDependencies": {
"babel-cli": "^6.24.0",
"babel-core": "^6.24.0",
"babel-eslint": "^7.1.0",
"babel-jest": "^19.0.0",
"babel-plugin-transform-runtime": "^6.12.0",
"babel-preset-react-native": "^1.9.1",
"@babel/cli": "7.x",
"@babel/core": "7.x",
"@babel/plugin-transform-runtime": "7.x",
"@babel/runtime": "7.x",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "^9.0.0",
"babel-jest": "^23.6.0",
"benchmark": "^2.1.4",
"babel-preset-react-native": "^5.0.0",
"conventional-github-releaser": "^1.1.11",
"coveralls": "^2.11.15",
"del-cli": "^0.2.1",
Expand All @@ -72,33 +66,38 @@
"eslint-plugin-react-native": "^3.1.0",
"eslint-stats": "^1.0.0",
"immutable": "^3.8.1",
"jest": "^21.0.2",
"jest": "^23.6",
"jest-enzyme": "^4.0.0",
"jest-fetch-mock": "^1.3.3",
"lerna": "^2.4.0",
"microtime": "^2.1.8",
"metro-react-native-babel-preset": "^0.45.3",
"prettier": "^1.9.2",
"prettier-eslint": "^7.1.0",
"prettier-eslint-cli": "^4.3.0",
"prop-types": "^15.6.0",
"raf": "^3.4.0",
"react": "^16.0.0",
"react-dom": "^16.0.0",
"react-native": "^0.51",
"react-test-renderer": "^16.0.0",
"react": "^16.5.0",
"react-dom": "^16.5.0",
"react-native": "^0.57",
"react-test-renderer": "^16.5.0",
"redux": "^3.5.2"
},
"jest": {
"testEnvironment": "jsdom",
"setupTestFrameworkScriptFile": "./scripts/test-setup.js",
"modulePathIgnorePatterns": ["/dist/es5/"],
"modulePathIgnorePatterns": [
"/dist/es5/"
],
"roots": [
"<rootDir>/packages/classic",
"<rootDir>/packages/config",
"<rootDir>/packages/components",
"<rootDir>/packages/core"
],
"testMatch": ["**/__tests__/**/*.js"],
"testMatch": [
"**/__tests__/**/*.js"
],
"collectCoverageFrom": [
"**/*.js",
"!**/__tests__/**",
Expand All @@ -108,5 +107,7 @@
"!packages/core/src/log/**"
]
},
"workspaces": ["packages/*"]
"workspaces": [
"packages/*"
]
}
10 changes: 7 additions & 3 deletions packages/classic/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"name": "@skele/classic",
"version": "1.0.0-alpha.31",
"description":
"Skele is an architectural framework that assists with building data-driven apps with React or React Native.",
"description": "Skele is an architectural framework that assists with building data-driven apps with React or React Native.",
"react-native": "src/index.js",
"main": "dist/es5/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/netceteragroup/skele.git"
},
"keywords": ["react", "react-native", "redux", "netcetera"],
"keywords": [
"react",
"react-native",
"redux",
"netcetera"
],
"author": "netcetera",
"license": "MIT",
"bugs": {
Expand Down
10 changes: 7 additions & 3 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
{
"name": "@skele/core",
"version": "1.0.0-alpha.31",
"description":
"Core package of the Skele framework. Element definitions, registrations and traversal.",
"description": "Core package of the Skele framework. Element definitions, registrations and traversal.",
"react-native": "src/index.js",
"main": "dist/es5/index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/netceteragroup/skele.git"
},
"keywords": ["react", "react-native", "redux", "netcetera"],
"keywords": [
"react",
"react-native",
"redux",
"netcetera"
],
"author": "netcetera",
"license": "MIT",
"bugs": {
Expand Down
10 changes: 5 additions & 5 deletions packages/core/src/registry/impl/Trie.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export default class Trie {
return
}

for (const i = 0, len = key.length; i < len; i++) {
for (let i = 0, len = key.length; i < len; i++) {
const p = key[i]
let n = current[p]
if (n == null) {
Expand Down Expand Up @@ -67,7 +67,7 @@ export default class Trie {
return undefined
}

for (const i = 0, len = key.length; i < len; i++) {
for (let i = 0, len = key.length; i < len; i++) {
const p = key[i]
current = current[p]

Expand Down Expand Up @@ -102,7 +102,7 @@ export default class Trie {
return undefined
}

for (const i = 0, len = key.length; i < len; i++) {
for (let i = 0, len = key.length; i < len; i++) {
const p = key[i]
current = current[p]
currentKey.push(p)
Expand Down Expand Up @@ -136,7 +136,7 @@ export default class Trie {

key = Array.isArray(key) ? key : [key]

for (const i = 0, len = key.length; i < len; i++) {
for (let i = 0, len = key.length; i < len; i++) {
const p = key[i]
current = current[p]

Expand Down Expand Up @@ -168,7 +168,7 @@ export default class Trie {

key = Array.isArray(key) ? key : [key]

for (const i = 0, len = key.length; i < len; i++) {
for (let i = 0, len = key.length; i < len; i++) {
const p = key[i]
current = current[p]
currentKey.push(p)
Expand Down
Loading

0 comments on commit c7e6e8b

Please sign in to comment.