随笔分类 -  web 构建工具

deno学习一 安装试用&&几个问题解决
摘要:基本的依赖可以参考github 我的环境是centos 7 基本安装 需要golang 以及yarn安装 Protobuf 3 这是官方的方式,实际可以变通下 cd ~ wget https://github.com/google/protobuf/releases/download/v3.1.0/ 阅读全文

posted @ 2018-06-07 16:52 荣锋亮 阅读(2013) 评论(0) 推荐(0) 编辑

nexus bower 集成使用
摘要:创建nexus bower proxy host 比较简单,如下图: 安装bower && bower-nexus resolver npm install -g bower-nexus3-resolver or npm install bower-nexus3-resolver --dev npm 阅读全文

posted @ 2018-05-28 14:13 荣锋亮 阅读(474) 评论(0) 推荐(0) 编辑

nexus 使用Raw Repositories 进行maven site 发布
摘要:实际项目中我们可能需要进行maven 项目的site 文档发布,一般的处理是生成之后,然后在进行发布到一个静态 服务器进行页面访问,nexus3 提供了一个Raw Repositories 很方便可以直接帮我们搞定问题 创建Raw Repositories 我选择了s3 minio 做为存储,实际上 阅读全文

posted @ 2018-05-28 09:41 荣锋亮 阅读(2628) 评论(0) 推荐(0) 编辑

Tencent Server Web 安装试用
摘要:Tencent Server Web 安装试用 私有环境搭建,使用docker-compose 进行memcache 安装 参考github 代码 https://github.com/rongfengliang/tsw-docker-compose 启动&&运行 docker-compose 运行 阅读全文

posted @ 2018-05-21 10:30 荣锋亮 阅读(276) 评论(0) 推荐(0) 编辑

drone 学习六 发布部署&&集成私有容器仓库&&构建代码s3 保存
摘要:备注: 需要进行drone 以及gitlab 环境的配置,可以参考相关资料 1. 参考项目 https://github.com/rongfengliang/drone-appdemo 2. drone 构建配置(使用docker && s3 插件) pipeline: backend: image 阅读全文

posted @ 2018-05-03 13:21 荣锋亮 阅读(1031) 评论(0) 推荐(0) 编辑

使用gopherjs 进行web 应用开发
摘要:1. 安装 go get -u github.com/gopherjs/gopherjs 2. 基本代码使用 备注: 这个只是一个简单的demo,进行pi 运算,结果还真是快 a. code golang package main import ( "fmt" "math" "time" ) fun 阅读全文

posted @ 2018-04-13 11:02 荣锋亮 阅读(1218) 评论(0) 推荐(0) 编辑

grpc nodejs tools 安装问题
摘要:grpc nodejs 应用安装提示错误: stack Error: EPERM: operation not permitted, utime '/usr/local/lib/node_modules/grpc-tools/bin' 解决方法: npm install -g grpc-tools 阅读全文

posted @ 2018-03-09 20:07 荣锋亮 阅读(736) 评论(0) 推荐(0) 编辑

使用 commander && inquirer 构建专业的node cli
摘要:备注: 比较简单就是使用nodejs 的两个类库帮助我们进行开发而已,具体的使用参考类库文档 1. 项目初始化 a. 安装依赖 yarn init -y yarn add commander inquirer ├── README.md ├── bin │ └── index.js ├── pack 阅读全文

posted @ 2018-01-08 21:34 荣锋亮 阅读(1874) 评论(0) 推荐(0) 编辑

让nodejs 支持 es6 import
摘要:备注: 尽管nodejs 新版本已经支持es6 的好多特性了,但是还是有部分不支持,为了使用,实际上我们有一个 比较强大工具 bable,下面介绍几个比较简单的用法。 1. bable-cli 中的 babel-node a. 初始化项目 yarn init -y b. 安装依赖 babel-cli 阅读全文

posted @ 2018-01-06 12:26 荣锋亮 阅读(1360) 评论(0) 推荐(0) 编辑

