Created
July 14, 2015 14:13
-
-
Save peteruithoven/d8a611b854579eb9a88f to your computer and use it in GitHub Desktop.
JSPM snippets for Atom
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
'.text.html': | |
'JSPM html': | |
'prefix': 'html-jsmp' | |
'body': """ | |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>$3</title> | |
<script src="jspm_packages/system.js" charset="utf-8"></script> | |
<script src="config.js" charset="utf-8"></script> | |
<script type="text/javascript"> | |
System.import('$1'); | |
</script> | |
</head> | |
<body> | |
$2 | |
</body> | |
</html> | |
""" | |
'.source.js': | |
'use strict': | |
'prefix': 'usestrict' | |
'body': "'use strict'\n" | |
'importfrom': | |
'prefix': 'imporfrom' | |
'body': "import $1 from '$2';\n" | |
'export default class': | |
'prefix': 'exportdefaultclass' | |
'body': """ | |
export default class ${1:ClassName} { | |
constructor($2) { | |
$3 | |
} | |
} | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment