mirror of
https://github.com/wassname/template.git
synced 2026-06-27 16:32:20 +08:00
Update dependencies and minor rollup config change
This commit is contained in:
Generated
+536
-1063
File diff suppressed because it is too large
Load Diff
+15
-15
@@ -26,7 +26,7 @@
|
||||
"devDependencies": {
|
||||
"bibtex-parse-js": "^0.0.23",
|
||||
"chai": "^3.5.0",
|
||||
"eslint": "^4.3.0",
|
||||
"eslint": "^4.19.1",
|
||||
"eslint-config-google": "^0.9.1",
|
||||
"http-server": "^0.11.1",
|
||||
"js-yaml": "^3.13.1",
|
||||
@@ -34,34 +34,34 @@
|
||||
"jsdom-global": "3.0.2",
|
||||
"marked": "^0.8.0",
|
||||
"mocha": "^5.2.0",
|
||||
"prismjs": "^1.6.0",
|
||||
"rollup": "^0.50.0",
|
||||
"rollup-plugin-babili": "^3.1.0",
|
||||
"prismjs": "^1.19.0",
|
||||
"rollup": "^0.50.1",
|
||||
"rollup-plugin-babili": "^3.1.1",
|
||||
"rollup-plugin-buble": "^0.15.0",
|
||||
"rollup-plugin-commonjs": "^7.0.0",
|
||||
"rollup-plugin-copy": "^0.2.3",
|
||||
"rollup-plugin-grapher": "^0.2.0",
|
||||
"rollup-plugin-gzip": "^1.2.0",
|
||||
"rollup-plugin-gzip": "^1.4.0",
|
||||
"rollup-plugin-node-resolve": "^2.0.0",
|
||||
"rollup-plugin-serve": "^0.4.2",
|
||||
"rollup-plugin-string": "^2.0.2",
|
||||
"rollup-plugin-uglify": "^1.0.1",
|
||||
"rollup-watch": "^2.5.0",
|
||||
"should": "^13.1.2",
|
||||
"should": "^13.2.3",
|
||||
"source-map-support": "^0.5.16",
|
||||
"webpack": "^2.2.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"@webcomponents/webcomponentsjs": "^1.0.7",
|
||||
"assert": "^1.4.1",
|
||||
"commander": "^2.9.0",
|
||||
"d3-array": "^1.2.1",
|
||||
"d3-drag": "^1.2.1",
|
||||
"d3-scale": "^1.0.6",
|
||||
"d3-selection": "^1.1.0",
|
||||
"d3-time-format": "^2.0.3",
|
||||
"@webcomponents/webcomponentsjs": "^1.3.3",
|
||||
"assert": "^1.5.0",
|
||||
"commander": "^2.20.3",
|
||||
"d3-array": "^1.2.4",
|
||||
"d3-drag": "^1.2.5",
|
||||
"d3-scale": "^1.0.7",
|
||||
"d3-selection": "^1.4.1",
|
||||
"d3-time-format": "^2.2.3",
|
||||
"escape-html": "^1.0.3",
|
||||
"intersection-observer": "^0.4.0",
|
||||
"intersection-observer": "^0.4.3",
|
||||
"jsdom-wc": "^11.0.0-alpha-1",
|
||||
"katex": "^0.8.3"
|
||||
}
|
||||
|
||||
@@ -46,6 +46,7 @@ const defaultConfig = {
|
||||
jsnext: true,
|
||||
browser: true
|
||||
}),
|
||||
commonjs(),
|
||||
string({
|
||||
include: ["**/*.txt", "**/*.svg", "**/*.html", "**/*.css", "**/*.base64"]
|
||||
}),
|
||||
@@ -57,8 +58,7 @@ const defaultConfig = {
|
||||
"Access-Control-Allow-Origin": "*"
|
||||
},
|
||||
port: 8088
|
||||
}),
|
||||
commonjs()
|
||||
})
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
+17
-10
@@ -12,17 +12,24 @@
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
import configs from './rollup.config.dev';
|
||||
import babili from 'rollup-plugin-babili';
|
||||
import configs from "./rollup.config.dev";
|
||||
import babili from "rollup-plugin-babili";
|
||||
|
||||
function isNotServePlugin(plugin) {
|
||||
return plugin.name !== "serve";
|
||||
}
|
||||
|
||||
for (const config of configs) {
|
||||
config.plugins = config.plugins.filter(isNotServePlugin);
|
||||
}
|
||||
|
||||
const [componentsConfig, transformsConfig] = configs;
|
||||
|
||||
componentsConfig.plugins.push(babili({
|
||||
comments: false, // means: *remove* comments
|
||||
sourceMap: true,
|
||||
}));
|
||||
componentsConfig.plugins.push(
|
||||
babili({
|
||||
comments: false, // means: *remove* comments
|
||||
sourceMap: true
|
||||
})
|
||||
);
|
||||
|
||||
export default [
|
||||
componentsConfig,
|
||||
transformsConfig,
|
||||
];
|
||||
export default [componentsConfig, transformsConfig];
|
||||
|
||||
Reference in New Issue
Block a user