Skip to content

Instantly share code, notes, and snippets.

@peteruithoven
Created July 14, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peteruithoven/d8a611b854579eb9a88f to your computer and use it in GitHub Desktop.
Save peteruithoven/d8a611b854579eb9a88f to your computer and use it in GitHub Desktop.
JSPM snippets for Atom
'.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