Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"lodash": "^4.11.2",
"mustache.js": "mustache#^2.2.1",
"normalize-css": "normalize.css#^4.1.1",
"p5js": "^0.5.13",
"react": "^15.0.1",
"roboto-webfont-bower": "roboto-webfont#^0.1.1",
"underscore": "^1.8.3"
Expand Down
330 changes: 330 additions & 0 deletions src/config/libraries.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,334 @@ export default {
name: 'Bootstrap',
dependsOn: ['jquery'],
},
p5: {
name: 'p5.js',
predefined: [
'ADD',
'ALT',
'ARROW',
'AUTO',
'BACKSPACE',
'BASELINE',
'BEVEL',
'BEZIER',
'BLEND',
'BOLD',
'BOTTOM',
'BURN',
'CENTER',
'CHORD',
'CLOSE',
'CONTROL',
'CORNER',
'CORNERS',
'CROSS',
'CURVE',
'DARKEST',
'DEGREES',
'DELETE',
'DIFFERENCE',
'DODGE',
'DOWN_ARROW',
'ENTER',
'ESCAPE',
'EXCLUSION',
'HALF_PI',
'HAND',
'HARD_LIGHT',
'HSB',
'ITALIC',
'LEFT',
'LEFT_ARROW',
'LIGHTEST',
'LINEAR',
'LINES',
'MITER',
'MOVE',
'MULTIPLY',
'NORMAL',
'OPEN',
'OPTION',
'OVERLAY',
'PI',
'PIE',
'POINTS',
'PROJECT',
'QUADRATIC',
'QUADS',
'QUAD_STRIP',
'QUARTER_PI',
'RADIANS',
'RADIUS',
'REPLACE',
'RETURN',
'RGB',
'RIGHT',
'RIGHT_ARROW',
'ROUND',
'SCREEN',
'SHIFT',
'SOFT_LIGHT',
'SQUARE',
'TAB',
'TAU',
'TEXT',
'TOP',
'TRIANGLES',
'TRIANGLE_FAN',
'TRIANGLE_STRIP',
'TWO_PI',
'UP_ARROW',
'WAIT',
'abs',
'acos',
'alpha',
'angleMode',
'append',
'applyMatrix',
'arc',
'arrayCopy',
'asin',
'atan',
'atan2',
'background',
'beginContour',
'beginRaw',
'beginRecord',
'beginShape',
'bezier',
'bezierDetail',
'bezierPoint',
'bezierTangent',
'bezierVertex',
'blend',
'blendMode',
'blue',
'brightness',
'ceil',
'clear',
'color',
'colorMode',
'concat',
'constrain',
'copy',
'cos',
'createCanvas',
'createGraphics',
'createImage',
'createInput',
'createOutput',
'createReader',
'createVector',
'createWriter',
'cursor',
'curve',
'curveDetail',
'curvePoint',
'curveTangent',
'curveTightness',
'curveVertex',
'day',
'degrees',
'devicePixelScaling',
'displayHeight',
'displayWidth',
'dist',
'downloadFile',
'draw',
'ellipse',
'ellipseMode',
'endContour',
'endRaw',
'endRecord',
'endShape',
'exit',
'exp',
'fill',
'filter',
'float',
'floor',
'focused',
'frameCount',
'frameRate',
'fullscreen',
'get',
'getFrameRate',
'getURL',
'getURLParams',
'getURLPath',
'green',
'height',
'hour',
'httpDo',
'httpGet',
'httpPost',
'hue',
'image',
'imageMode',
'int',
'isKeyPressed',
'isMousePressed',
'join',
'key',
'keyCode',
'keyIsDown',
'keyIsPressed',
'lerp',
'lerpColor',
'line',
'loadBytes',
'loadImage',
'loadJSON',
'loadPixels',
'loadStrings',
'loadTable',
'loadXML',
'log',
'loop',
'mag',
'map',
'match',
'matchAll',
'max',
'millis',
'min',
'minute',
'month',
'mouseButton',
'mouseIsPressed',
'mouseX',
'mouseY',
'nf',
'nfc',
'nfp',
'nfs',
'noCanvas',
'noCursor',
'noFill',
'noLoop',
'noSmooth',
'noStroke',
'noTint',
'noise',
'noiseDetail',
'noiseSeed',
'norm',
'onblur',
'onclick',
'onkeydown',
'onkeypress',
'onkeyup',
'onmousedown',
'onmousemove',
'onmouseup',
'onmousewheel',
'onresize',
'ontouchend',
'ontouchmove',
'ontouchstart',
'parseXML',
'pixels',
'pmouseX',
'pmouseY',
'point',
'pop',
'popMatrix',
'popStyle',
'pow',
'print',
'printMatrix',
'println',
'ptouchX',
'ptouchY',
'push',
'pushMatrix',
'pushStyle',
'pwinMouseX',
'pwinMouseY',
'quad',
'quadraticVertex',
'radians',
'random',
'randomGaussian',
'randomSeed',
'rect',
'rectMode',
'red',
'redraw',
'registerMethod',
'registerPreloadMethod',
'resetMatrix',
'resizeCanvas',
'reverse',
'rotate',
'rotateX',
'rotateY',
'round',
'saturation',
'save',
'saveBytes',
'saveCanvas',
'saveFrames',
'saveJSON',
'saveJSONArray',
'saveJSONObject',
'saveStream',
'saveStrings',
'saveTable',
'saveXML',
'scale',
'second',
'selectFolder',
'selectInput',
'selectOutput',
'set',
'setFrameRate',
'setup',
'shearX',
'shearY',
'shorten',
'sin',
'size',
'smooth',
'sort',
'splice',
'split',
'splitTokens',
'sq',
'sqrt',
'stroke',
'strokeCap',
'strokeJoin',
'strokeWeight',
'subset',
'tan',
'text',
'textAlign',
'textAscent',
'textDescent',
'textFont',
'textLeading',
'textSize',
'textStyle',
'textWidth',
'tint',
'touchIsDown',
'touchX',
'touchY',
'touches',
'translate',
'triangle',
'trim',
'updatePixels',
'vertex',
'width',
'winMouseX',
'winMouseY',
'windowHeight',
'windowWidth',
'writeFile',
'year',
],
},
};
3 changes: 3 additions & 0 deletions src/config/libraryAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import BOOTSTRAP_CSS from
'../../bower_components/bootstrap/dist/css/bootstrap.min.css';
import BOOTSTRAP_JS from
'../../bower_components/bootstrap/dist/js/bootstrap.min.js';
import P5 from '../../bower_components/p5js/lib/p5.min.js';

