Skip to content

Commit b2babaf

Browse files
build: add builds to dist and add preversion script
1 parent 97b8c84 commit b2babaf

File tree

6 files changed

+581
-8
lines changed

6 files changed

+581
-8
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
/node_modules
2-
/dist/

dist/BoilerPlate.esm.js

Lines changed: 324 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/siesta-lib-helper.runtime.esm.js

Lines changed: 233 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,10 @@
1111
"postversion": "git push && git push --tags",
1212
"test": "jest",
1313
"release": "standard-version",
14-
"release:patch": "standard-version --release-as patch && npm run postversion",
15-
"release:minor": "standard-version --release-as minor && npm run postversion",
16-
"release:major": "standard-version --release-as major && npm run postversion"
14+
"preversion": "npm test && npm run build",
15+
"release:patch": "npm run preversion && standard-version --release-as patch && npm run postversion",
16+
"release:minor": "npm run preversion && standard-version --release-as minor && npm run postversion",
17+
"release:major": "npm run preversion && standard-version --release-as major && npm run postversion"
1718
},
1819
"bin": "bin.js",
1920
"repository": {
@@ -58,6 +59,7 @@
5859
"jest": "^27.0.4",
5960
"node-git-hooks": "^1.0.6",
6061
"rollup": "^2.50.6",
62+
"rollup-plugin-ignore": "^1.0.10",
6163
"standard-version": "^9.3.1"
6264
}
6365
}

rollup.config.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
* USE OR OTHER DEALINGS IN THE SOFTWARE.
2424
*/
2525

26+
import ignore from "rollup-plugin-ignore";
27+
2628
const alias = require('@rollup/plugin-alias');
2729

2830
export default [{
@@ -34,13 +36,13 @@ export default [{
3436
name : "default"
3537
},
3638
plugins: [
39+
ignore(["crypto-js/md5.js"]),
3740
alias({
3841
entries: [
3942
{ find: '@l8js/l8', replacement: './node_modules/@l8js/l8/dist/l8.packages.esm.js' }
4043
]
4144
})
42-
],
43-
external: ["crypto-js/md5.js"]
45+
]
4446
}, {
4547
input: './src/BoilerPlate.js',
4648
output : {
@@ -50,11 +52,11 @@ export default [{
5052
name : "default"
5153
},
5254
plugins: [
55+
ignore(["crypto-js/md5.js"]),
5356
alias({
5457
entries: [
5558
{ find: '@l8js/l8', replacement: './node_modules/@l8js/l8/dist/l8.packages.esm.js' }
5659
]
5760
})
58-
],
59-
external: ["crypto-js/md5.js"]
61+
]
6062
}];

0 commit comments

Comments
 (0)