Split PouchDB-attachmentproxy into its own repo.
This commit is contained in:
parent
0e99014b45
commit
cb0ae3c02b
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
coverage
|
||||||
|
node_modules
|
||||||
7981
package-lock.json
generated
Normal file
7981
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
29
package.json
Normal file
29
package.json
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"name": "pouchdb-attachmentproxy",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "A pouchdb plugin to intercept and redirect document attachments.",
|
||||||
|
"main": "src/index.js",
|
||||||
|
"files": [
|
||||||
|
"src"
|
||||||
|
],
|
||||||
|
"scripts": {
|
||||||
|
"test": "karmatic 'spec/*.spec.js'"
|
||||||
|
},
|
||||||
|
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"dependencies": {
|
||||||
|
"pouchdb-core": "~7.1.1"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"husky": "^3.0.1",
|
||||||
|
"karmatic": "^1.3.1",
|
||||||
|
"pouchdb": "~7.1.1",
|
||||||
|
"pouchdb-adapter-memory": "^7.1.1",
|
||||||
|
"webpack": "^4.37.0"
|
||||||
|
},
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "npm run test"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,27 +0,0 @@
|
|||||||
{
|
|
||||||
"name": "pouchdb-attachmentproxy",
|
|
||||||
"version": "1.0.0",
|
|
||||||
"description": "A pouchdb plugin to intercept and redirect document attachments.",
|
|
||||||
"main": "src/index.js",
|
|
||||||
"files": [
|
|
||||||
"src"
|
|
||||||
],
|
|
||||||
"scripts": {
|
|
||||||
"test": "npm run build:test && mv dist/index.html ./.spec_runner.html && node ../../bin/runTests.js ./",
|
|
||||||
"pre-commit": "npm run test",
|
|
||||||
"build:test": "webpack --config webpack.test-config.js"
|
|
||||||
},
|
|
||||||
"author": "Timothy Farrell <tim@thecookiejar.me> (https://github.com/explorigin)",
|
|
||||||
"license": "Apache-2.0",
|
|
||||||
"dependencies": {
|
|
||||||
"pouchdb-core": "~7.0.0"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"html-webpack-plugin": "~3.2.0",
|
|
||||||
"pouchdb": "~7.0.0",
|
|
||||||
"pouchdb-adapter-memory": "^7.0.0",
|
|
||||||
"script-ext-html-webpack-plugin": "^2.0.1",
|
|
||||||
"webpack": "~4.10.2",
|
|
||||||
"webpack-cli": "~2.1.5"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,31 +0,0 @@
|
|||||||
const path = require('path');
|
|
||||||
const webpack = require('webpack');
|
|
||||||
const HtmlWebpackPlugin = require('html-webpack-plugin');
|
|
||||||
const ScriptExtHtmlWebpackPlugin = require('script-ext-html-webpack-plugin');
|
|
||||||
|
|
||||||
module.exports = {
|
|
||||||
context: path.resolve(__dirname, './spec'),
|
|
||||||
mode: 'development',
|
|
||||||
entry: {
|
|
||||||
proxy: './proxy.spec.js'
|
|
||||||
},
|
|
||||||
output: {
|
|
||||||
path: path.resolve(__dirname, './dist'),
|
|
||||||
filename: '[name].bundle.js',
|
|
||||||
publicPath: '/packages/pouchdb-attachmentproxy/dist/'
|
|
||||||
},
|
|
||||||
devServer: {
|
|
||||||
contentBase: path.join(__dirname, 'dist')
|
|
||||||
},
|
|
||||||
module: {},
|
|
||||||
plugins: [
|
|
||||||
new webpack.DefinePlugin({ __DEV__: true }),
|
|
||||||
new HtmlWebpackPlugin({
|
|
||||||
template: 'index.html',
|
|
||||||
inject: 'body'
|
|
||||||
}),
|
|
||||||
new ScriptExtHtmlWebpackPlugin({
|
|
||||||
module: /.*/
|
|
||||||
})
|
|
||||||
]
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user