export const jquery = {javascript: JQUERY};

Expand All @@ -15,3 +16,5 @@ export const lodash = {javascript: LODASH};
export const mustache = {javascript: MUSTACHE};

export const bootstrap = {css: BOOTSTRAP_CSS, javascript: BOOTSTRAP_JS};

export const p5 = {javascript: P5};
7 changes: 7 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6368,6 +6368,10 @@ no-case@^2.2.0:
dependencies:
lower-case "^1.1.1"

node-bin-setup@^1.0.0:
version "1.0.6"
resolved "https://registry.yarnpkg.com/node-bin-setup/-/node-bin-setup-1.0.6.tgz#4b5c9bb937ece702d7069b36ca78af4684677528"

node-fetch@1.6.3:
version "1.6.3"
resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.6.3.tgz#dc234edd6489982d58e8f0db4f695029abcd8c04"
Expand Down Expand Up @@ -6476,6 +6480,9 @@ node-static@^0.7.9:
mime "^1.2.9"
optimist ">=0.3.4"

node@^9.4.0:
version "9.4.0"

nopt@3.0.x:
version "3.0.6"
resolved "https://registry.yarnpkg.com/nopt/-/nopt-3.0.6.tgz#c6465dbf08abcd4db359317f79ac68a646b28ff9"
Expand Down