Javascript: Difference between revisions

From 太極
Jump to navigation Jump to search
Line 14: Line 14:
It is mentioned in [http://blog.revolutionanalytics.com/2015/12/reports-r-jquery.html Creating multi-tab reports with R and jQuery UI]
It is mentioned in [http://blog.revolutionanalytics.com/2015/12/reports-r-jquery.html Creating multi-tab reports with R and jQuery UI]


= npm - package manager =
= npm - node.js package manager =
* https://www.npmjs.com/
* https://www.npmjs.com/
* https://en.wikipedia.org/wiki/Npm_(software)
* https://en.wikipedia.org/wiki/Npm_(software)

Revision as of 06:25, 12 June 2016

Some resources

Book

Libraries

jQuery UI

It is mentioned in Creating multi-tab reports with R and jQuery UI

npm - node.js package manager

sudo apt-get install npm

Less

Less is a CSS pre-processor, meaning that it extends the CSS language, adding features that allow variables, mixins, functions and many other techniques that allow you to make CSS that is more maintainable, themable and extendable.

Less runs inside Node, in the browser and inside Rhino.

Installation

$ npm install -g less
npm http GET https://registry.npmjs.org/less
npm http 304 https://registry.npmjs.org/less
npm WARN engine [email protected]: wanted: {"node":">=0.12"} (current: {"node":"v0.10.25","npm":"1.3.10"})

$ # Install the current version of node/nodejs for my OS (ARM v7). https://nodejs.org/en/download/
$ wget https://nodejs.org/dist/v4.4.5/node-v4.4.5-linux-armv7l.tar.xz | tar xJ
$ PATH=/home/odroid/Downloads/node-v4.4.5-linux-armv7l/bin:$PATH; export PATH

$ npm install -g less
/home/odroid/Downloads/node-v4.4.5-linux-armv7l/bin/lessc -> /home/odroid/Downloads/node-v4.4.5-linux-armv7l/lib/node_modules/less/bin/lessc
[email protected] /home/odroid/Downloads/node-v4.4.5-linux-armv7l/lib/node_modules/less
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
└── [email protected] ([email protected])

$ # Less
$ wget https://github.com/less/less.js/archive/v2.6.1.zip
$ unzip v2.6.1.zip
$ cd less.js-2.6.1
$ ls
appveyor.yml  bower.json  build.gradle     dist     gradlew.bat   lib           README.md
benchmark     browser.js  CHANGELOG.md     gradle   Gruntfile.js  LICENSE       test
bin           build       CONTRIBUTING.md  gradlew  index.js      package.json
$ ls bin 
lessc