Revert "Share node_modules for samples/js" (#1967)

This commit is contained in:
Erik Arvidsson
2016-07-05 14:44:21 -07:00
committed by GitHub
parent 02be382799
commit 7bb1623e99
69 changed files with 519 additions and 86 deletions

View File

@@ -1 +0,0 @@
../../js/.babelrc

View File

@@ -1 +0,0 @@
../../js/.flowconfig

View File

@@ -1 +0,0 @@
node_modules

View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -2,8 +2,31 @@
"name": "noms-aggregate",
"license": "Apache-2.0",
"main": "dist/main.js",
"dependencies": {
"@attic/noms": "^42.0.0",
"babel-regenerator-runtime": "6.5.0",
"yargs": "4.4.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"flow-bin": "^0.25.0",
"chai": "3.5.0",
"mocha": "2.4.5"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "BABEL_ENV=production babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../../js/.babelrc

View File

@@ -0,0 +1,7 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
// Allow console
module.exports.rules['no-console'] = 0;

View File

@@ -59,11 +59,11 @@ async function main(): Promise<void> {
return;
}
const commit = await rv.targetValue(input.database);
const commit = await rv.targetValue(input.store);
let out = Promise.resolve(new Map());
await walk(commit.value, input.database, cv => {
await walk(commit.value, input.store, cv => {
if (!(cv instanceof Struct) || cv.type.name !== args.struct) {
return;
}
@@ -82,7 +82,7 @@ async function main(): Promise<void> {
return true;
});
await outSpec.dataset().commit(await out);
await outSpec.set().commit(await out);
}
function quit(err: string): Function {

View File

@@ -0,0 +1 @@
../../../js/.babelrc

View File

@@ -0,0 +1,5 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');

View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -1,8 +1,27 @@
{
"name": "noms-bar-chart",
"license": "Apache-2.0",
"dependencies": {
"@attic/webpack-config": "^2.1.0"
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"@attic/noms": "^42.0.0",
"@attic/webpack-config": "^2.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"babel-regenerator-runtime": "6.5.0",
"classnames": "^2.1.3",
"http-server": "^0.8.5",
"react-dom": "^0.14.1",
"react": "^0.14.1"
},
"scripts": {
"start": "python node_modules/@attic/webpack-config/run.py --src src/main.js --out out.js development",

View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -2,8 +2,32 @@
"name": "noms-codec-perf-rig",
"license": "Apache-2.0",
"main": "dist/main.js",
"dependencies": {
"@attic/noms": "file:../../../js/",
"babel-regenerator-runtime": "6.5.0",
"humanize": "0.0.9",
"yargs": "4.4.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"flow-bin": "^0.25.0",
"chai": "3.5.0",
"mocha": "2.4.5"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "BABEL_ENV=production babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../../js/.babelrc

View File

@@ -0,0 +1,7 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
// Allow console
module.exports.rules['no-console'] = 0;

View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -4,8 +4,31 @@
"license": "Apache-2.0",
"main": "dist/main.js",
"version": "1.0.1",
"dependencies": {
"@attic/noms": "file:../../../js/",
"babel-regenerator-runtime": "6.5.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"chai": "3.5.0",
"flow-bin": "^0.25.0",
"mocha": "2.4.5",
"yargs": "^4.7.1"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "BABEL_ENV=production babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../../js/.babelrc

View File

@@ -0,0 +1,7 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
// Allow console
module.exports.rules['no-console'] = 0;

1
samples/js/csv/.babelrc Symbolic link
View File

@@ -0,0 +1 @@
../../../js/.babelrc

View File

@@ -0,0 +1,5 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');

1
samples/js/csv/.flowconfig Symbolic link
View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -4,8 +4,33 @@
"license": "Apache-2.0",
"main": "dist/main.js",
"version": "1.0.0",
"dependencies": {
"@attic/noms": "^42.0.0",
"babel-regenerator-runtime": "6.5.0",
"csv": "^1.1.0",
"request": "^2.72.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"chai": "3.5.0",
"flow-bin": "^0.25.0",
"mocha": "2.4.5",
"yargs": "^4.7.1"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "BABEL_ENV=production babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -1,8 +1,34 @@
{
"name": "noms-encode-perf-rig",
"main": "dist/main.js",
"dependencies": {
"@attic/noms": "^41.0.0",
"babel-regenerator-runtime": "6.5.0",
"humanize": "0.0.9",
"mz": "2.4.0",
"varint": "4.0.0",
"yargs": "4.4.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"flow-bin": "^0.25.0",
"chai": "3.5.0",
"mocha": "2.4.5"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "BABEL_ENV=production babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../../js/.babelrc

View File

@@ -0,0 +1,3 @@
module.exports = require('@attic/eslintrc');
// Allow console
module.exports.rules['no-console'] = 0;

View File

@@ -0,0 +1 @@
../../../../js/.flowconfig

View File

@@ -3,8 +3,31 @@
"description": "Finds photos in slurped flickr data",
"license": "Apache-2.0",
"main": "dist/main.js",
"dependencies": {
"@attic/noms": "^42.0.0",
"babel-regenerator-runtime": "6.5.0",
"yargs": "4.4.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"chai": "3.5.0",
"flow-bin": "^0.23.0",
"mocha": "2.4.5"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../../../js/.babelrc

View File

@@ -3,7 +3,6 @@
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
// Allow console
module.exports.rules['no-console'] = 0;
// Used to distinguish between user errors and exceptions.
module.exports.rules['no-throw-literal'] = 0;
module.exports.rules['no-console'] = 0;

View File

@@ -77,7 +77,7 @@ async function main(): Promise<void> {
if (isSubtype(placeType, v.type)) {
photo.geoposition = getGeo(v);
}
result = result.then(r => r.add(newStruct('Photo', photo)));
result = result.then(r => r.insert(newStruct('Photo', photo)));
return true;
}
});

View File

@@ -0,0 +1 @@
../../../../js/.flowconfig

View File

@@ -3,8 +3,32 @@
"description": "Imports photo metadata from Facebook",
"license": "Apache-2.0",
"main": "dist/main.js",
"dependencies": {
"@attic/noms": "42.0.0",
"babel-regenerator-runtime": "6.5.0",
"node-fetch": "1.5.2",
"yargs": "4.4.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"chai": "3.5.0",
"flow-bin": "^0.23.0",
"mocha": "2.4.5"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../../../js/.babelrc

View File

@@ -0,0 +1,8 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
// Used to distinguish user errors from exceptions.
module.exports.rules['no-throw-literal'] = 0;
module.exports.rules['no-console'] = 0;

View File

@@ -0,0 +1 @@
../../../../js/.flowconfig

View File

@@ -3,8 +3,33 @@
"description": "Creates standard photo structs out of slurped flickr data",
"license": "Apache-2.0",
"main": "dist/main.js",
"dependencies": {
"@attic/noms": "39.2.0",
"babel-regenerator-runtime": "6.5.0",
"humanize": "0.0.9",
"node-fetch": "1.5.2",
"yargs": "4.4.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"chai": "3.5.0",
"flow-bin": "^0.23.0",
"mocha": "2.4.5"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../../../js/.babelrc

View File

@@ -0,0 +1,8 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
// Allow console
module.exports.rules['no-console'] = 0;
module.exports.rules['no-throw-literal'] = 0;

View File

@@ -49,19 +49,13 @@ const sizeTypes = sizes.map(s =>
// } |
// ... for all the image size suffixes ...
// }
const imageType = makeUnionType(sizeTypes.map(st => {
const newFields = {
title: stringType,
tags: stringType,
latitude: flickrNum,
longitude: flickrNum,
};
st.desc.forEachField((name, type) => {
newFields[name] = type;
});
return makeStructType('', newFields);
}));
const imageType = makeUnionType(sizeTypes.map(st =>
makeStructType('', Object.assign(({
title: stringType,
tags: stringType,
latitude: flickrNum,
longitude: flickrNum,
}:Object), st.desc.fields))));
main().catch(ex => {
console.error(ex);
@@ -97,7 +91,7 @@ async function main(): Promise<void> {
photo.geoposition = geo;
}
result = result.then(r => r.add(newStruct('Photo', photo)));
result = result.then(r => r.insert(newStruct('Photo', photo)));
return true;
}
return false;

View File

@@ -0,0 +1 @@
../../../../js/.flowconfig

View File

@@ -3,8 +3,34 @@
"description": "Imports album and photo metadata from Flickr",
"license": "Apache-2.0",
"main": "dist/main.js",
"dependencies": {
"@attic/noms": "^42.0.0",
"babel-regenerator-runtime": "6.5.0",
"flickr-oauth-and-upload": "0.8.0",
"humanize": "0.0.9",
"node-fetch": "1.5.2",
"yargs": "4.4.0"
},
"devDependencies": {
"@attic/eslintrc": "^1.0.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"chai": "3.5.0",
"flow-bin": "^0.23.0",
"mocha": "2.4.5"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../../../js/.babelrc

View File

@@ -0,0 +1,8 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
module.exports.rules['arrow-body-style'] = 0;
module.exports.rules['no-console'] = 0;
module.exports.rules['no-throw-literal'] = 0;

View File

@@ -76,11 +76,13 @@ async function main(): Promise<void> {
const photosetsJSON = await getPhotosetsJSON();
let seen = 0;
const photosets = await Promise.all(photosetsJSON.map(p => getPhotoset(p.id).then(p => {
process.stdout.write(
`${clearLine}${++seen} of ${photosetsJSON.length} photosets imported...`);
return p;
}))).then(sets => new Set(sets));
const photosets = await Promise.all(photosetsJSON.map(p => {
return getPhotoset(p.id).then(p => {
process.stdout.write(
`${clearLine}${++seen} of ${photosetsJSON.length} photosets imported...`);
return p;
});
})).then(sets => new Set(sets));
process.stdout.write(clearLine);
return out.commit(newStruct('', {

1
samples/js/fs/.flowconfig Symbolic link
View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -2,8 +2,34 @@
"name": "noms-fs",
"license": "Apache-2.0",
"main": "dist/main.js",
"dependencies": {
"@attic/noms": "file:../../../js",
"babel-regenerator-runtime": "6.5.0",
"humanize": "0.0.9",
"mz": "2.4.0",
"oauth": "^0.9.14",
"yargs": "4.4.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"flow-bin": "^0.25.0",
"chai": "3.5.0",
"mocha": "2.4.5"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "BABEL_ENV=production babel -d dist src",
"test": "eslint src/ && flow src/"

1
samples/js/fs/src/.babelrc Symbolic link
View File

@@ -0,0 +1 @@
../../../../js/.babelrc

View File

@@ -0,0 +1,7 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
// Allow console
module.exports.rules['no-console'] = 0;

View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -2,8 +2,34 @@
"name": "noms-hash-perf-rig",
"license": "Apache-2.0",
"main": "dist/main.js",
"dependencies": {
"@attic/noms": "^42.0.0",
"babel-regenerator-runtime": "6.5.0",
"humanize": "0.0.9",
"mz": "2.4.0",
"oauth": "^0.9.14",
"yargs": "4.4.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"flow-bin": "^0.25.0",
"chai": "3.5.0",
"mocha": "2.4.5"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "BABEL_ENV=production babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../../js/.babelrc

View File

@@ -0,0 +1,7 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
// Allow console
module.exports.rules['no-console'] = 0;

View File

@@ -1,40 +0,0 @@
{
"name": "noms-samples",
"version": "0.0.0",
"description": "Shared node modules",
"license": "Apache-2.0",
"dependencies": {
"@attic/eslintrc": "^3.1.0",
"@attic/noms": "file:../../js",
"babel-cli": "^6.10.1",
"babel-core": "^6.10.4",
"babel-generator": "^6.11.0",
"babel-plugin-syntax-async-functions": "^6.8.0",
"babel-plugin-syntax-flow": "^6.8.0",
"babel-plugin-transform-async-to-generator": "^6.8.0",
"babel-plugin-transform-class-properties": "^6.10.2",
"babel-plugin-transform-es2015-destructuring": "^6.9.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.10.3",
"babel-plugin-transform-es2015-parameters": "^6.9.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.11.1",
"babel-regenerator-runtime": "^6.5.0",
"chai": "^3.5.0",
"classnames": "^2.1.3",
"csv": "^1.1.0",
"flickr-oauth-and-upload": "^0.8.0",
"flow-bin": "^0.27.0",
"http-server": "^0.9.0",
"humanize": "^0.0.9",
"mocha": "^2.5.3",
"mz": "^2.4.0",
"node-fetch": "^1.5.2",
"oauth": "^0.9.14",
"react-dom": "^15.2.0",
"react": "^15.2.0",
"request": "^2.72.0",
"varint": "^4.0.0",
"yargs": "^4.7.1"
}
}

View File

@@ -0,0 +1 @@
../../../js/.babelrc

View File

@@ -0,0 +1,7 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
// Allow console
module.exports.rules['no-console'] = 0;

View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -4,8 +4,31 @@
"main": "dist/main.js",
"version": "1.0.1",
"description": "noms example javascript thing",
"dependencies": {
"@attic/noms": "file:../../../js",
"babel-regenerator-runtime": "6.5.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"chai": "3.5.0",
"flow-bin": "^0.25.0",
"mocha": "2.4.5",
"yargs": "^4.7.1"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "BABEL_ENV=production babel -d dist src",
"test": "eslint src/ && flow src/"

1
samples/js/splore/.babelrc Symbolic link
View File

@@ -0,0 +1 @@
../../../js/.babelrc

View File

@@ -0,0 +1,5 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');

View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -1,8 +1,31 @@
{
"name": "noms-splore",
"license": "Apache-2.0",
"dependencies": {
"@attic/webpack-config": "^2.1.0"
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"@attic/noms": "^46.1.0",
"@attic/webpack-config": "^2.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"babel-regenerator-runtime": "6.5.0",
"classnames": "^2.1.3",
"flow-bin": "^0.25.0",
"http-server": "^0.8.5",
"react-dom": "^0.14.1",
"react": "^0.14.1",
"chai": "3.5.0",
"mocha": "2.4.5"
},
"scripts": {
"start": "python node_modules/@attic/webpack-config/run.py --src src/main.js --out out.js development",

View File

@@ -97,7 +97,7 @@ function handleChunkLoad(hash: Hash, val: any, fromHash: ?string) {
name: string) {
data.nodes[id] = {name: name};
sequence.items.forEach(tuple => {
const kid = process(hash, formatKeyString(tuple.child), id);
const kid = process(hash, formatKeyString(tuple.value), id);
if (kid) {
data.nodes[kid].isOpen = true;

View File

@@ -0,0 +1 @@
../../../js/.flowconfig

View File

@@ -2,8 +2,32 @@
"name": "noms-url-fetch",
"license": "Apache-2.0",
"main": "dist/main.js",
"dependencies": {
"@attic/noms": "^42.0.0",
"babel-regenerator-runtime": "6.5.0",
"humanize": "0.0.9",
"yargs": "4.4.0"
},
"devDependencies": {
"@attic/eslintrc": "^3.1.0",
"babel-cli": "6.6.5",
"babel-core": "6.7.2",
"babel-generator": "6.7.2",
"babel-plugin-syntax-async-functions": "6.5.0",
"babel-plugin-syntax-flow": "6.5.0",
"babel-plugin-transform-async-to-generator": "6.7.0",
"babel-plugin-transform-class-properties": "6.6.0",
"babel-plugin-transform-es2015-destructuring": "6.6.5",
"babel-plugin-transform-es2015-modules-commonjs": "6.7.0",
"babel-plugin-transform-es2015-parameters": "6.7.0",
"babel-plugin-transform-runtime": "^6.6.0",
"babel-preset-es2015": "6.6.0",
"babel-preset-react": "6.5.0",
"chai": "3.5.0",
"flow-bin": "^0.25.0",
"mocha": "2.4.5"
},
"scripts": {
"prepublish": "npm run build",
"start": "babel -d dist -w src",
"build": "BABEL_ENV=production babel -d dist src",
"test": "eslint src/ && flow src/"

View File

@@ -0,0 +1 @@
../../../../js/.babelrc

View File

@@ -0,0 +1,7 @@
// Copyright 2016 The Noms Authors. All rights reserved.
// Licensed under the Apache License, version 2.0:
// http://www.apache.org/licenses/LICENSE-2.0
module.exports = require('@attic/eslintrc');
// Allow console
module.exports.rules['no-console'] = 0;