Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
es6-epf
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
school
formation-dev-web
es6-epf
Commits
de4c0713
Commit
de4c0713
authored
Feb 27, 2024
by
Olivier ABDELNOUR
Browse files
Options
Downloads
Patches
Plain Diff
wip
parent
31ad2b9b
No related branches found
No related tags found
No related merge requests found
Pipeline
#60114
passed with warnings
Feb 27, 2024
Stage: training_resources
Stage: clean_training_resources
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
resources/docs/docs/chapters/tp/bundle2.md
+48
-4
48 additions, 4 deletions
resources/docs/docs/chapters/tp/bundle2.md
resources/docs/mkdocs.yml
+1
-1
1 addition, 1 deletion
resources/docs/mkdocs.yml
with
49 additions
and
5 deletions
resources/docs/docs/chapters/tp/bundle.md
→
resources/docs/docs/chapters/tp/bundle
2
.md
+
48
−
4
View file @
de4c0713
...
@@ -45,7 +45,51 @@ After this chapter, thanks to the _ES modules_, there will be no more imported f
...
@@ -45,7 +45,51 @@ After this chapter, thanks to the _ES modules_, there will be no more imported f
- Write an `import` statement to import the `parseUrl` function if required.
- Write an `import` statement to import the `parseUrl` function if required.
??? note "Show the resulting files"
??? note "Show the resulting files"
=== "welcome.js"
```js linenums="1"
export function WelcomeComponent() {}
/* method WelcomeComponent.init */
WelcomeComponent.prototype.init = function init() {
// ...
};
// ...
```
=== "game.js"
```js linenums="1"
import { parseUrl } from "./utils";
var environment = {
api: {
host: "http://localhost:8081",
},
};
export function GameComponent() {
// ...
}
/* method GameComponent.init */
GameComponent.prototype.init = function init() {
// ...
};
// ...
```
=== "score.js"
```js linenums="1"
import { parseUrl } from "./utils";
export function ScoreComponent() {
// ...
}
// ...
```
-
Edit
`main.js`
. Look at
`TODO #import-components`
for instructions.
-
Edit
`main.js`
. Look at
`TODO #import-components`
for instructions.
...
...
This diff is collapsed.
Click to expand it.
resources/docs/mkdocs.yml
+
1
−
1
View file @
de4c0713
...
@@ -5,7 +5,7 @@ nav:
...
@@ -5,7 +5,7 @@ nav:
-
"
The
package
manager"
:
chapters/tp/npm.md
-
"
The
package
manager"
:
chapters/tp/npm.md
-
"
Single
Page
Application
(SPA)"
:
chapters/tp/spa.md
-
"
Single
Page
Application
(SPA)"
:
chapters/tp/spa.md
-
"
Webpack"
:
chapters/tp/webpack.md
-
"
Webpack"
:
chapters/tp/webpack.md
-
"
The
bundle"
:
chapters/tp/bundle.md
-
"
The
bundle"
:
chapters/tp/bundle
2
.md
-
"
CSS
Loader"
:
chapters/tp/css-loader.md
-
"
CSS
Loader"
:
chapters/tp/css-loader.md
-
"
HTML
Loader"
:
chapters/tp/html-loader.md
-
"
HTML
Loader"
:
chapters/tp/html-loader.md
-
"
Classes"
:
chapters/tp/es6-classes.md
-
"
Classes"
:
chapters/tp/es6-classes.md
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment