Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
93431fc2e1 | |||
1c039592ce | |||
cb575d2427 | |||
d6ad2797cb | |||
7256e3d0e3 | |||
fee9b56568 | |||
14a273e5c4 | |||
453c72b87e |
3
.gitignore
vendored
3
.gitignore
vendored
@ -16,4 +16,5 @@ dist_web/
|
|||||||
dist_serve/
|
dist_serve/
|
||||||
dist_ts_web/
|
dist_ts_web/
|
||||||
|
|
||||||
# custom
|
# custom
|
||||||
|
.rpt2_cache
|
10
package-lock.json
generated
10
package-lock.json
generated
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsbundle",
|
"name": "@gitzone/tsbundle",
|
||||||
"version": "1.0.3",
|
"version": "1.0.7",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@ -2337,6 +2337,14 @@
|
|||||||
"rollup-pluginutils": "^2.6.0"
|
"rollup-pluginutils": "^2.6.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"rollup-plugin-json": {
|
||||||
|
"version": "4.0.0",
|
||||||
|
"resolved": "https://verdaccio.lossless.one/rollup-plugin-json/-/rollup-plugin-json-4.0.0.tgz",
|
||||||
|
"integrity": "sha512-hgb8N7Cgfw5SZAkb3jf0QXii6QX/FOkiIq2M7BAQIEydjHvTyxXHQiIzZaTFgx1GK0cRCHOCBHIyEkkLdWKxow==",
|
||||||
|
"requires": {
|
||||||
|
"rollup-pluginutils": "^2.5.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
"rollup-plugin-node-resolve": {
|
"rollup-plugin-node-resolve": {
|
||||||
"version": "4.2.3",
|
"version": "4.2.3",
|
||||||
"resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.2.3.tgz",
|
"resolved": "https://registry.npmjs.org/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-4.2.3.tgz",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@gitzone/tsbundle",
|
"name": "@gitzone/tsbundle",
|
||||||
"version": "1.0.3",
|
"version": "1.0.7",
|
||||||
"private": false,
|
"private": false,
|
||||||
"description": "a bundler using rollup for painless bundling of web projects",
|
"description": "a bundler using rollup for painless bundling of web projects",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
@ -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)"
|
||||||
},
|
},
|
||||||
@ -27,6 +27,7 @@
|
|||||||
"rollup": "^1.10.1",
|
"rollup": "^1.10.1",
|
||||||
"rollup-plugin-babel": "^4.3.2",
|
"rollup-plugin-babel": "^4.3.2",
|
||||||
"rollup-plugin-commonjs": "^9.3.4",
|
"rollup-plugin-commonjs": "^9.3.4",
|
||||||
|
"rollup-plugin-json": "^4.0.0",
|
||||||
"rollup-plugin-node-resolve": "^4.2.3",
|
"rollup-plugin-node-resolve": "^4.2.3",
|
||||||
"rollup-plugin-sourcemaps": "^0.4.2",
|
"rollup-plugin-sourcemaps": "^0.4.2",
|
||||||
"rollup-plugin-typescript2": "^0.20.1"
|
"rollup-plugin-typescript2": "^0.20.1"
|
||||||
|
@ -18,6 +18,15 @@ a bundler using rollup for painless bundling of web projects
|
|||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
|
||||||
|
> | By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy.html)
|
||||||
|
|
||||||
|
[](https://maintainedby.lossless.com)
|
||||||
|
|
||||||
For further information read the linked docs at the top of this readme.
|
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)
|
||||||
|
@ -1,23 +1,23 @@
|
|||||||
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 camelCase from 'lodash.camelcase'
|
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: `src/index.ts`,
|
input: `ts_web/index.ts`,
|
||||||
output: {
|
output: {
|
||||||
file: 'ts/index.ts',
|
file: 'dist/bundle.js',
|
||||||
format: 'es',
|
format: 'es',
|
||||||
sourcemap: true
|
sourcemap: true
|
||||||
},
|
},
|
||||||
// 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
|
||||||
@ -34,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
3
ts_web/index.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
const myConst = 'hello';
|
||||||
|
|
||||||
|
console.log(myConst);
|
Reference in New Issue
Block a user