1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-22 11:45:59 +01:00

remove rollup and just build for es

This commit is contained in:
Kyle Spearrin 2018-01-06 11:39:46 -05:00
parent a26fbbc6b1
commit 1cebe27dbe
2 changed files with 6 additions and 49 deletions

View File

@ -1,34 +1,25 @@
{
"name": "@bitwarden/jslib",
"version": "0.0.11",
"version": "0.0.12",
"description": "Common code used across bitwarden JavaScript projects.",
"keywords": [
"bitwarden"
],
"main": "dist/index.umd.js",
"module": "dist/index.es5.js",
"module": "dist/es/index.js",
"typings": "dist/types/index.d.ts",
"files": [
"dist"
],
"license": "GPL-3.0",
"engines": {
"node": ">=6.0.0"
},
"scripts": {
"lint": "tslint 'src/**/*.ts'",
"prebuild": "rimraf dist/**/*",
"build": "tsc && tsc --module commonjs --outDir dist/lib && rollup -c rollup.config.ts && typedoc --out dist/docs --target es6 --theme minimal --mode file src",
"start": "concurrently \"tsc -w\" \"rollup -c rollup.config.ts -w\""
"build": "tsc && typedoc --out dist/docs --target es6 --theme minimal --mode file src",
"start": "tsc -watch",
"lint": "tslint src/**/*.ts || true",
"lint:fix": "tslint src/**/*.ts --fix"
},
"devDependencies": {
"@types/node": "^8.0.0",
"concurrently": "^3.5.1",
"rimraf": "^2.6.2",
"rollup": "^0.53.0",
"rollup-plugin-commonjs": "^8.2.6",
"rollup-plugin-node-resolve": "^3.0.0",
"rollup-plugin-sourcemaps": "^0.4.2",
"tslint": "^5.8.0",
"typedoc": "^0.9.0",
"typescript": "^2.6.2"

View File

@ -1,34 +0,0 @@
// Based upon https://github.com/alexjoverm/typescript-library-starter/blob/master/rollup.config.ts
import commonjs from 'rollup-plugin-commonjs';
import resolve from 'rollup-plugin-node-resolve';
import sourceMaps from 'rollup-plugin-sourcemaps';
const pkg = require('./package.json');
const libraryName = 'index';
export default {
input: `dist/es/${libraryName}.js`,
output: [
{ file: pkg.main, name: libraryName, format: 'umd' },
{ file: pkg.module, format: 'es' },
],
sourcemap: true,
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
external: [],
watch: {
include: 'dist/es/**',
},
plugins: [
// Allow bundling cjs modules (unlike webpack, rollup doesn't understand cjs)
commonjs(),
// Allow node_modules resolution, so you can use 'external' to control
// which external modules to include in the bundle
// https://github.com/rollup/rollup-plugin-node-resolve#usage
resolve(),
// Resolve source maps to the original source
sourceMaps(),
],
};