Skip to content

Commit 5019e6b

Browse files
committed
Build adjustments
Signed-off-by: Sam Hellawell <sshellawell@gmail.com>
1 parent 74388e9 commit 5019e6b

6 files changed

Lines changed: 7 additions & 10 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ yarn.lock
44
package-lock.json
55
dist
66
lib
7+
index.js

.npmignore

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
src
21
test
3-
webpack.config.js
2+
webpack.config.js

gulpfile.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ gulp.task('lint-fix', () =>
5959

6060
// Clean folder
6161
gulp.task('clean', () =>
62-
del([`${libFolder}/**/*`])
62+
del([`dist/**/*`, './index.js'])
6363
);
6464

6565
// Webpack helper

index.js

Lines changed: 0 additions & 3 deletions
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "3d-dungeon-generator",
3-
"version": "1.0.0",
3+
"version": "1.0.2",
44
"description": "3D dungeon generator supporting shafts and staircases",
55
"main": "./index.js",
66
"scripts": {
@@ -45,7 +45,7 @@
4545
"LICENSE",
4646
"README.md",
4747
"index.js",
48-
"lib",
48+
"src",
4949
"dist"
5050
],
5151
"homepage": "https://github.com/SamHellawell/3d-dungeon-generator",
@@ -80,7 +80,7 @@
8080
"entry": "index.js",
8181
"dist-node": "index.js",
8282
"dist-web": "index.web.js",
83-
"bundle-node": false
83+
"bundle-node": true
8484
},
8585
"dependencies": {
8686
"delaunay": "^0.4.0",

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module.exports = function getConfig(options){
1717

1818
// determine output file name
1919
var outputName = buildLibraryOutputName(libraryDesc, isWeb, isProd);
20-
var outputFolder = isWeb ? 'dist' : 'lib';
20+
var outputFolder = isWeb ? 'dist' : './';
2121

2222
// get base config
2323
var config;

0 commit comments

Comments
 (0)