Javascript: Difference between revisions

From 太極
Jump to navigation Jump to search
No edit summary
Line 20: Line 20:
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
sudo apt-get install npm
sudo apt-get install npm
</syntaxhighlight>
= [http://lesscss.org/ Less] =
== Installation ==
<syntaxhighlight lang='bash'>
$ # Install node/nodejs for 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
$ # 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
</syntaxhighlight>
</syntaxhighlight>

Revision as of 06:15, 12 June 2016

Some resources

Book

Libraries

jQuery UI

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

npm - package manager

sudo apt-get install npm

Less

Installation

$ # Install node/nodejs for 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