Skip to content

Commit

Permalink
Merge branch 'master' of github.com:hapijs/joi
Browse files Browse the repository at this point in the history
hueniverse committed Sep 11, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents ff0550e + 1cac41a commit c07d0bf
Showing 7 changed files with 21 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -13,3 +13,5 @@ coverage.*
**/.idea

sandbox.js

dist
2 changes: 0 additions & 2 deletions .npmignore

This file was deleted.

10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -24,3 +24,13 @@ os:
- "linux"
- "osx"
- "windows"

matrix:
include:
- node_js: "node"
os: "linux"
name: "Browser tests"
addons:
chrome: stable
install: "npm install && cd browser && npm install"
script: "pwd && npm test"
1 change: 0 additions & 1 deletion browser/.gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
dist/
stats.json

2 changes: 1 addition & 1 deletion browser/karma.conf.js
Original file line number Diff line number Diff line change
@@ -24,7 +24,7 @@ module.exports = function (config) {
colors: true,
logLevel: config.LOG_ERROR,
autoWatch: true,
browsers: ['Chrome'],
browsers: ['ChromeHeadless'],
singleRun: true,
concurrency: Infinity,
webpack: WebpackMocha,
3 changes: 2 additions & 1 deletion browser/webpack.config.js
Original file line number Diff line number Diff line change
@@ -6,7 +6,8 @@ const Webpack = require('webpack');
module.exports = {
entry: '../lib/index.js',
output: {
filename: './joi-browser.min.js',
filename: 'joi-browser.min.js',
path: Path.join(__dirname, '../dist'),
library: 'joi',
libraryTarget: 'umd'
},
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@
"version": "16.0.0-preview",
"repository": "git://github.com/hapijs/joi",
"main": "lib/index.js",
"browser": "dist/joi-browser.min.js",
"keywords": [
"schema",
"validation"
@@ -22,8 +23,13 @@
"@hapi/joi-legacy-test": "npm:@hapi/[email protected]"
},
"scripts": {
"prepublishOnly": "cd browser && npm install && npm run build",
"test": "lab -t 100 -a @hapi/code -L",
"test-cov-html": "lab -r html -o coverage.html -a @hapi/code"
},
"files": [
"lib/**/*",
"dist/*"
],
"license": "BSD-3-Clause"
}

0 comments on commit c07d0bf

Please sign in to comment.