Giter Club home page Giter Club logo

soi's Introduction

Build status NPM version Dependency Status Downloads License

<style></style>

soi是什么?

S.O.I (Smart Optimization Integration) 是和 oslojs 一同使用的一款浏览器端JavaScript构建工具, 基于Node开发。oslojs 是一个符合AMD规范的高度模块化的JavaScript框架, 在浏览器端尤其表现卓越, 并且也支持移动端开发. soi目前针对单页面打包设置,若多页面可多次执行soi optimize命令(对于optimize命令, 详见soi-optimizer)。

安装soi

确保本地安装了Node环境, 通过包管理器NPM进行安装.

运行:

  npm install -g soi-cli

安装soi的命令行交互工具, 需要加-g全局安装标志. 接着运行:

  npm install -g soi

安装soi, 建议加-g全局安装标志, 这样可以在任意目录使用soi构建前端项目.

使用soi

在任意目录建立你的代码仓库, 开发完毕后在此目录添加配置文件:

  soi.conf.js

在soi的各插件安装目录demo下会有个示例文件, 是针对插件本身的打包设置;

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.