Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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