fix(core): update

This commit is contained in:
Philipp Kunz 2019-04-30 09:44:46 +02:00
parent cb575d2427
commit 1c039592ce
5 changed files with 28 additions and 15 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ dist_serve/
dist_ts_web/ dist_ts_web/
# custom # custom
.rpt2_cache

View File

@ -8,7 +8,7 @@
"author": "Lossless GmbH", "author": "Lossless GmbH",
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"test": "(tstest test/)", "test": "(tstest test/) && rollup -c rollup.config.js",
"build": "(tsbuild)", "build": "(tsbuild)",
"format": "(gitzone format)" "format": "(gitzone format)"
}, },

View File

@ -17,10 +17,18 @@ a bundler using rollup for painless bundling of web projects
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/) [![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/)
## Usage ## Usage
Use TypeScript for best in class intellisense. Use TypeScript for best in class intellisense.
tsbundle will bundle modern JavaScript websites in an Google Bot conformant way so things like AdSense do work. tsbundle will bundle modern JavaScript websites in an Google Bot conformant way so things like AdSense do work.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
[![repo-footer](https://gitzone.gitlab.io/assets/repo-footer.svg)](https://maintainedby.lossless.com)
For further information read the linked docs at the top of this readme.
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh) > MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html) | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)

View File

@ -1,10 +1,11 @@
import resolve from 'rollup-plugin-node-resolve' import resolve from 'rollup-plugin-node-resolve';
import commonjs from 'rollup-plugin-commonjs' import commonjs from 'rollup-plugin-commonjs';
import sourceMaps from 'rollup-plugin-sourcemaps' import sourceMaps from 'rollup-plugin-sourcemaps';
import typescript from 'rollup-plugin-typescript2' import typescript from 'rollup-plugin-typescript2';
import json from 'rollup-plugin-json' import json from 'rollup-plugin-json';
import babel from 'rollup-plugin-babel';
const pkg = require('./package.json') const pkg = require('./package.json');
export default { export default {
input: `ts_web/index.ts`, input: `ts_web/index.ts`,
@ -16,7 +17,7 @@ export default {
// Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash') // Indicate here external modules you don't wanna include in your bundle (i.e.: 'lodash')
external: [], external: [],
watch: { watch: {
include: 'src/**', include: 'src/**'
}, },
plugins: [ plugins: [
// Allow json resolution // Allow json resolution
@ -33,5 +34,5 @@ export default {
// Resolve source maps to the original source // Resolve source maps to the original source
sourceMaps(), sourceMaps(),
babel() babel()
], ]
} };

3
ts_web/index.ts Normal file
View File

@ -0,0 +1,3 @@
const myConst = 'hello';
console.log(myConst);