Skip to content

Instantly share code, notes, and snippets.

View savelee's full-sized avatar

Lee Boonstra savelee

View GitHub Profile
@savelee
savelee / gist:f6a5e35e5a6cfb169315
Created February 8, 2016 15:25
app.json different build destination
"output": {
"base": "${workspace.build.dir}/${build.environment}/${app.name}",
"page": "index.html",
"manifest": "${build.id}.json",
"js": "${build.id}/app.js",
"appCache": {
"enable": false
},
"resources": {
"path": "${build.id}/resources",
######################
# IDE editor files #
######################
.project
.settings
.classpath
.idea
######################
@savelee
savelee / CLI
Last active February 13, 2017 07:38
SENCHA: How to generate a starter app based on a template
//navigate to the ext js 6 folder
sencha package upgrade
sencha generate app -s templates/admin-dashboard/ Dashboard ../my-folder
@savelee
savelee / gist:329c058aa908fbbb0541
Created February 10, 2016 15:41
Example: workspace.json - Sencha
{
"build": {
"dir": "${workspace.dir}/build" //your build folder
},
"packages": {
"dir": "${workspace.dir}/packages/local,${workspace.dir}/packages", //all locations in file system that contain packages
"extract": "${workspace.dir}/packages/remote"
},
"apps": [
"myappfolder" //this array should contain all apps
@savelee
savelee / gist:a38043706673f9774b73
Created February 16, 2016 17:38
Install cURL on Digital Ocean
1. ssh root@<ip>
2. First Install CURL by typing sudo apt-get install curl
3. Then Restart Apache by typing sudo service apache2 restart
4. Then Install PHP5 CURL by typing sudo apt-get install php5-curl
will prompt to install... type y or yes!
5. Then Restart Apache by typing sudo service apache2 restart Done!
@savelee
savelee / js-impl.xml
Created February 21, 2016 16:44
js-impl.xml snippet
<target name="-compile-js" depends="-detect-app-build-properties">
<if>
<x-is-true value="${enable.split.mode}"/>
<then>
<property name="app.output.framework.include"
value="package-sencha-core,framework,toolkit,package-core"/>
<x-compile refid="${compiler.ref.id}">
<![CDATA[
...
@savelee
savelee / gist:4c2fdd2bda303bc03704
Created February 21, 2016 16:46
Custom split build process
<![CDATA[
# Build a set containing everything, the entire application and the used framework.
restore
page
and
save
entireApp
and
# Build a set containing the entire framework.
union
@savelee
savelee / pom.xml
Created February 21, 2016 17:21
Example pom.xml web app
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.ladysign.MavenApp</groupId>
<artifactId>MavenApp</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<name>MavenApp Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
@savelee
savelee / .js
Created April 13, 2016 09:57
Sencha UI Test example - Sencha Test
describe("Email.js", function() {
describe('Compose', function () {
var compose;
// We need to create the email Compose view in a window like the app normally
// does as a Fixture for our tests.
//
beforeEach(function (done) {
compose = Ext.create({
xtype: 'window',
@savelee
savelee / .sh
Last active March 17, 2022 19:29
Run Sencha Test with Webdriver
//run webdriver:
java -jar selenium-server-standalone-2.53.0.jar
//run test archiver
//this requires a TestArchiveStorage folder with a storage.json file
//from ST Studio interface, you will have to add a browser to the pool
cd ~/bin/Sencha/TestArchiveStorage
stc server