This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://github.com/cloxp/cloxp-install/releases/download/pre-0.0.8/cloxp-pre-0.0.8.zip | |
unzip cloxp-pre-0.0.8.zip | |
./install.sh | |
cd LivelyKernel | |
sed -i '' 's|+refs/tags/cloxp-pre-0.0.8:refs/tags/cloxp-pre-0.0.8|+refs/heads/*:refs/remotes/origin/*|' .git/config | |
git fetch origin clojure-support | |
git checkout clojure-support | |
npm update | |
cd ..; | |
./start.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var exec = require("child_process").exec; | |
var path = require("path"); | |
var fs = require('fs'); | |
var util = require("util"); | |
var enabled = false; | |
var sslDir = path.join(process.env.HOME, "lively-web.org/http/ssl/"); | |
var outDir = path.join(sslDir, "lively-web-CA"); | |
var registerCertScript = path.join(sslDir, "register-cert.sh"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function withNPMDirDo(func) { | |
exec('npm bin -g', function(code, out, err) { | |
var npmBinDir = String(out).trim(), | |
npmlibDir = path.join(npmBinDir, '..', 'lib', 'node_modules', 'npm'); | |
func(null, npmlibDir); | |
}); | |
} | |
npmDo = function npmDo(/*command, orgs..., callback*/) { | |
var args = Array.prototype.slice.call(arguments), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.World { | |
background-color: rgb(187, 180, 188); | |
} | |
.Window { | |
background-color: rgb(197, 200, 198); | |
box-shadow: none; | |
border-radius: 3px; | |
border: 1px solid rgb(220, 220, 220); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var c = lively.Config; | |
c.set('lively2livelyAutoStart', false); | |
c.set('lively2livelyEnableConnectionIndicator', false); | |
c.set('removeDOMContentBeforeWorldLoad', false); | |
c.set('manuallyCreateWorld', true); | |
c.set('changesetsExperiment', false); | |
// FIXME, for compatibility with requirejs | |
lively.whenLoaded(function() { | |
setTimeout(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global System, beforeEach, afterEach, describe, it*/ | |
import { expect } from "mocha-es6"; | |
import { removeDir, removeFile, createFiles, writeFile, modifyFile, readFile, inspect as i } from "./helpers.js"; | |
import { registerPackage } from "../src/packages.js"; | |
import { getSystem, removeSystem, printSystemConfig } from "../src/system.js"; | |
import { bundle } from "../src/bundling.js"; | |
var testDir = System.normalizeSync("lively.modules/tests/"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*global require, before, after, beforeEach, afterEach, describe, it*/ | |
import { expect } from "mocha-es6"; | |
import { fork } from "child_process" | |
if (System.get("@system-env").node) { | |
describe("bootstrap", function() { | |
this.timeout(5000); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- | |
# 1. Install packages | |
if [[ ! -d lively-loader ]]; then | |
git clone -b master https://github.com/LivelyKernel/node-lively-loader lively-loader | |
pushd lively-loader; | |
npm install; | |
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>first-mate-web</title> | |
</head> | |
<body> | |
<h2>expected</h2> | |
<pre> | |
[ { value: 'var', scopes: [ 'source.js', 'storage.type.var.js' ] }, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function extractHTMLFromTextMorph(textMorph, range) { | |
// let html = extractHTMLFromTextMorph(this, this.selection); | |
evt.domEvt.clipboardData.setData("text/html", textLayerNode.outerHTML); | |
let node = textMorph.env.renderer.getNodeForMorph(textMorph), | |
textLength = this.document.stringSize, | |
firstLineNode = node.querySelector(".newtext-text-layer.actual"), | |
// _ = console.log(`START, looking for ${textMorph.positionToIndex(range.start)}`), | |
start = findNodeWithOffsetAt(textMorph.positionToIndex(range.start), firstLineNode, undefined, textLength, false), |