1.2.0 • Published 2 years ago

@wedgekit/scripts v1.2.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@wedgekit/scripts

Usage

npx @wedgekit/scripts <command>

MUST HAVE NODE v14+

Application vs Package Development

@wedgekit/scripts can be used to develop both A2W applications and Wedgekit packages (libraries). The following commands are valid for both application and package development; they will have different effects depending on the type of development.

The default type of development is application development. To indicate you are using a package, use the -p or --package flag with any of the following commands. Alternatively, use the -s or --script flag with any of the following commands to indicate you are using a node script.

Commands

Tip: Typing -h after either the application name or any of the commands will pull up a help menu*.

create

$ npx @wedgekit/scripts create <name> / $ wedgekit create <name>

Creates a new web application

Note: Currently create is only configured for web applications. Package creation is coming someday*.

SubcommandRequiredDescription
nameThe web application name; a directory will be created with this name
OptionFlag(s)App/Package/ScriptExampleDescription
directory-d --dirA/P/S$ wedgekit create example-app -d testDefines the location of the application if different from <name>/
description--descA/P/S$ wedgekit create example-app --desc "My App"Adds a description of the application/package
template--templateA$ wedgekit create example-app --template forceMakes the created application with the specified template possible options are force and basic

build

$ npx @wedgekit/scripts build / $ wedgekit build

Build the src directory. Expects an src/index.ts entry file.

OptionFlag(s)App/Package/ScriptExampleDescription
clean-c --cleanP/S$ wedgekit build -cRemoves the dist/ directory before building package
dev-d --devP/S$ wedgekit build -dBuilds with dev options set to true; used for local development
types-only-t --types-onlyP$ wedgekit build -tOnly builds type declaration files; used for type-only packages
unbundled-u --unbundledP$ wedgekit build -uDistributes the unbundled files in addition to the ESM and CJS bundles
watch-w --watchP/S$ wedgekit build -wWatches source files for changes that would invalidate the build and rebuilds

start

$ npx @wedgekit/scripts start / $ wedgekit start

Starts a dev server for local app development if in app mode. Expects an index.html in the current working directory. If in script mode, runs the script in src/index.ts using ts-node.

Note: start is only intended for use with web applications and scripts. Package developers should use wedgekit build -w instead.

Note: vite flags will be applied to wedgekit start. For a list type npx vite --h

Note: proxy flag is necessary to use samesite cookies locally

OptionFlag(s)App/Package/ScriptExampleDescription
graphql proxy--graphql-proxyA$wedgekit start --graphql-proxy https://develop.agility.dmsi.io/graphqlUses the Vite proxy middleware to proxy to the desired graphql environment
rest proxy--rest-proxyA$wedgekit start --rest-proxy https://develop.agility.dmsi.io/restUses the Vite proxy middleware to proxy to the desired rest environment

Definitions

someday - The long-promised day in which all prioritized features will be complete and developers can tackle long-delayed tech debt.

soon - As soon as all urgent work is complete, which is a state of existence which will surely be upon us any day now.

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1-tc.12

2 years ago

1.1.1-tc.1

2 years ago

1.1.1-tc.0

2 years ago

0.5.4-tc

2 years ago

1.0.1-tc.10

2 years ago

1.0.1-tc.11

2 years ago

0.4.4

2 years ago

0.4.3

2 years ago

1.0.0

2 years ago

0.4.5-tc.0

2 years ago

0.5.4-tc.0

2 years ago

0.5.4-tc.1

2 years ago

0.4.3-tc.0

2 years ago

1.0.1-tc.0

2 years ago

1.0.1-tc.1

2 years ago

1.0.1-tc.2

2 years ago

1.0.1-tc.3

2 years ago

1.0.1-tc.4

2 years ago

1.0.1-tc.5

2 years ago

1.0.1-tc.6

2 years ago

1.0.1-tc.7

2 years ago

1.0.1-tc.8

2 years ago

1.0.1-tc.9

2 years ago

0.4.2-tc.0

2 years ago

0.4.1-tc.5

3 years ago

0.4.1

3 years ago

0.4.2

3 years ago

0.4.1-tc.2

3 years ago

0.4.1-tc.1

3 years ago

0.4.1-tc.4

3 years ago

0.4.1-tc.3

3 years ago

0.4.1-tc.0

3 years ago

0.4.0

3 years ago

0.3.3-tc.8

3 years ago

0.3.3-tc.9

3 years ago

0.3.3-tc.4

3 years ago

0.3.3-tc.5

3 years ago

0.3.3-tc.6

3 years ago

0.3.3-tc.7

3 years ago

0.3.3-tc.1

3 years ago

0.3.3-tc.2

3 years ago

0.3.3-tc.3

3 years ago

0.3.3-tc.10

3 years ago

0.3.3-tc.0

3 years ago

0.3.2

3 years ago

0.3.2-tc.0

3 years ago

0.3.1

3 years ago

0.3.1-tc.0

3 years ago

0.3.0

3 years ago

0.2.2-tc.4

3 years ago

0.2.2-tc.5

3 years ago

0.2.2-tc.3

3 years ago

0.2.2-tc.6

3 years ago

0.2.2-tc.0

3 years ago

0.2.2-tc.1

3 years ago

0.2.2-tc.2

3 years ago

0.2.1-tc.0

3 years ago

0.2.1-tc.8

3 years ago

0.2.1-tc.5

3 years ago

0.2.1-tc.4

3 years ago

0.2.1-tc.3

3 years ago

0.2.1-tc.2

3 years ago

0.2.1-tc.1

3 years ago

0.2.1-tc.9

3 years ago

0.2.1-tc.21

3 years ago

0.2.1-tc.22

3 years ago

0.2.1-tc.20

3 years ago

0.2.1-tc.14

3 years ago

0.2.1-tc.15

3 years ago

0.2.1-tc.16

3 years ago

0.2.1-tc.17

3 years ago

0.2.1-tc.10

3 years ago

0.2.1-tc.11

3 years ago

0.2.1-tc.12

3 years ago

0.2.1-tc.13

3 years ago

0.2.1-tc.18

3 years ago

0.2.1-tc.19

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.1-tc.0

3 years ago

0.1.1-tc.1

3 years ago

0.1.1-tc.2

3 years ago

0.1.0

3 years ago

0.0.10-tc.20

3 years ago

0.0.10-tc.21

3 years ago

0.0.10-tc.22

3 years ago

0.0.10-tc.23

3 years ago

0.0.10-tc.3

3 years ago

0.0.10-tc.4

3 years ago

0.0.10-tc.1

3 years ago

0.0.10-tc.2

3 years ago

0.0.10-tc.0

3 years ago

0.0.10-tc.9

3 years ago

0.0.10-tc.7

3 years ago

0.0.10-tc.8

3 years ago

0.0.10-tc.5

3 years ago

0.0.10-tc.6

3 years ago

0.0.10-tc.10

3 years ago

0.0.10-tc.11

3 years ago

0.0.10-tc.12

3 years ago

0.0.10-tc.13

3 years ago

0.0.10-tc.14

3 years ago

0.0.10-tc.15

3 years ago

0.0.10-tc.16

3 years ago

0.0.10-tc.17

3 years ago

0.0.10-tc.18

3 years ago

0.0.10-tc.19

3 years ago

0.0.8

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.1

3 years ago

0.0.0

3 years ago