浏览代码

use lesspass-frontend

pull/342/head
Guillaume Vincent 8 年前
父节点
当前提交
5c11a9deb0
共有 2 个文件被更改,包括 30 次插入32 次删除
  1. +1
    -1
      gulpfile.js
  2. +29
    -31
      package.json

+ 1
- 1
gulpfile.js 查看文件

@@ -3,7 +3,7 @@
var gulp = require('gulp');

gulp.task('lesspass', [], function () {
return gulp.src(['node_modules/lesspass-pure/dist/**/*'])
return gulp.src(['node_modules/lesspass-frontend/dist/**/*'])
.pipe(gulp.dest('extension/dist/'));
});



+ 29
- 31
package.json 查看文件

@@ -1,50 +1,48 @@
{
"name": "lesspass-webextension",
"description": "chrome and firefox web extension for LessPass",
"author": "Guillaume Vincent <guillaume@oslab.fr>",
"private": true,
"scripts": {
"prebuild": "npm prune && npm install",
"clean": "rm -rf extension/dist/ && mkdir extension/dist/",
"zip": "rm -rf build && mkdir build && cd extension && zip -r extension.zip ./* -x ./*.js && cp extension.zip ../build/lesspass.firefox.xpi && mv extension.zip ../build/lesspass.chrome.zip && cd ..",
"browserify": "browserify ./extension/content.js -o ./extension/dist/content.min.js && browserify ./extension/popup.js -o ./extension/dist/popup.min.js",
"browserify": "browserify ./extension/popup.js -o ./extension/dist/popup.min.js",
"build": "npm run clean && gulp && npm run browserify && npm run zip",
"test": "ava tests --require babel-core/register && xo"
"test": "ava tests --compilers js:babel-register"
},
"dependencies": {
"jsdom": "^9.4.0",
"lesspass-pure": "^1.1.2",
"tldjs": "^1.6.2"
"lesspass-frontend": "^1.0.1",
"tldjs": "^1.7.0"
},
"devDependencies": {
"ava": "^0.15.2",
"babel-core": "^6.10.4",
"babel-preset-es2015": "^6.9.0",
"ava": "^0.16.0",
"babel-core": "^6.17.0",
"babel-loader": "^6.2.5",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.16.0",
"babel-preset-stage-2": "^6.17.0",
"babel-register": "^6.16.3",
"babel-runtime": "^6.11.6",
"babelify": "^7.3.0",
"browserify": "^13.0.1",
"gulp": "^3.9.1",
"jpm": "^1.0.7",
"jsdom": "^9.3.0",
"xo": "0.16.0"
"browserify": "^13.1.0",
"gulp": "^3.9.1"
},
"xo": {
"space": true,
"envs": [
"browser",
"webextensions"
"babel": {
"presets": [
"es2015",
"stage-2"
],
"ignores": [
"extension/dist/**"
]
"plugins": [
"transform-runtime"
],
"comments": false
},
"ava": {
"files": [
"tests/*.js"
"require": [
"babel-register"
],
"source": [
"extension/*.js"
]
},
"babel": {
"presets": [
"es2015"
]
"babel": "inherit"
},
"browserify": {
"transform": [


正在加载...
取消
保存