mirror of
https://github.com/lucaspalomodevelop/varkeeper.git
synced 2026-03-12 23:37:21 +00:00
change test | gulpfile | add npm
This commit is contained in:
parent
ddf8e0841b
commit
4dc7aa0a38
@ -2,7 +2,7 @@ const { doesNotThrow } = require('assert');
|
||||
const gulp = require('gulp');
|
||||
const minify = require('gulp-minify');
|
||||
|
||||
gulp.task('default', function(done) {
|
||||
gulp.task('build', function(done) {
|
||||
var Src = './src/*js',
|
||||
Dst = 'dist';
|
||||
gulp.src(Src)
|
||||
|
||||
3978
package-lock.json
generated
Normal file
3978
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
33
package.json
Normal file
33
package.json
Normal file
@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "varkeeper",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"devDependencies": {
|
||||
"mocha": "^9.0.2",
|
||||
"chai": "^4.3.4",
|
||||
"chai-arrays": "^2.2.0",
|
||||
"gulp": "^4.0.2",
|
||||
"gulp-minify": "^3.1.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha",
|
||||
"build": "gulp build"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/lucaspalomodevelop/varkeeper.git"
|
||||
},
|
||||
"keywords": [
|
||||
"varkeeper",
|
||||
"var",
|
||||
"global",
|
||||
"global var"
|
||||
],
|
||||
"author": "lucasdevelop",
|
||||
"license": "GPL",
|
||||
"bugs": {
|
||||
"url": "https://github.com/lucaspalomodevelop/varkeeper/issues"
|
||||
},
|
||||
"homepage": "https://github.com/lucaspalomodevelop/varkeeper#readme"
|
||||
}
|
||||
@ -27,9 +27,7 @@ describe('varkeeper', () => {
|
||||
varkeeper.setprop('array', [1,2,3,4]);
|
||||
let x = varkeeper.getprop('array');
|
||||
let y = x.slice(0,2);
|
||||
console.log(x);
|
||||
// varkeeper.setprop('array', varkeeper.getprop('array').slice(0,3));
|
||||
console.log(varkeeper.getprop('array'));
|
||||
expect(y).to.be.eql([1,2]);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user