riotjs 简单使用&&browserify 构建
摘要:项目地址: http://riotjs.com/ 备注: 为了简单使用了 browserify 进行构建 1. 项目结构 ├── app.css ├── gulpfile.js ├── index.html ├── package.json ├── README.md ├── sample.tag 阅读全文

posted @ 2018-01-04 14:27 荣锋亮 阅读(382) 评论(0) 推荐(0) 编辑

jspm 安装试用
摘要:1. 安装 yarn global add jspm or npm install -g jspm 2. 创建项目使用 mkdir appdmeo jspm init 3. 安装依赖 jspm install npm:lodash-node jspm install github:component 阅读全文

posted @ 2018-01-04 13:53 荣锋亮 阅读(1124) 评论(0) 推荐(0) 编辑

rollupjs 基本试用
摘要:备注: 前端构建工具 1. 安装 yarn global add rollup yarn global add rollup yarn global add rollup yarn global add rollup yarn global add rollup 2. 基本使用 touch inde 阅读全文

posted @ 2018-01-02 22:23 荣锋亮 阅读(332) 评论(0) 推荐(0) 编辑

normalizr api 转换类库使用
摘要:1. 项目初始化 yarn init yarn add normalizr 项目结构 app.js package.json user.json 2. 使用 a. app.js const userjson = require("./user.json"); const { normalize, s 阅读全文

posted @ 2018-01-02 17:39 荣锋亮 阅读(660) 评论(0) 推荐(0) 编辑

parcel vue 简单使用
摘要:1.安装依赖 yarn global add parcel-bundler yarn add babel-preset-env --dev yarn add parcel-plugin-vue --dev yarn add babel-plugin-transform-runtime --dev y 阅读全文

posted @ 2017-12-31 10:40 荣锋亮 阅读(440) 评论(0) 推荐(0) 编辑

cnpm 私服搭建(基于docker)
摘要:备注: 使用docker-compose 进行安装 1. 代码clone git clone https://github.com/cnpm/cnpmjs.org.git 2. docker build docker-compose build 备注: 注意需要进行修改 docs/dockerize 阅读全文

posted @ 2017-12-30 21:30 荣锋亮 阅读(753) 评论(0) 推荐(0) 编辑

postcss gulp 安装使用
摘要:备注: 测试使用的是gulp 进行的编译 1. 项目初始化 npm init mkdir src touch app.css body{ display: flex; } 2. 安装(gulp 、gulp-postcss 以及几个依赖) npm install -g gulp-cli npm ins 阅读全文

posted @ 2017-12-29 10:30 荣锋亮 阅读(780) 评论(0) 推荐(0) 编辑

webpack 图片资源处理
摘要:备注: css 引用图片资源 1. 安装loader yarn add file-loader --dev 2. 配置 const path = require("path"); const extracttextplugin = require("extract-text-webpack-plug 阅读全文

posted @ 2017-12-29 10:29 荣锋亮 阅读(213) 评论(0) 推荐(0) 编辑

webpack libray 参考例子
摘要:备注: 使用webpack 进行模块导出,方便进行通信 1. 项目初始化 ├── main.js ├── package.json ├── show.js ├── webpack.config.js └── yarn.lock 2. 代码说明 main.js const shortid = requ 阅读全文

posted @ 2017-12-29 10:17 荣锋亮 阅读(310) 评论(0) 推荐(0) 编辑

webpack css loader 使用
摘要:备注: 接上面的项目 1. 添加css main.css #app { text-align:center; } main.js require("./main.css"); const shortid = require("shortid"); const demo = require("./sh 阅读全文

posted @ 2017-12-29 10:16 荣锋亮 阅读(1447) 评论(0) 推荐(0) 编辑

webpack extract-text-webpack-plugin
摘要:备注: 提炼上面引用的css 1. 插件配置 const path = require("path"); const extracttextplugin = require("extract-text-webpack-plugin"); module.exports = { entry:"./mai 阅读全文

posted @ 2017-12-29 10:16 荣锋亮 阅读(679) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示