Permalink
Browse files

feat(new-application): add scaffolding feature for navigation skeleton

  • Loading branch information...
jwx committed May 10, 2018
1 parent 148148c commit ea4ce1af3c5c1c07683c9f72c1b128f6b1907286
Showing with 1,379 additions and 356 deletions.
  1. +71 −0 lib/commands/generate-skeletons/project-definitions.json
  2. +9 −12 ...ions/{skeleton-requirejs-esnext-aspnetcore.json → skeleton-requirejs-esnext-jest-aspnetcore.json}
  3. +9 −12 ...letons/project-definitions/{skeleton-requirejs-esnext.json → skeleton-requirejs-esnext-jest.json}
  4. +46 −0 lib/commands/generate-skeletons/project-definitions/skeleton-requirejs-esnext-karma-aspnetcore.json
  5. +46 −0 lib/commands/generate-skeletons/project-definitions/skeleton-requirejs-esnext-karma.json
  6. +9 −12 ...eleton-requirejs-typescript-aspnetcore.json → skeleton-requirejs-typescript-jest-aspnetcore.json}
  7. +9 −12 ...roject-definitions/{skeleton-requirejs-typescript.json → skeleton-requirejs-typescript-jest.json}
  8. +46 −0 ...mmands/generate-skeletons/project-definitions/skeleton-requirejs-typescript-karma-aspnetcore.json
  9. +46 −0 lib/commands/generate-skeletons/project-definitions/skeleton-requirejs-typescript-karma.json
  10. +9 −12 ...itions/{skeleton-systemjs-esnext-aspnetcore.json → skeleton-systemjs-esnext-jest-aspnetcore.json}
  11. +9 −12 ...keletons/project-definitions/{skeleton-systemjs-esnext.json → skeleton-systemjs-esnext-jest.json}
  12. +46 −0 lib/commands/generate-skeletons/project-definitions/skeleton-systemjs-esnext-karma-aspnetcore.json
  13. +46 −0 lib/commands/generate-skeletons/project-definitions/skeleton-systemjs-esnext-karma.json
  14. +9 −12 ...skeleton-systemjs-typescript-aspnetcore.json → skeleton-systemjs-typescript-jest-aspnetcore.json}
  15. +9 −12 .../project-definitions/{skeleton-systemjs-typescript.json → skeleton-systemjs-typescript-jest.json}
  16. +46 −0 ...ommands/generate-skeletons/project-definitions/skeleton-systemjs-typescript-karma-aspnetcore.json
  17. +46 −0 lib/commands/generate-skeletons/project-definitions/skeleton-systemjs-typescript-karma.json
  18. +9 −12 ...initions/{skeleton-webpack-esnext-aspnetcore.json → skeleton-webpack-esnext-jest-aspnetcore.json}
  19. +9 −12 ...-skeletons/project-definitions/{skeleton-webpack-esnext.json → skeleton-webpack-esnext-jest.json}
  20. +53 −0 lib/commands/generate-skeletons/project-definitions/skeleton-webpack-esnext-karma-aspnetcore.json
  21. +53 −0 lib/commands/generate-skeletons/project-definitions/skeleton-webpack-esnext-karma.json
  22. +9 −12 .../{skeleton-webpack-typescript-aspnetcore.json → skeleton-webpack-typescript-jest-aspnetcore.json}
  23. +9 −12 ...ns/project-definitions/{skeleton-webpack-typescript.json → skeleton-webpack-typescript-jest.json}
  24. +53 −0 ...commands/generate-skeletons/project-definitions/skeleton-webpack-typescript-karma-aspnetcore.json
  25. +53 −0 lib/commands/generate-skeletons/project-definitions/skeleton-webpack-typescript-karma.json
  26. +11 −14 lib/commands/new/buildsystems/cli/index.js
  27. +16 −5 lib/commands/new/buildsystems/cli/unit-test-runners/karma.js
  28. +7 −5 lib/commands/new/buildsystems/general/integration-test-runner/protractor.js
  29. +14 −1 lib/commands/new/buildsystems/general/unit-test-runners/jasmine.js
  30. +7 −8 lib/commands/new/buildsystems/webpack/index.js
  31. +2 −3 lib/commands/new/buildsystems/webpack/transpilers/babel.js
  32. +1 −4 lib/commands/new/buildsystems/webpack/unit-test-runners/karma.js
  33. +13 −38 lib/commands/new/new-application.json
  34. +1 −1 lib/commands/new/project-template.js
  35. +1 −1 lib/dependencies.json
  36. +1 −1 lib/resources/content/karma.conf.js
  37. +1 −1 lib/resources/content/karma.conf.ts
  38. +1 −1 lib/resources/content/tsconfig.template.json
  39. +8 −7 lib/resources/features/bootstrap.js
  40. +1 −7 lib/resources/features/fontAwesome.js
  41. +5 −5 lib/resources/features/jquery.js
  42. +2 −0 lib/resources/features/navigation/welcome.js
  43. +2 −0 lib/resources/features/navigation/welcome.ts
  44. +3 −3 lib/resources/src/app.template.html
  45. +4 −0 lib/resources/src/app.template.js
  46. +1 −1 lib/resources/src/main-webpack.template.js
  47. +54 −0 lib/resources/test/e2e/demo.e2e.template.js
  48. +55 −0 lib/resources/test/e2e/demo.e2e.template.ts
  49. +6 −6 lib/resources/test/e2e/demo.e2e.ts
  50. +13 −0 lib/resources/test/e2e/skeleton.po.template.js
  51. +15 −0 lib/resources/test/e2e/skeleton.po.template.ts
  52. +1 −1 lib/resources/test/e2e/skeleton.po.ts
  53. +46 −0 lib/resources/test/e2e/welcome.po.template.js
  54. +50 −0 lib/resources/test/e2e/welcome.po.template.ts
  55. +1 −1 lib/resources/test/e2e/welcome.po.ts
  56. +52 −0 lib/resources/test/unit/app.spec.template.js
  57. +53 −0 lib/resources/test/unit/app.spec.template.ts
  58. +42 −0 lib/resources/test/unit/child-router.spec.js
  59. +42 −0 lib/resources/test/unit/child-router.spec.ts
  60. +30 −0 lib/resources/test/unit/users.spec.js
  61. +36 −0 lib/resources/test/unit/users.spec.ts
  62. +0 −37 lib/resources/test/webpack/babel/karma-bundle.js
  63. +0 −37 lib/resources/test/webpack/typescript/karma-bundle.js
  64. +4 −6 lib/workflow/activities/project-create.js
  65. +16 −16 package-lock.json
  66. +2 −2 spec/lib/workflow/state-assign.spec.js
