sprint icon indicating copy to clipboard operation
sprint copied to clipboard

Added package.json

Open JeremyFagis opened this issue 9 years ago • 15 comments

Prepared npm package.

JeremyFagis avatar Apr 23 '15 08:04 JeremyFagis

Wow, need this ! :+1:

nervo avatar Apr 23 '15 08:04 nervo

:+1:

Tom32i avatar Apr 23 '15 08:04 Tom32i

:+1:

hyvs avatar Apr 23 '15 08:04 hyvs

:+1: Absolutely AMAZING ! I want it now !

JeremyJames avatar Apr 23 '15 08:04 JeremyJames

:+1:

woecifaun avatar Apr 23 '15 09:04 woecifaun

@JeremyFagis this isn't enough - is it?

We'd need to do something like

require('sprint.js');
window.$('#beep-boop');

but if we added a commonjs-wrapper (https://github.com/bendc/sprint/issues/3) we'd do

var $ = require('sprint.js');

kesla avatar Apr 23 '15 15:04 kesla

image

zc0315 avatar Apr 23 '15 16:04 zc0315

A better approach would be to use a build system like gulp, who could automize the js minification, and the browser/amd/commonjs module wrapping(via gulp-umd, for instance).

nervo avatar Apr 23 '15 17:04 nervo

@kesla Tackled just that problem and #3 in my PR #21. CommonJS, AMD and browser globals support.

@nervo As sprint is not yet modularized and built via gulp this is unnecessary complex

kitten avatar Apr 27 '15 14:04 kitten

@philplckthun if you prefer to wrap and minify manually each time you modify a single line of code, why not :)

nervo avatar Apr 27 '15 14:04 nervo

@nervo Well, I was not saying that I prefer to minify manually! I said it doesn't make sense to use gulp-umd as long as gulp is not implemented at all. And that should be done with a full modularization of sprint in a seperate branch. :wink:

kitten avatar Apr 27 '15 15:04 kitten

@philplckthun 'got it :)

nervo avatar Apr 28 '15 18:04 nervo

+1

therebelrobot avatar May 14 '15 15:05 therebelrobot

:+1:

jamescostian avatar May 17 '15 15:05 jamescostian

:+1:

rossPatton avatar May 18 '15 01:05 rossPatton