mirror of
https://github.com/verdaccio/verdaccio.git
synced 2025-03-18 02:22:46 -05:00
sort out dependencies needed to build static stuff
This commit is contained in:
parent
e281b4e389
commit
841f77d36a
3 changed files with 154 additions and 39 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -8,5 +8,4 @@ bin/**
|
|||
!bin/sinopia
|
||||
test-storage*
|
||||
|
||||
node_modules/crypt3/build
|
||||
node_modules/fs-ext/build
|
||||
node_modules
|
||||
|
|
136
lib/GUI/css/helpers.less
Normal file
136
lib/GUI/css/helpers.less
Normal file
|
@ -0,0 +1,136 @@
|
|||
//
|
||||
// copied from https://github.com/bpeacock/helpers.less
|
||||
//
|
||||
// author: Brian Peacock
|
||||
// license: MIT
|
||||
//
|
||||
|
||||
.backface-visibility(@style) {
|
||||
-webkit-backface-visibility: @style;
|
||||
-moz-backface-visibility: @style;
|
||||
-ms-backface-visibility: @style;
|
||||
-o-backface-visibility: @style;
|
||||
backface-visibility: @style;
|
||||
}
|
||||
|
||||
.perspective(@style) {
|
||||
-webkit-perspective: @style;
|
||||
-moz-perspective: @style;
|
||||
-ms-perspective: @style;
|
||||
-o-perspective: @style;
|
||||
perspective: @style;
|
||||
}
|
||||
|
||||
.border-radius(@radius) {
|
||||
-webkit-border-radius: @radius;
|
||||
-moz-border-radius: @radius;
|
||||
border-radius: @radius;
|
||||
}
|
||||
|
||||
.border-radius-topleft(@radius) {
|
||||
-moz-border-radius-topleft: @radius;
|
||||
border-top-left-radius: @radius;
|
||||
}
|
||||
|
||||
.border-radius-topright(@radius) {
|
||||
-moz-border-radius-topright: @radius;
|
||||
border-top-right-radius: @radius;
|
||||
}
|
||||
|
||||
.border-radius-bottomleft(@radius) {
|
||||
-moz-border-radius-bottomleft: @radius;
|
||||
border-bottom-left-radius: @radius;
|
||||
}
|
||||
|
||||
.border-radius-bottomright(@radius) {
|
||||
-moz-border-radius-bottomright: @radius;
|
||||
border-bottom-right-radius: @radius;
|
||||
}
|
||||
|
||||
.circle(@diameter) {
|
||||
width: @diameter;
|
||||
height: @diameter;
|
||||
.border-radius(@diameter/2);
|
||||
}
|
||||
|
||||
.no-select() {
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-webkit-user-select: none;
|
||||
-o-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.do-select() {
|
||||
-moz-user-select: text;
|
||||
-ms-user-select: text;
|
||||
-khtml-user-select: text;
|
||||
-webkit-user-select: text;
|
||||
-o-user-select: text;
|
||||
user-select: text;
|
||||
}
|
||||
|
||||
.border-box() {
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.box-shadow(@value1, @value2:X, ...) {
|
||||
@value: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`;
|
||||
-moz-box-shadow: @value;
|
||||
-webkit-box-shadow: @value;
|
||||
box-shadow: @value;
|
||||
}
|
||||
|
||||
.transition(@value1, @value2:X, ...) {
|
||||
@value: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`;
|
||||
|
||||
-webkit-transition: @value;
|
||||
-moz-transition: @value;
|
||||
-ms-transition: @value;
|
||||
-o-transition: @value;
|
||||
transition: @value;
|
||||
}
|
||||
|
||||
.transformTransition(@value1, @value2:X, ...) {
|
||||
@value: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`;
|
||||
|
||||
-webkit-transition: -webkit-transform @value;
|
||||
-moz-transition: -moz-transform @value;
|
||||
-ms-transition: -ms-transform @value;
|
||||
-o-transition: -o-transform @value;
|
||||
transition: transform @value;
|
||||
}
|
||||
|
||||
.animation(@value1, @value2:X, ...) {
|
||||
@value: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`;
|
||||
|
||||
-webkit-animation: @value;
|
||||
-moz-animation: @value;
|
||||
-o-animation: @value;
|
||||
animation: @value;
|
||||
}
|
||||
|
||||
.transform(@value1, @value2:X, ...) {
|
||||
@value: ~`"@{arguments}".replace(/[\[\]]|\,\sX/g, '')`;
|
||||
|
||||
-webkit-transform: @value;
|
||||
-moz-transform: @value;
|
||||
-o-transform: @value;
|
||||
-ms-transform: @value;
|
||||
transform: @value;
|
||||
}
|
||||
|
||||
.rotate(@deg) {
|
||||
.transform(rotate(@deg));
|
||||
}
|
||||
|
||||
.scale(@ratio) {
|
||||
.transform(scale(@ratio, @ratio));
|
||||
}
|
||||
|
||||
.translate(@x, @y) {
|
||||
.transform(translate(@x, @y));
|
||||
}
|
54
package.yaml
54
package.yaml
|
@ -41,11 +41,6 @@ dependencies:
|
|||
jju: '1.x'
|
||||
|
||||
mkdirp: '>=0.3.5 <1.0.0-0'
|
||||
unopinionate: '>=0.0.4 <1.0.0-0'
|
||||
onclick: '>=0.1.0 <1.0.0-0'
|
||||
onscroll: '>=0.0.3 <1.0.0-0'
|
||||
transition-complete: '>=0.0.2 <1.0.0-0'
|
||||
helpers.less: 'git://github.com/bpeacock/helpers.less.git'
|
||||
sinopia-htpasswd: '>= 0.4.3'
|
||||
http-errors: '>=1.2.0'
|
||||
|
||||
|
@ -55,55 +50,40 @@ optionalDependencies:
|
|||
fs-ext: '>=0.4.1 <1.0.0-0'
|
||||
crypt3: '>=0.1.6 <1.0.0-0' # for sinopia-htpasswd
|
||||
|
||||
# bundling all the deps (but not devDeps)
|
||||
bundledDependencies:
|
||||
- async
|
||||
- body-parser
|
||||
- bunyan
|
||||
- commander
|
||||
- compression
|
||||
- cookies
|
||||
- crypt3
|
||||
- es6-shim
|
||||
- express
|
||||
- express-json5
|
||||
- fs-ext
|
||||
- handlebars
|
||||
- helpers.less
|
||||
- highlight.js
|
||||
- http-errors
|
||||
- jju
|
||||
- js-yaml
|
||||
- lunr
|
||||
- marked
|
||||
- minimatch
|
||||
- mkdirp
|
||||
- onclick
|
||||
- onscroll
|
||||
- request
|
||||
- semver
|
||||
- sinopia-htpasswd
|
||||
- transition-complete
|
||||
- unopinionate
|
||||
|
||||
devDependencies:
|
||||
#
|
||||
# Tools required for testing
|
||||
#
|
||||
rimraf: '>=2.2.5 <3.0.0-0'
|
||||
mocha: '>=1.17.0 <2.0.0-0'
|
||||
|
||||
# linting tools
|
||||
#
|
||||
# Linting tools
|
||||
#
|
||||
eslint: '~0.6.0'
|
||||
|
||||
# for debugging memory leaks, it'll be require()'d if
|
||||
# installed, but I don't want it to be installed everytime
|
||||
#heapdump: '*'
|
||||
|
||||
#
|
||||
# Tools required to build static files
|
||||
#
|
||||
browserify: '>=3.46.0 <4.0.0-0'
|
||||
browserify-handlebars: '~0.2.0'
|
||||
grunt: '>=0.4.4 <1.0.0-0'
|
||||
grunt-cli: '*'
|
||||
grunt-browserify: '>=2.0.8 <3.0.0-0'
|
||||
grunt-contrib-less: '>=0.11.0 <1.0.0-0'
|
||||
grunt-contrib-watch: '>=0.6.1 <1.0.0-0'
|
||||
|
||||
# for building static/main.js,
|
||||
# not required in runtime
|
||||
unopinionate: '>=0.0.4 <1.0.0-0'
|
||||
onclick: '>=0.1.0 <1.0.0-0'
|
||||
onscroll: '>=0.0.3 <1.0.0-0'
|
||||
transition-complete: '>=0.0.2 <1.0.0-0'
|
||||
|
||||
keywords:
|
||||
- private
|
||||
- package
|
||||
|
|
Loading…
Add table
Reference in a new issue