forked from diffcunha/jsonmltoreact
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
216 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"presets": ["es2015"], | ||
"presets": ["@babel/env"], | ||
"env": { | ||
"test": { | ||
"plugins": ["rewire"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# COVERALLS_REPO_TOKEN should be set in Travis-CI | ||
repo_token: ${COVERALLS_REPO_TOKEN} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
package-lock=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"reporter": [ | ||
"lcov", | ||
"text" | ||
], | ||
"include": [ | ||
"src/**/*.js" | ||
], | ||
"require": [ | ||
"@babel/register" | ||
], | ||
"sourceMap": true, | ||
"instrument": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
language: node_js | ||
node_js: | ||
- "10" | ||
- "12" | ||
|
||
notifications: | ||
email: false | ||
|
||
# Enable builds on limited branches | ||
branches: | ||
only: | ||
- master | ||
- /release\/\d{1,2}\.x/ | ||
|
||
before_install: | ||
- npm config set //registry.npmjs.org/:_authToken=$npm_config__auth | ||
|
||
install: | ||
- npm install --always-auth=true | ||
|
||
script: | ||
- npm test | ||
|
||
after_success: | ||
# Deploy coverage reports to Coveralls for node 12 run | ||
- if [[ $(node -v) == v12* ]]; then npm install coveralls; ./node_modules/.bin/coveralls < coverage/lcov.info; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,52 @@ | ||
{ | ||
"name": "@condenast/jsonmltoreact", | ||
"version": "0.1.1", | ||
"version": "2.1.1", | ||
"description": "JsonML to React component converter", | ||
"main": "./lib/index.js", | ||
"scripts": { | ||
"build": "npm run build:js", | ||
"build:js": "./node_modules/.bin/babel ./src --out-dir ./lib", | ||
"coverage": "nyc --reporter=lcov --require babel-core/register mocha ${TEST_FILES:-test/src/index.spec.js}", | ||
"coverage": "nyc --reporter=lcov --require @babel/register mocha ${TEST_FILES:-test/src/index.spec.js}", | ||
"lint": "eslint --ext .js -c .eslintrc .", | ||
"prebuild": "rm -rf lib", | ||
"precommit": "npm run lint", | ||
"prepublish": "npm run build", | ||
"prepush": "npm test", | ||
"prepublishOnly": "npm run build", | ||
"pretest": "npm run lint", | ||
"test": "NODE_ENV=test nyc mocha" | ||
"test": "NODE_ENV=test nyc mocha", | ||
"tdd": "NODE_ENV=test nyc mocha --watch --break" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/CondeNast/jsonmltoreact" | ||
}, | ||
"license": "MIT", | ||
"dependencies": { | ||
"jsonml.js": "^0.1.0", | ||
"@condenast/jsonml.js": "^1.0.1", | ||
"lodash": "^4.14.1" | ||
}, | ||
"peerDependencies": { | ||
"react": "^0.14.0 || ^15.0.0" | ||
"react": "^16.0.0" | ||
}, | ||
"devDependencies": { | ||
"babel-cli": "^6.8.0", | ||
"babel-core": "^6.8.0", | ||
"babel-eslint": "^6.0.4", | ||
"babel-plugin-rewire": "^1.0.0-rc-3", | ||
"babel-preset-es2015": "^6.6.0", | ||
"babel-template": "^6.8.0", | ||
"babel-types": "^6.8.1", | ||
"chai": "^3.5.0", | ||
"eslint": "^2.10.1", | ||
"husky": "^0.11.4", | ||
"mocha": "^2.4.5", | ||
"nyc": "^6.4.4", | ||
"sinon": "^1.17.4" | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.8.4", | ||
"@babel/preset-env": "^7.8.4", | ||
"@babel/register": "^7.8.3", | ||
"@babel/template": "^7.8.3", | ||
"@babel/types": "^7.8.3", | ||
"babel-eslint": "^10.0.0", | ||
"babel-plugin-rewire": "^1.2.0", | ||
"chai": "^4.0.0", | ||
"eslint": "^6.0.0", | ||
"husky": "^4.2.3", | ||
"mocha": "^7.0.0", | ||
"nyc": "^15.0.0", | ||
"react": "^16.2.0", | ||
"sinon": "^9.0.0" | ||
}, | ||
"nyc": { | ||
"require": [ | ||
"babel-core/register" | ||
] | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "npm run lint", | ||
"pre-push": "npm test" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
{ | ||
"extends": ["config:base"], | ||
"ignoreUnstable": true, | ||
"devDependencies": { | ||
"automerge": true | ||
}, | ||
"pinVersions": false, | ||
"respectLatest": true, | ||
"rebaseStalePrs": true, | ||
"prConcurrentLimit": 4, | ||
"schedule": [ | ||
"after 8pm every weekday", | ||
"before 5am every weekday", | ||
"every weekend" | ||
], | ||
"timezone": "America/New_York", | ||
"packageRules": [ | ||
{ | ||
"groupName": "Major dev deps", | ||
"packagePatterns": ["*"], | ||
"depTypeList": ["devDependencies"], | ||
"updateTypes": ["major"], | ||
"labels": ["UPDATE-MAJOR-DEV"], | ||
"semanticCommits": true | ||
}, | ||
{ | ||
"groupName": "Non-major dev deps", | ||
"packagePatterns": ["*"], | ||
"depTypeList": ["devDependencies"], | ||
"updateTypes": ["minor", "patch"], | ||
"labels": ["UPDATE-NON-MAJOR-DEV"], | ||
"semanticCommits": true | ||
}, | ||
{ | ||
"groupName": "Major deps", | ||
"packagePatterns": ["*"], | ||
"depTypeList": ["dependencies"], | ||
"updateTypes": ["major"], | ||
"labels": ["UPDATE-MAJOR"], | ||
"semanticCommits": true | ||
}, | ||
{ | ||
"groupName": "Non-major deps", | ||
"packagePatterns": ["*"], | ||
"depTypeList": ["dependencies"], | ||
"updateTypes": ["minor", "patch"], | ||
"labels": ["UPDATE-NON-MAJOR"], | ||
"semanticCommits": true | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters