update publish process

This commit is contained in:
Kevin Jahns 2018-11-02 01:52:20 +01:00
parent df80938190
commit bd271e3952
2 changed files with 5 additions and 21 deletions

View File

@ -2,8 +2,7 @@
"name": "yjs", "name": "yjs",
"version": "13.0.0-67", "version": "13.0.0-67",
"description": "A framework for real-time p2p shared editing on any data", "description": "A framework for real-time p2p shared editing on any data",
"main": "./y.node.js", "main": "./build/node/index.js",
"browser": "./y.js",
"module": "./src/index.js", "module": "./src/index.js",
"scripts": { "scripts": {
"test": "npm run lint", "test": "npm run lint",
@ -16,10 +15,10 @@
"postversion": "npm run dist" "postversion": "npm run dist"
}, },
"files": [ "files": [
"y.*",
"src/*", "src/*",
".esdoc.json", ".esdoc.json",
"docs/*" "docs/*",
"build/*"
], ],
"standard": { "standard": {
"ignore": [ "ignore": [

View File

@ -5,11 +5,11 @@ import commonjs from 'rollup-plugin-commonjs'
var pkg = require('./package.json') var pkg = require('./package.json')
export default { export default {
input: 'src/Y.dist.js', input: 'src/index.js',
name: 'Y', name: 'Y',
sourcemap: true, sourcemap: true,
output: { output: {
file: 'y.js', file: 'build/umd/index.js',
format: 'umd' format: 'umd'
}, },
plugins: [ plugins: [
@ -20,21 +20,6 @@ export default {
}), }),
commonjs(), commonjs(),
babel(), babel(),
uglify({
mangle: {
except: ['YMap', 'Y', 'YArray', 'YText', 'YXmlHook', 'YXmlFragment', 'YXmlElement', 'YXmlEvent', 'YXmlText', 'YEvent', 'YArrayEvent', 'YMapEvent', 'Type', 'Delete', 'ItemJSON', 'ItemString', 'Item']
},
output: {
comments: function (node, comment) {
var text = comment.value
var type = comment.type
if (type === 'comment2') {
// multiline comment
return /@license/i.test(text)
}
}
}
})
], ],
banner: ` banner: `
/** /**