Compare commits

..

No commits in common. "v4.0.2-develop.6" and "v4.0.2-develop.5" have entirely different histories.

6 changed files with 26 additions and 39 deletions

View File

@ -1,10 +1,3 @@
## [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) ## [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.js' input: '{source}/index.ts'
output: output:
- file: '{output}/index.js' - file: '{output}/index.js'
format: cjs format: cjs
sourcemap: true sourcemap: true
plugins: plugins:
- '@apply @rollup/plugin-json[default]' - '@apply @rollup/plugin-json[default]'
- '@apply @rollup/plugin-node-resolve[default]' - '@apply @rollup/plugin-node-resolve[default]'
- - '@apply @rollup/plugin-commonjs[default]' - - '@apply @rollup/plugin-commonjs[default]'
- extensions: - extensions:
- .js - .js
- .jsx - .jsx
- .ts - .ts
- .tsx - .tsx
- '@apply @rollup/plugin-graphql[default]' - '@apply @rollup/plugin-graphql[default]'
- '@apply @rollup/plugin-image[default]' - '@apply @rollup/plugin-image[default]'
- '@apply @rollup/plugin-yaml[default]' - '@apply @rollup/plugin-yaml[default]'
- - '@apply rollup-plugin-postcss[default]' - - '@apply rollup-plugin-postcss[default]'
- inject: - inject:
insertAt: top insertAt: top
- '@apply rollup-plugin-visualizer[visualizer]' - '@apply rollup-plugin-visualizer[visualizer]'

4
npm-shrinkwrap.json generated
View File

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

View File

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

View File

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

View File

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