Skip to content

Commit

Permalink
Merge pull request #1747 from blackflux/dev
Browse files Browse the repository at this point in the history
[Gally]: master <- dev
  • Loading branch information
simlu authored Aug 2, 2023
2 parents 81f1108 + a80fc28 commit 6f8dea3
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"scripts": {
"clean": "rm -rf lib",
{{#nccEnabled}}
"build": "cp -rf ./src ./lib && ncc build -m -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json{{#nccExclude}} && rsync -r node_modules/{{nccExclude}} lib/node_modules{{/nccExclude}}",
"build": "cp -rf ./src ./lib && ncc build -m -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json",
"ncc-analyze": "yarn clean && cp -rf ./src ./lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && ncc build -m -s -o lib && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean",
{{/nccEnabled}}
{{^nccEnabled}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"scripts": {
"clean": "rm -rf lib build .webpack",
{{#nccEnabled}}
"build": "ncc build src/hangler.js -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/hangler.js{{#nccExclude}} && rsync -r node_modules/{{nccExclude}} lib/node_modules{{/nccExclude}}",
"build": "ncc build src/hangler.js -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/hangler.js",
"ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean",
{{/nccEnabled}}
{{^nccEnabled}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"scripts": {
"clean": "rm -rf lib",
{{#nccEnabled}}
"build": "ncc build src/hangler.js -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/hangler.js{{#nccExclude}} && rsync -r node_modules/{{nccExclude}} lib/node_modules{{/nccExclude}}",
"build": "ncc build src/hangler.js -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && mv lib/index.js lib/hangler.js",
"ncc-analyze": "yarn clean && ncc build -m -s src/hangler.js -o lib{{#nccExclude}} -e {{nccExclude}}{{/nccExclude}} && npx source-map-explorer lib/index.js --only-mapped --html source.html && yarn clean",
{{/nccEnabled}}
{{^nccEnabled}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ provider:
package:
patterns:
- '!**'
- 'lib/**'
- 'lib/**'{{#nccExclude}}
- 'node_modules/{{nccExclude}}'{{/nccExclude}}
{{/nccEnabled}}
{{^nccEnabled}}
package:
Expand Down
2 changes: 1 addition & 1 deletion test/projects/assorted/@npm-closedsource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"keywords": [],
"scripts": {
"clean": "rm -rf lib",
"build": "cp -rf ./src ./lib && ncc build -m -o lib -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json && rsync -r node_modules/nccExclude lib/node_modules",
"build": "cp -rf ./src ./lib && ncc build -m -o lib -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json",
"build-clean": "yarn run clean && yarn run build",
"test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"",
"test": "yarn run clean && yarn run gardener && yarn run test-simple",
Expand Down
2 changes: 1 addition & 1 deletion test/projects/assorted/@npm-opensource-os/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],
"scripts": {
"clean": "rm -rf lib",
"build": "cp -rf ./src ./lib && ncc build -m -o lib -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json && rsync -r node_modules/nccExclude lib/node_modules",
"build": "cp -rf ./src ./lib && ncc build -m -o lib -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json",
"build-clean": "yarn run clean && yarn run build",
"test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"",
"test": "yarn run clean && yarn run gardener && yarn run test-simple",
Expand Down
2 changes: 1 addition & 1 deletion test/projects/assorted/@npm-opensource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"keywords": [],
"scripts": {
"clean": "rm -rf lib",
"build": "cp -rf ./src ./lib && ncc build -m -o lib -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json && rsync -r node_modules/nccExclude lib/node_modules",
"build": "cp -rf ./src ./lib && ncc build -m -o lib -e nccExclude && mv lib/index.js lib/index.min.js && cp src/index.js lib/index.js && rm lib/package.json",
"build-clean": "yarn run clean && yarn run build",
"test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"",
"test": "yarn run clean && yarn run gardener && yarn run test-simple",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"scripts": {
"ddba": "AWS_REGION=awsregion AWS_ACCESS_KEY_ID=awsAccessKeyId AWS_SECRET_ACCESS_KEY=awsSecretAccessKey DYNAMO_ENDPOINT=http://0.0.0.0:8000 dynamodb-admin",
"clean": "rm -rf lib",
"build": "ncc build src/hangler.js -o lib -e nccExclude && mv lib/index.js lib/hangler.js && rsync -r node_modules/nccExclude lib/node_modules",
"build": "ncc build src/hangler.js -o lib -e nccExclude && mv lib/index.js lib/hangler.js",
"build-clean": "yarn run clean && yarn run build",
"test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"",
"test": "yarn run clean && yarn run gardener && yarn run test-simple",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ package:
patterns:
- '!**'
- lib/**
- node_modules/nccExclude
<<<:
- ${file(^/${opt:stack}.yml), service=projectName}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
},
"scripts": {
"clean": "rm -rf lib build .webpack",
"build": "ncc build src/hangler.js -o lib -e nccExclude && mv lib/index.js lib/hangler.js && rsync -r node_modules/nccExclude lib/node_modules",
"build": "ncc build src/hangler.js -o lib -e nccExclude && mv lib/index.js lib/hangler.js",
"build-clean": "yarn run clean && yarn run build",
"test-simple": "yarn run build-clean && c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"",
"test": "yarn run clean && yarn run gardener && yarn run test-simple",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ package:
patterns:
- '!**'
- lib/**
- node_modules/nccExclude
<<<:
- ${file(^/${opt:stack}.yml), service=projectName}
2 changes: 1 addition & 1 deletion test/projects/assorted/@sls-closedsource/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"keywords": [],
"scripts": {
"clean": "rm -rf lib",
"build": "ncc build src/hangler.js -o lib -e nccExclude && mv lib/index.js lib/hangler.js && rsync -r node_modules/nccExclude lib/node_modules",
"build": "ncc build src/hangler.js -o lib -e nccExclude && mv lib/index.js lib/hangler.js",
"build-clean": "yarn run clean && yarn run build",
"test-simple": "c8 mocha --experimental-loader=./test/hot.js \"./test/**/*.spec.js\"",
"test": "yarn run clean && yarn run gardener && yarn run test-simple",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ package:
patterns:
- '!**'
- lib/**
- node_modules/nccExclude
<<<:
- ${file(^/${opt:stack}.yml), service=projectName}

0 comments on commit 6f8dea3

Please sign in to comment.