Skip to content

arukoh-examples/jquery.sample

Repository files navigation

Sample

The best jQuery plugin ever.

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script>
<script src="dist/sample.min.js"></script>
<script>
jQuery(function($) {
  $.awesome(); // "awesome"
});
</script>

Documentation

$ sudo apt-get install nodejs npm
$ sudo update-alternatives --install /usr/bin/node node /usr/bin/nodejs 10
$ node -v
v0.10.25
$ npm -v
1.3.10
$ sudo npm install -g grunt-cli grunt-init
$ mkdir ~/.grunt-init/
$ git clone git@github.com:gruntjs/grunt-init-jquery.git ~/.grunt-init/jquery
$ mkdir -p /path/to/jquery.sample
$ cd /path/to/jquery.sample/
$ grunt-init jquery
Running "init:jquery" (init) task
This task will create one or more files in the current directory, based on the
environment and the answers to a few questions. Note that answering "?" to any
question will show question-specific help and answering "none" to most questions
will leave its value blank.

"jquery" template notes:
Project name should not contain "jquery" or "js" and should be a unique ID not
already in use at plugins.jquery.com. Project title should be a human-readable
title, and doesn't need to contain the word "jQuery", although it may. For
example, a plugin titled "Awesome Plugin" might have the name "awesome-plugin".

For more information, please see the following documentation:

Naming Your Plugin      http://plugins.jquery.com/docs/names/
Publishing Your Plugin  http://plugins.jquery.com/docs/publish/
Package Manifest        http://plugins.jquery.com/docs/package-manifest/

Please answer the following:
[?] Project name (sample) 
[?] Project title (Sample) 
[?] Description (The best jQuery plugin ever.) 
[?] Version (0.1.0) 
[?] Project git repository (git://github.com/samples-of-arukoh/jquery.sample.git) 
[?] Project homepage (https://github.com/samples-of-arukoh/jquery.sample) 
[?] Project issues tracker (https://github.com/samples-of-arukoh/jquery.sample/issues) 
[?] Licenses (MIT) 
[?] Author name (arukoh) 
[?] Author email () 
[?] Author url (none) 
[?] Required jQuery version (*) 
[?] Do you need to make any changes to the above before continuing? (y/N) 

Writing .gitignore...OK
Writing .jshintrc...OK
Writing CONTRIBUTING.md...OK
Writing Gruntfile.js...OK
Writing README.md...OK
Writing libs/jquery-loader.js...OK
Writing libs/jquery/jquery.js...OK
Writing libs/qunit/qunit.css...OK
Writing libs/qunit/qunit.js...OK
Writing src/.jshintrc...OK
Writing src/jquery.sample.js...OK
Writing test/.jshintrc...OK
Writing test/sample.html...OK
Writing test/sample_test.js...OK
Writing LICENSE-MIT...OK
Writing package.json...OK
Writing sample.jquery.json...OK

Initialized from template "jquery".
You should now install project dependencies with npm install. After that, you
may execute project tasks with grunt. For more information about installing
and configuring Grunt, please see the Getting Started guide:

http://gruntjs.com/getting-started

Done, without errors.
$ grunt
Running "jshint:gruntfile" (jshint) task
>> 1 file lint free.

Running "jshint:src" (jshint) task
>> 1 file lint free.

Running "jshint:test" (jshint) task
>> 1 file lint free.

Running "qunit:files" (qunit) task
Testing test/sample.html ....OK
>> 5 assertions passed (38ms)

Running "clean:files" (clean) task

Running "concat:dist" (concat) task
File "dist/jquery.sample.js" created.

Running "uglify:dist" (uglify) task
File "dist/jquery.sample.min.js" created.

Done, without errors.
$ONTRIBUTING.md
├── Gruntfile.js
├── LICENSE-MIT
├── README.md
├── dist
│   ├── jquery.sample.js
│   └── jquery.sample.min.js
├── libs
│   ├── jquery
│   │   └── jquery.js
│   ├── jquery-loader.js
│   └── qunit
│       ├── qunit.css
│       └── qunit.js
├── package.json
├── sample.jquery.json
├── src
│   └── jquery.sample.js
└── test
    ├── sample.html
    └── sample_test.js

6 directories, 15 files

Examples

(Coming soon)

Release History

(Nothing yet)

About

No description, website, or topics provided.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published