$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]| #!/bin/bash | |
| # dontforget | |
| # | |
| # A stupid script for short term reminders in bash | |
| # | |
| # Arguments just need to contain a number and a bunch of words. | |
| # | |
| # The number can be anywhere in the arguments, but there shouldn't | |
| # be any other numeric digits. | |
| # |
$ npm install --save babel-cli babel-preset-es2015
$ npm install --save-dev jasmine.babelrc:
{
"presets": ["es2015"]| project.afterEvaluate { | |
| project.("connectedDebugAndroidTest").doFirst { | |
| def originalProvider = deviceProvider | |
| deviceProvider = [ | |
| getName : { originalProvider.getName() }, | |
| init : { originalProvider.init() }, | |
| terminate : { originalProvider.terminate() }, | |
| getDevices : { filterDevices(originalProvider.getDevices()) }, | |
| getTimeoutInMs: { originalProvider.getTimeoutInMs() }, | |
| isConfigured : { originalProvider.isConfigured() }, |
| @Grab('com.github.groovy-wslite:groovy-wslite:1.1.2') | |
| import wslite.rest.* | |
| def consumerKey = "CONSUMER_KEY" | |
| def consumerToken = "CONSUMER_TOKEN" | |
| def host = "https://bintray.com" | |
| def client = new RESTClient(host) | |
| def releaseClient = new RESTClient("https://gvm-vendor-dev.herokuapp.com") |
| import org.grooscript.asts.GsNative | |
| class Faker { | |
| private _faker | |
| @GsNative | |
| private faker() {/* | |
| if (!this._faker) { | |
| this._faker = require('faker'); | |
| } |
| task srcZip(type:Zip) { | |
| appendix = 'gitsources' | |
| from project.projectDir | |
| doFirst { | |
| Set excludeList = [relativePath(archivePath).toString()] | |
| def p = "git status --ignored --porcelain .".execute([], project.projectDir) | |
| def writer = new StringWriter() | |
| p.consumeProcessOutput(writer, null) |
| /** | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2015 Circle Internet Financial | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
| import com.google.auto.value.AutoValue; | |
| import java.lang.annotation.Retention; | |
| import java.lang.annotation.Target; | |
| import static java.lang.annotation.ElementType.TYPE; | |
| import static java.lang.annotation.RetentionPolicy.RUNTIME; | |
| /** | |
| * Marks an {@link AutoValue @AutoValue}-annotated type for proper Gson serialization. | |
| * <p> |
| def toCamelCase(String string) { | |
| String result = "" | |
| string.findAll("[^\\W]+") { String word -> | |
| result += word.capitalize() | |
| } | |
| return result | |
| } | |
| afterEvaluate { project -> | |
| Configuration runtimeConfiguration = project.configurations.getByName('compile') |
| /* | |
| * Copyright 2014 Chris Banes | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |