Skip to content

Instantly share code, notes, and snippets.

View bryceosterhaus's full-sized avatar
🐕

Bryce Osterhaus bryceosterhaus

🐕
View GitHub Profile
🌎 ➜ js-toolkit (pr-990) ✔ yarn qa
yarn run v1.22.5
$ yarn && yarn build && yarn qa:only
[1/4] 🔍 Resolving packages...
success Already up-to-date.
$ lerna run build
lerna notice cli v3.20.1
lerna info Executing command in 26 packages: "yarn run build"
lerna info run Ran npm script 'build' in 'liferay-npm-bundler-loader-sass-loader' in 5.1s:
$ tsc && yarn copyfiles
html {
background: red;
}
class OneDialog extends HTMLElement {
connectedCallback() {
this.innerHTML = `<h1>Hello, World!</h1>`;
}
}
customElements.define('one-dialog', OneDialog);
<ClayLabel withClose={false}>
<ClayLabel.ItemBefore>{'Content before'}</ClayLabel.ItemBefore>
<ClayLabel.ItemExpand>{'Label'}</ClayLabel.ItemExpand>
</ClayLabel>
<ClayLabel.Base>
<ClayLabel.ItemBefore>{'Content before'}</ClayLabel.ItemBefore>
<ClayLabel.ItemExpand>{'Label'}</ClayLabel.ItemExpand>
</ClayLabel.Base>
<?xml version="1.0" encoding="UTF-8"?>
<testsuite hostname="" id="0" errors="0" failures="1" name="Jest" package="dynamic-data-mapping.dynamic-data-mapping-form-field-type" skipped="0" tests="150" time="0" timestamp="1548113141147">
<testcase classname="dynamic-data-mapping.dynamic-data-mapping-form-field-type.test.metal.js.Date" name="Field Date should be not edidable" time="0.047">
</testcase>
<testcase classname="dynamic-data-mapping.dynamic-data-mapping-form-field-type.test.metal.js.Date" name="Field Date should have a tip" time="0.009">
</testcase>
<testcase classname="dynamic-data-mapping.dynamic-data-mapping-form-field-type.test.metal.js.Date" name="Field Date should have an id" time="0.007">
</testcase>
<testcase classname="dynamic-data-mapping.dynamic-data-mapping-form-field-type.test.metal.js.Date" name="Field Date should have a label" time="0.005">
</testcase>

Initial

{
	"scripts": {
		"build": "metalsoy --soyDeps \"node_modules/+(metal-progressbar|metal-tooltip|com.liferay.frontend.js.web)/**/*.soy\" && cross-env NODE_ENV=production babel --source-maps -d classes/META-INF/resources src/main/resources/META-INF/resources && liferay-npm-bundler && npm run cleanSoy",
		"csf": "csf src/**/*.js test/**/*.js",
		"format": "npm run csf -- -i",
		"test": "jest"
	}
Row {
handleMoveDown() {
this.props.onChange(this.props.index, -1);
}
handleMoveUp() {
this.props.onChange(this.props.index, 1);
}
}
@bryceosterhaus
bryceosterhaus / test.md
Last active July 12, 2018 20:57
VS Code setup

CLI commands for extensions:

I ran code --list-extensions | xargs -L 1 echo code --install-extension

code --install-extension 2gua.rainbow-brackets
code --install-extension andys8.jest-snippets
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
code --install-extension dbaeumer.vscode-eslint
code --install-extension dcortes92.FreeMarker
#workbench\2e parts\2e sidebar > div.composite.title {
display: none;
}
class MyComponent extends Component {
render() {
return (
<div class="foo"></div>
);
}
}
<MyComponent elementClasses="bar" />