Skip to content

Commit 2af622d

Browse files
committed
Fix broken scripts, introduce babel, add dummy PeoplePicker
1 parent 159ed34 commit 2af622d

244 files changed

Lines changed: 86 additions & 45 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": [ "es2015" ]
3+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
node_modules
2+
dist
3+
lib

package.json

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@
22
"name": "solid-ui",
33
"version": "0.2.1",
44
"description": "UI library for writing Solid read-write-web applications",
5-
"main": "./index.js",
5+
"main": "./lib/index.js",
6+
"files": [
7+
"lib",
8+
"dist"
9+
],
610
"scripts": {
7-
"build-browserified": "browserify -r ./index.js:solid-ui --exclude 'xhr2' --exclude 'rdflib' > dist/solid-ui.js",
8-
"build-minified": "browserify -r ./index.js:solid-ui --exclude 'xhr2' --exclude 'rdflib' -d -p [minifyify --no-map] > dist/solid.min.js",
9-
"build": "npm run clean && mkdir -p dist/resources && npm run standard && npm run build-browserified && npm run build-minified",
10-
"build-qunit-resources": "browserify -r ./test/resources/profile-ldnode.js:test-ldnode-profile --exclude 'xhr2' --exclude 'rdflib' > dist/resources/test-ldnode-profile.js",
11-
"clean": "rm -rf dist/",
12-
"standard": "standard lib/*",
13-
"tape": "tape test/unit/*.js",
14-
"test": "npm run standard && npm run tape",
15-
"qunit": "npm run standard && npm run build-browserified && open test/integration/index.html"
11+
"build-lib": "babel src -d lib",
12+
"build-browserified": "browserify -r ./src/index.js:solid-ui -t babelify --exclude 'xhr2' --exclude 'rdflib' > dist/solid-ui.js",
13+
"build-minified": "browserify -r ./src/index.js:solid-ui -t babelify --exclude 'xhr2' --exclude 'rdflib' -d -p [minifyify --no-map] > dist/solid.min.js",
14+
"prebuild": "npm run clean && mkdir -p dist",
15+
"build": "npm run build-lib && npm run build-browserified && npm run build-minified",
16+
"clean": "rm -rf dist/ && rm -rf lib/",
17+
"standard": "standard src/*",
18+
"pretest": "npm run standard",
19+
"test": "echo 'No test suite. Add tests!' && exit 1"
1620
},
1721
"repository": {
1822
"type": "git",
@@ -21,24 +25,31 @@
2125
"keywords": [
2226
"solid",
2327
"decentralized",
24-
"widgets", "ui",
28+
"widgets",
29+
"ui",
2530
"web",
2631
"rdf",
2732
"ldp",
2833
"linked",
2934
"data"
3035
],
3136
"author": "Tim Berners-Lee <timbl@mit.edu>",
37+
"contributors": [
38+
"Daniel Friedman <danielf@mit.edu>"
39+
],
3240
"license": "MIT",
3341
"bugs": {
3442
"url": "https://github.com/linkeddata/solid-ui/issues"
3543
},
3644
"homepage": "https://github.com/linkeddata/solid-ui",
3745
"dependencies": {
38-
"solid-client": "",
39-
"rdflib": ""
46+
"rdflib": "^0.12.1",
47+
"solid-client": "^0.22.4"
4048
},
4149
"devDependencies": {
50+
"babel-cli": "^6.18.0",
51+
"babel-preset-es2015": "^6.18.0",
52+
"babelify": "^7.3.0",
4253
"browserify": "^13.0.0",
4354
"minifyify": "^7.2.1",
4455
"qunit": "^0.9.0",
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@
66
// throwing away all the user's work.
77
var UI = {}
88

9-
UI.acl = require('./acl.js')
10-
UI.ns = require('./ns.js')
11-
UI.widgets = require('./widgets.js')
9+
UI.acl = require('./acl')
10+
UI.ns = require('./ns')
11+
UI.widgets = require('./widgets')
1212
UI.utils = require('./utils')
1313
UI.aclControl = module.exports = {}
1414

lib/acl.js renamed to src/acl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ var acl = module.exports = {}
55

66
var UI = {
77
acl: acl,
8-
icons: require('./iconBase.js'),
8+
icons: require('./iconBase'),
99
log: require('./log'),
1010
ns: require('./ns'),
1111
store: require('./store'),
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)