Git Product home page Git Product logo

pacman-js's Introduction

Objectifs

  • Migrer ce projet fonctionnel executable sur un navigateur en un projet node.

  • Identifier les principaux éléments du projet et en établir une structure (rétro-ingénerie). Utiliser les fonction import et export de node afin d'effectuer cette réorganisation.

  • Choix d'un bundler

Processus de migration

  • Configuration

  • Initialisation de npm $ npm init -y

  • Installation des paquets nécéssaires :

    • webpack
    • webpack-cli
    • css-loader
    • sass
    • sass-loader
    • style-loader
  • Configuration de webpack

    • Choix du point d'entrée (fichier racine js)
    • Mise en place des loaders Sass
  • Organisation fichiers js

  • Analyse des différents fichiers (variables, classes, fonctions, etc..)

  • Création d'un dossier contenant les différentes classes, à savoir :

  • Les différentes fonctions seront repertoriées dans un fichier, le développeur n'aura plus qu'a importer les fonctions qu'ils désirent dans ses différents scripts, par exemple:

import { gameOver } from './functions';

Why webpack ?

I choosed webpack because I'm used to work with it, it is open source, and it allows us to work with js modules components and a huge amount of libraries. Webpack configuration is pretty simple to understand and to implement.

Webpack gives me the opportunity to make a build and deploy my app aon Netlify at this adress:

https://pacman-jm.netlify.app/

Auteur

Jean MIONNET 🙂💻

pacman-js's People

Contributors

jeanmionnet avatar rdhox avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.