forked from marklagendijk/gulp-ng-html2js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'lookfirst/export2'
Added support for ES2015 modules which is also needed for the typescript support. Signed-off-by: Dominic Böttger <[email protected]>
- Loading branch information
Showing
7 changed files
with
252 additions
and
4 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module.exports = angular.module('fixtures/example.html', []).run(['$templateCache', function($templateCache) { | ||
$templateCache.put('fixtures/example.html', | ||
'<!doctype html>\n' + | ||
'<html>\n' + | ||
' <head>\n' + | ||
' <title>Example</title>\n' + | ||
'\n' + | ||
' <meta charset="utf-8" />\n' + | ||
' <meta http-equiv="Content-type" content="text/html; charset=utf-8" />\n' + | ||
' <meta name="viewport" content="width=device-width, initial-scale=1" />\n' + | ||
' <style type="text/css">\n' + | ||
' body {\n' + | ||
' margin: 0;\n' + | ||
' padding: 0;\n' + | ||
' font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;\n' + | ||
' background-color: #f0f0f2;\n' + | ||
'\n' + | ||
' }\n' + | ||
' </style>\n' + | ||
' <script type="text/javascript">\n' + | ||
' function someInlineScript(){\n' + | ||
' alert("This is some \'inline script")\n' + | ||
' }\n' + | ||
' </script>\n' + | ||
' </head>\n' + | ||
' <body>\n' + | ||
' <ul>\n' + | ||
' <li ng-repeat="item in items">{{ item.name }}</li>\n' + | ||
' </ul>\n' + | ||
' <ul>\n' + | ||
' <li ng-repeat=\'thingy in thingies\'>{{ thingy.name }}</li>\n' + | ||
' </ul>\n' + | ||
' </body>\n' + | ||
'</html>\n' + | ||
''); | ||
}]); |
36 changes: 36 additions & 0 deletions
36
test/expected/exampleWithExportCommonModuleNameNoGenerate.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
module.exports = angular.module('myAwesomePartials').run(['$templateCache', function($templateCache) { | ||
$templateCache.put('fixtures/example.html', | ||
'<!doctype html>\n' + | ||
'<html>\n' + | ||
' <head>\n' + | ||
' <title>Example</title>\n' + | ||
'\n' + | ||
' <meta charset="utf-8" />\n' + | ||
' <meta http-equiv="Content-type" content="text/html; charset=utf-8" />\n' + | ||
' <meta name="viewport" content="width=device-width, initial-scale=1" />\n' + | ||
' <style type="text/css">\n' + | ||
' body {\n' + | ||
' margin: 0;\n' + | ||
' padding: 0;\n' + | ||
' font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;\n' + | ||
' background-color: #f0f0f2;\n' + | ||
'\n' + | ||
' }\n' + | ||
' </style>\n' + | ||
' <script type="text/javascript">\n' + | ||
' function someInlineScript(){\n' + | ||
' alert("This is some \'inline script")\n' + | ||
' }\n' + | ||
' </script>\n' + | ||
' </head>\n' + | ||
' <body>\n' + | ||
' <ul>\n' + | ||
' <li ng-repeat="item in items">{{ item.name }}</li>\n' + | ||
' </ul>\n' + | ||
' <ul>\n' + | ||
' <li ng-repeat=\'thingy in thingies\'>{{ thingy.name }}</li>\n' + | ||
' </ul>\n' + | ||
' </body>\n' + | ||
'</html>\n' + | ||
''); | ||
}]); |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
export default angular.module('fixtures/example.html', []).run(['$templateCache', function($templateCache) { | ||
$templateCache.put('fixtures/example.html', | ||
'<!doctype html>\n' + | ||
'<html>\n' + | ||
' <head>\n' + | ||
' <title>Example</title>\n' + | ||
'\n' + | ||
' <meta charset="utf-8" />\n' + | ||
' <meta http-equiv="Content-type" content="text/html; charset=utf-8" />\n' + | ||
' <meta name="viewport" content="width=device-width, initial-scale=1" />\n' + | ||
' <style type="text/css">\n' + | ||
' body {\n' + | ||
' margin: 0;\n' + | ||
' padding: 0;\n' + | ||
' font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;\n' + | ||
' background-color: #f0f0f2;\n' + | ||
'\n' + | ||
' }\n' + | ||
' </style>\n' + | ||
' <script type="text/javascript">\n' + | ||
' function someInlineScript(){\n' + | ||
' alert("This is some \'inline script")\n' + | ||
' }\n' + | ||
' </script>\n' + | ||
' </head>\n' + | ||
' <body>\n' + | ||
' <ul>\n' + | ||
' <li ng-repeat="item in items">{{ item.name }}</li>\n' + | ||
' </ul>\n' + | ||
' <ul>\n' + | ||
' <li ng-repeat=\'thingy in thingies\'>{{ thingy.name }}</li>\n' + | ||
' </ul>\n' + | ||
' </body>\n' + | ||
'</html>\n' + | ||
''); | ||
}]); |
36 changes: 36 additions & 0 deletions
36
test/expected/exampleWithExportSystemModuleNameNoGenerate.js
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
export default angular.module('myAwesomePartials').run(['$templateCache', function($templateCache) { | ||
$templateCache.put('fixtures/example.html', | ||
'<!doctype html>\n' + | ||
'<html>\n' + | ||
' <head>\n' + | ||
' <title>Example</title>\n' + | ||
'\n' + | ||
' <meta charset="utf-8" />\n' + | ||
' <meta http-equiv="Content-type" content="text/html; charset=utf-8" />\n' + | ||
' <meta name="viewport" content="width=device-width, initial-scale=1" />\n' + | ||
' <style type="text/css">\n' + | ||
' body {\n' + | ||
' margin: 0;\n' + | ||
' padding: 0;\n' + | ||
' font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;\n' + | ||
' background-color: #f0f0f2;\n' + | ||
'\n' + | ||
' }\n' + | ||
' </style>\n' + | ||
' <script type="text/javascript">\n' + | ||
' function someInlineScript(){\n' + | ||
' alert("This is some \'inline script")\n' + | ||
' }\n' + | ||
' </script>\n' + | ||
' </head>\n' + | ||
' <body>\n' + | ||
' <ul>\n' + | ||
' <li ng-repeat="item in items">{{ item.name }}</li>\n' + | ||
' </ul>\n' + | ||
' <ul>\n' + | ||
' <li ng-repeat=\'thingy in thingies\'>{{ thingy.name }}</li>\n' + | ||
' </ul>\n' + | ||
' </body>\n' + | ||
'</html>\n' + | ||
''); | ||
}]); |
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