Compare commits

...

4 Commits

6 changed files with 39 additions and 26 deletions

View File

@ -1,3 +1,10 @@
## [4.0.2-develop.6](https://git.lumeweb.com/LumeWeb/presetter-preset-rollup/compare/v4.0.2-develop.5...v4.0.2-develop.6) (2023-06-30)
### Bug Fixes
* add build:typescript:* to build script ([edf1960](https://git.lumeweb.com/LumeWeb/presetter-preset-rollup/commit/edf1960010004a72fba3b5b6d0649721977d594e))
## [4.0.2-develop.5](https://git.lumeweb.com/LumeWeb/presetter-preset-rollup/compare/v4.0.2-develop.4...v4.0.2-develop.5) (2023-06-30)

View File

@ -1,21 +1,21 @@
input: '{source}/index.ts'
input: '{source}/index.js'
output:
- file: '{output}/index.js'
format: cjs
sourcemap: true
- file: '{output}/index.js'
format: cjs
sourcemap: true
plugins:
- '@apply @rollup/plugin-json[default]'
- '@apply @rollup/plugin-node-resolve[default]'
- - '@apply @rollup/plugin-commonjs[default]'
- extensions:
- .js
- .jsx
- .ts
- .tsx
- '@apply @rollup/plugin-graphql[default]'
- '@apply @rollup/plugin-image[default]'
- '@apply @rollup/plugin-yaml[default]'
- - '@apply rollup-plugin-postcss[default]'
- inject:
insertAt: top
- '@apply rollup-plugin-visualizer[visualizer]'
- '@apply @rollup/plugin-json[default]'
- '@apply @rollup/plugin-node-resolve[default]'
- - '@apply @rollup/plugin-commonjs[default]'
- extensions:
- .js
- .jsx
- .ts
- .tsx
- '@apply @rollup/plugin-graphql[default]'
- '@apply @rollup/plugin-image[default]'
- '@apply @rollup/plugin-yaml[default]'
- - '@apply rollup-plugin-postcss[default]'
- inject:
insertAt: top
- '@apply rollup-plugin-visualizer[visualizer]'

4
npm-shrinkwrap.json generated
View File

@ -1,12 +1,12 @@
{
"name": "presetter-preset-rollup",
"version": "4.0.2-develop.5",
"version": "4.0.2-develop.6",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "presetter-preset-rollup",
"version": "4.0.2-develop.5",
"version": "4.0.2-develop.6",
"license": "MIT",
"dependencies": {
"presetter-types": "^4.0.1",

View File

@ -1,6 +1,6 @@
{
"name": "@lumeweb/presetter-preset-rollup",
"version": "4.0.2-develop.5",
"version": "4.0.2-develop.6",
"description": "An opinionated presetter preset for using rollup as a bundler",
"keywords": [
"presetter",

View File

@ -41,11 +41,13 @@ export type Variable = {
source: string;
/** the directory containing all the compiled files (default: lib) */
output: string;
buildSource: string;
};
export const DEFAULT_VARIABLE: Variable = {
source: 'source',
source: 'build',
output: 'lib',
buildSource: 'buildSource',
};
/**
@ -71,8 +73,12 @@ export default function (): PresetAsset {
scripts: resolve(TEMPLATES, 'scripts.yaml'),
noSymlinks: ['rollup.config.ts'],
supplementaryConfig: {
gitignore: ['/rollup.config.ts'],
rollup: resolve(CONFIGS, 'rollup.yaml'),
'gitignore': ['/rollup.config.ts'],
'rollup': resolve(CONFIGS, 'rollup.yaml'),
'tsconfig.build': {
include: ['{buildSource}'],
outDir: ['{source}'],
},
},
variable: DEFAULT_VARIABLE,
};

View File

@ -1,6 +1,6 @@
# replace the `prepare` template from presetter-preset
# so that the build procedure will not be triggered upon package installation
build: cross-env NODE_ENV=production run-s clean build:rollup-config build:rollup
build: cross-env NODE_ENV=production run-s clean build:rollup-config build:rollup build:typescript:*
build:rollup-config: tsc -p tsconfig.config.json
build:rollup: rollup --config rollup.config.js
develop: cross-env NODE_ENV=development run-s "build:rollup -- --watch {@}" --