Record a nodejs development and use webpack to package and publish the project
Premise: nodejs environment
1. Initialize project
npm init
After the initial project, there will be one more package. In the project directory JSON file, and then the configuration is related to this file
My file directory structure is as follows:
The. babelrc configuration file will be described later
2. Download and configure webpack ...
Posted by frigidman on Sat, 22 Jan 2022 14:14:47 +0100
Authoring team management + Wechaty robot = unlimited possibilities
User storyIn fact, Authing team management + Wechaty robot can realize many functions to improve the efficiency of traditional personnel management. You can even do some data analysis and statistics to assist decision-making. Here I have listed a few simple realistic scenes, hoping to help you understand.Authing as upstream data sourceSynchroni ...
Posted by common on Fri, 21 Jan 2022 16:06:17 +0100
Use puppeter to extract the video address in the web page
The project requirement is to provide an interface to capture the video address in the web page by entering a web page address! For example, open a Web addressYou need to extract the video address from the web page. As the inertial thinking of front-end developers, it's not very simple to see the html structure of this web page. It's done in on ...
Posted by assgar on Fri, 21 Jan 2022 11:51:28 +0100
JS deep excavation: event mechanism Q & A - registered event listening, event response operation, bubbling and capture
catalog:
1,Event mechanism concept
2,Method of registering event listening
3,Event operation
4,Bubbling and trapping
1. Event mechanismProblem Description:1) How does the event mechanism work? How is it different from the event loop mechanism?Answer:Event mechanism is different from event loop. It is user interaction level and depends on event ...
Posted by 8ball on Thu, 20 Jan 2022 20:58:30 +0100
Recent bug collection
The four front-end bug s in the recent personal learning process are only personal records. Please be careful for reference!
catalogue
bug [ @multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js ]
Bug ['Vue cli service' is not an internal or external command, nor is it a runnable program]
bug [ npm ER ...
Posted by ManicMax on Thu, 20 Jan 2022 02:49:34 +0100
[solid foundation of vue.js] nodejs introduction npm cnpm installation and uninstallation module
nodejs understanding
Just as java needs a jvm virtual machine to run, js execution can be executed in the browser. Usually, we execute through the chrome console command window, that is, the browser supports js operation. nodejs is such a platform that can run js without the browser
node is a javascript running environment (platform) used to ...
Posted by hooch_au78 on Tue, 18 Jan 2022 21:43:52 +0100
Summary of steps to run amis code using VScode
This article mainly uses VSCode to view the web pages written in the amis framework. There are few online tutorials. Here I summarize it by collecting online data. I hope it will be helpful to you. Please forgive me for any shortcomings
get into https://nodejs.org/zh-cn/ Website, download and install. There is little difference in version sele ...
Posted by Dargrotek on Sun, 16 Jan 2022 03:15:43 +0100
node custom command line tool cli
Objective: to create a cli tool called sun
Create project folder
mkdir vue-auto-router-cli
Initialize package json
npm init -y
Installation dependency
npm i commander download-git-repo ora handlebars figlet clear chalk open watch -s
npm package nameeffectcommanderFor custom commandsdownload-git-repoFor downloading github projectsora ...
Posted by camoconnell.com on Sat, 15 Jan 2022 05:51:20 +0100
Nodejs Operations on File Data and Structure
......
3. Operation on file structure
3.1 fs.readdir(url,(error,data)=>{})
Role: Read all files in the folder Reference: Path to url folder Two parameters: callback function, built-in two parameters, error information and resource handle
const fs = require('fs');
//Asynchronous read mode
fs.readdir('./file',(error,data)=>{
if(error): ...
Posted by Rithiur on Sat, 15 Jan 2022 01:12:29 +0100
An implementation of isolated HTTP dependency stable running e2e test cases
backgroundEnd to end testing is used to verify the overall behavior of the application.Compared with Unit Testing, which focuses on function verification, e2e is more prone to external dependencies, such as relying on external HTTP interface data, MYSQL data, Redis data, etc. These can be understood as external data dependencies, which affect t ...
Posted by Dev on Fri, 14 Jan 2022 17:21:46 +0100