Skip to content

Commit

Permalink
integrate sanctuary-scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
davidchambers committed Jun 16, 2018
1 parent b6f2b80 commit 0438f11
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
repo-owner = fantasyland
repo-name = fantasy-land
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"root": true,
"extends": ["./node_modules/sanctuary-style/eslint-es3.json"]
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
/coverage/
/node_modules/
4 changes: 4 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Contributing

Additions and modifications to the specification are best proposed in issues.
If there is support for a proposal, the next step is to submit a pull request.
6 changes: 2 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@

'use strict';

/* eslint comma-dangle: ["off"], no-var: ["off"], strict: ["error", "function"] */
/* global self */

var mapping = {
equals: 'fantasy-land/equals',
lte: 'fantasy-land/lte',
Expand All @@ -30,10 +27,11 @@
promap: 'fantasy-land/promap'
};

/* istanbul ignore else */
if (typeof module === 'object' && typeof module.exports === 'object') {
module.exports = mapping;
} else {
self.FantasyLand = mapping;
}

}());
} ());
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@
},
"dependencies": {},
"devDependencies": {
"eslint": "3.8.x",
"sanctuary-style": "0.2.x",
"xyz": "2.0.x"
"sanctuary-scripts": "2.x.x"
},
"repository": {
"type": "git",
"url": "https://github.com/fantasyland/fantasy-land.git"
"url": "git://github.com/fantasyland/fantasy-land.git"
},
"files": [
"index.js"
"/LICENSE",
"/README.md",
"/index.js",
"/package.json"
],
"main": "index.js",
"scripts": {
"lint": "eslint --config node_modules/sanctuary-style/eslint-es6.json --env es6 --env node --rule 'max-len: [off]' -- *.js",
"test": "npm run lint",
"release-major": "xyz --repo [email protected]:fantasyland/fantasy-land.git --increment major",
"release-minor": "xyz --repo [email protected]:fantasyland/fantasy-land.git --increment minor",
"release-patch": "xyz --repo [email protected]:fantasyland/fantasy-land.git --increment patch"
"doctest": "sanctuary-doctest",
"lint": "sanctuary-lint",
"release": "sanctuary-release",
"test": "npm run lint && sanctuary-test && npm run doctest"
}
}
10 changes: 10 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
'use strict';

const assert = require ('assert');

const FL = require ('..');


test ('exports', () => {
assert.strictEqual (FL.map, 'fantasy-land/map');
});
1 change: 1 addition & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
--ui tdd

0 comments on commit 0438f11

Please sign in to comment.