Skip to content

Instantly share code, notes, and snippets.

@kaidesu
Created July 10, 2017 22:33
Show Gist options
  • Save kaidesu/a2cbf061e13114c7367ec067e8e68579 to your computer and use it in GitHub Desktop.
Save kaidesu/a2cbf061e13114c7367ec067e8e68579 to your computer and use it in GitHub Desktop.
Atom snippets file
'.text.html.vue':
'Vue Component':
'prefix': 'template'
'body': """
<template>
$1
</template>
<script>
export default {
$2
}
</script>
"""
'.php':
'Test Method':
'prefix': '@test'
'body': """
/** @test */
public function it_$1
{
$2
}
"""
'*':
'Test Class':
'prefix': 'testclass',
'body': """
<?php
namespace Tests\\\\Feature;
use Tests\\\\TestCase;
use Illuminate\\\\Foundation\\\\Testing\\\\DatabaseMigrations;
class $1Test extends TestCase
{
use DatabaseMigrations;
/** @test */
public function it_$2()
{
$3
}
}
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment