This is my proposal for revamping the YUI Core Feature detection system.
- 90% of our so-called "Feature Tests" are actually Loader conditional modules.
- Some "free-flowing" tests in DOM modules.
npm i --no-shrinkwrap | |
[email protected] /Users/davglass/src/peer/app | |
├─┬ [email protected] | |
│ ├── [email protected] | |
│ ├─┬ [email protected] | |
│ │ └── [email protected] | |
│ ├─┬ [email protected] | |
│ │ ├── [email protected] | |
│ │ ├── [email protected] |
npm info it worked if it ends with ok | |
npm info using [email protected] | |
npm info using [email protected] | |
npm info trying registry request attempt 1 at 23:15:18 | |
npm http GET https://registry.npmjs.org/executable?write=true | |
npm http 200 https://registry.npmjs.org/executable?write=true | |
npm info starring executable | |
npm info trying registry request attempt 1 at 23:15:22 | |
npm http PUT https://registry.npmjs.org/executable | |
npm http 503 https://registry.npmjs.org/executable |
var svgLine = require('svg-line') | |
var raf = require('raf') | |
var ns = 'http://www.w3.org/2000/svg' | |
var tau = Math.PI * 2 | |
var svg = document.createElementNS(ns, 'svg') | |
var line = document.createElementNS(ns, 'path') | |
var points = [] | |
var path = svgLine() | |
.x(function(d) { return d.x }) |
//https://github.com/getify/rawnpm.getify.io/blob/master/server.js#L244 | |
conf.loglevel = "silent"; | |
conf.cache = path.join(__dirname,"npm_cache"); | |
conf.userconfig = path.join(__dirname, ".npmrc"); | |
npm.load(conf, fn); |
TAP version 13 | |
# dicovers new versions in outdated | |
not ok 1 should be equal | |
--- | |
file: /Users/yui/src/npm2/npm/node_modules/slide/lib/async-map.js | |
line: 48 | |
column: 11 | |
stack: | |
- getCaller (/Users/yui/src/npm2/npm/node_modules/tap/lib/tap-assert.js:418:17) | |
- assert (/Users/yui/src/npm2/npm/node_modules/tap/lib/tap-assert.js:21:16) |
The app code is here: | |
https://github.com/davglass/hack | |
> hub init //create git repo | |
> hub create //bind to github.com | |
> npm init //Create the package.json | |
> npm install express --save //Install Express | |
> travis init //Create the .travis.yql file and enable the repo | |
> heroku apps:create <app> //Create the app |
YUI.applyConfig({ | |
groups: { | |
gallery: { | |
combine: false, | |
root: '/build/', | |
patterns: { | |
'gallery-': { }, | |
'lang/gallery-': {}, | |
'gallerycss-': { type: 'css' } | |
} |
mkdir -p ./src/node/meta | |
cd src | |
vim node/meta/node.json | |
//Add contents from below | |
yogi loader --yes | |
//The content of the resulting file is below. |
yogi test --istanbul --coverage | |
yogi [info] using [email protected] on [email protected] | |
yogi [info] using module: gallery-flickr-carousel | |
yogi [info] prepping grover tests | |
yogi [info] adding tests route | |
yogi [info] turning on coverage support in grover | |
yogi [info] launching xdr server on port 5021 | |
yogi [info] listening on: http://127.0.0.1:5020 | |
Starting Grover on 1 files with [email protected] | |
Running 15 concurrent tests at a time. |