@@ -0,0 +1,71 @@
{
"type": [
"project:application"
],
"bundler": [
{
"id": "webpack",
"displayName": "Webpack"
}
],
"build": [
{
"options": {
"server": "dev",
"extractCss": "prod",
"coverage": false
}
}
],
"platform": [
{
"id": "aspnetcore",
"displayName": "ASP.NET Core"
}
],
"loader": [
{
"id": "none",
"displayName": "None"
}
],
"transpiler": [
{
"id": "typescript",
"displayName": "TypeScript",
"fileExtension": ".ts"
}
],
"markupProcessor": [
{
"id": "minimum",
"displayName": "Minimal Minification",
"fileExtension": ".html"
}
],
"cssProcessor": [
{
"id": "none",
"displayName": "None",
"fileExtension": ".css"
}
],
"editor": [
{
"id": "vscode",
"displayName": "Visual Studio Code"
}
],
"unitTestRunner": [
{
"id": "jest",
"displayName": "Jest"
}
],
"integrationTestRunner": [
{
"id": "protractor",
"displayName": "Protractor"
}
]
}
@@ -1,5 +1,5 @@
{
"name": "skeleton-requirejs-esnext-aspnetcore",
"name": "skeleton-requirejs-esnext-jest-aspnetcore",
"type": "project:application",
"bundler": {
"id": "cli",
@@ -37,18 +37,15 @@
"id": "vscode",
"displayName": "Visual Studio Code"
},
"unitTestRunners": [
{
"id": "jest",
"displayName": "Jest"
},
{
"id": "karma",
"displayName": "Karma"
}
],
"unitTestRunner": {
"id": "jest",
"displayName": "Jest"
},
"integrationTestRunner": {
"id": "protractor",
"displayName": "Protractor"
},
"features": {
"navigation": "navigation"
}
}
}
@@ -1,5 +1,5 @@
{
"name": "skeleton-requirejs-esnext",
"name": "skeleton-requirejs-esnext-jest",
"type": "project:application",
"bundler": {
"id": "cli",
@@ -37,18 +37,15 @@
"id": "vscode",
"displayName": "Visual Studio Code"
},
"unitTestRunners": [
{
"id": "jest",
"displayName": "Jest"
},
{
"id": "karma",
"displayName": "Karma"
}
],
"unitTestRunner": {
"id": "jest",
"displayName": "Jest"
},
"integrationTestRunner": {
"id": "protractor",
"displayName": "Protractor"
},
"features": {
"navigation": "navigation"
}
}
}
@@ -0,0 +1,46 @@
{
"name": "skeleton-requirejs-esnext-karma-aspnetcore",
"type": "project:application",
"bundler": {
"id": "cli",
"displayName": "Aurelia-CLI"
},
"platform": {
"id": "aspnetcore",
"displayName": "ASP.NET Core"
},
"loader": {
"id": "require",
"displayName": "RequireJS"
},
"transpiler": {
"id": "babel",
"displayName": "Babel",
"fileExtension": ".js"
},
"markupProcessor": {
"id": "minimum",
"displayName": "Minimal Minification",
"fileExtension": ".html"
},
"cssProcessor": {
"id": "none",
"displayName": "None",
"fileExtension": ".css"
},
"editor": {
"id": "vscode",
"displayName": "Visual Studio Code"
},
"unitTestRunner": {
"id": "karma",
"displayName": "Karma"
},
"integrationTestRunner": {
"id": "protractor",
"displayName": "Protractor"
},
"features": {
"navigation": "navigation"
}
}
@@ -0,0 +1,46 @@
{
"name": "skeleton-requirejs-esnext-karma",
"type": "project:application",
"bundler": {
"id": "cli",
"displayName": "Aurelia-CLI"
},
"platform": {
"id": "web",
"displayName": "Web"
},
"loader": {
"id": "require",
"displayName": "RequireJS"
},
"transpiler": {
"id": "babel",
"displayName": "Babel",
"fileExtension": ".js"
},
"markupProcessor": {
"id": "minimum",
"displayName": "Minimal Minification",
"fileExtension": ".html"
},
"cssProcessor": {
"id": "none",
"displayName": "None",
"fileExtension": ".css"
},
"editor": {
"id": "vscode",
"displayName": "Visual Studio Code"
},
"unitTestRunner": {
"id": "karma",
"displayName": "Karma"
},
"integrationTestRunner": {
"id": "protractor",
"displayName": "Protractor"
},
"features": {
"navigation": "navigation"
}
}
@@ -1,5 +1,5 @@
{
"name": "skeleton-requirejs-typescript-aspnetcore",
"name": "skeleton-requirejs-typescript-jest-aspnetcore",
"type": "project:application",
"bundler": {
"id": "cli",
@@ -37,18 +37,15 @@
"id": "vscode",
"displayName": "Visual Studio Code"
},
"unitTestRunners": [
{
"id": "jest",
"displayName": "Jest"
},
{
"id": "karma",
"displayName": "Karma"
}
],
"unitTestRunner": {
"id": "jest",
"displayName": "Jest"
},
"integrationTestRunner": {
"id": "protractor",
"displayName": "Protractor"
},
"features": {
"navigation": "navigation"
}
}
}
@@ -1,5 +1,5 @@
{
"name": "skeleton-requirejs-typescript",
"name": "skeleton-requirejs-typescript-jest",
"type": "project:application",
"bundler": {
"id": "cli",
@@ -37,18 +37,15 @@
"id": "vscode",
"displayName": "Visual Studio Code"
},
"unitTestRunners": [
{
"id": "jest",
"displayName": "Jest"
},
{
"id": "karma",
"displayName": "Karma"
}
],
"unitTestRunner": {
"id": "jest",
"displayName": "Jest"
},
"integrationTestRunner": {
"id": "protractor",
"displayName": "Protractor"
},
"features": {
"navigation": "navigation"
}
}
}
@@ -0,0 +1,46 @@
{
"name": "skeleton-requirejs-typescript-karma-aspnetcore",
"type": "project:application",
"bundler": {
"id": "cli",
"displayName": "Aurelia-CLI"
},
"platform": {
"id": "aspnetcore",
"displayName": "ASP.NET Core"
},
"loader": {
"id": "require",
"displayName": "RequireJS"
},
"transpiler": {
"id": "typescript",
"displayName": "TypeScript",
"fileExtension": ".ts"
},
"markupProcessor": {
"id": "minimum",
"displayName": "Minimal Minification",
"fileExtension": ".html"
},
"cssProcessor": {
"id": "none",
"displayName": "None",
"fileExtension": ".css"
},
"editor": {
"id": "vscode",
"displayName": "Visual Studio Code"
},
"unitTestRunner": {
"id": "karma",
"displayName": "Karma"
},
"integrationTestRunner": {
"id": "protractor",
"displayName": "Protractor"
},
"features": {
"navigation": "navigation"
}
}
@@ -0,0 +1,46 @@
{
"name": "skeleton-requirejs-typescript-karma",
"type": "project:application",
"bundler": {
"id": "cli",
"displayName": "Aurelia-CLI"
},
"platform": {
"id": "web",
"displayName": "Web"
},
"loader": {
"id": "require",
"displayName": "RequireJS"
},
"transpiler": {
"id": "typescript",
"displayName": "TypeScript",
"fileExtension": ".ts"
},
"markupProcessor": {
"id": "minimum",
"displayName": "Minimal Minification",
"fileExtension": ".html"
},
"cssProcessor": {
"id": "none",
"displayName": "None",
"fileExtension": ".css"
},
"editor": {
"id": "vscode",
"displayName": "Visual Studio Code"
},
"unitTestRunner": {
"id": "karma",
"displayName": "Karma"
},
"integrationTestRunner": {
"id": "protractor",
"displayName": "Protractor"
},
"features": {
"navigation": "navigation"
}
}
Oops, something went wrong.

0 comments on commit ea4ce1a

Please sign in to comment.