1.2.3 • Published 3 years ago

@section.io/sectionctl-helper v1.2.3

Weekly downloads
2
License
ISC
Repository
github
Last release
3 years ago

sectionctl-helper

FOSSA Status

This is a package that helps with the setup of a nodejs package that is going to be deployed on section.io's edge compute platform.

cd into the package that you want to deploy, then use this script.

Usage:

  static:
    Description
        This will install express.js and add scripts to run express and deploy your app.
 Usage
   $ sectionctl-helper static [build-dir] [options]
 Options
    --account, -a    Section.io account ID
    --app, -i    Section.io application ID
    Examples
     # With NPX
      $ npx "@section.io/sectionctl-helper" static build/ -a 1234 -i 5678
     # Or with it installed in your node_modules
      $ sectionctl-helper static build/ -a 1234 -i 5678
  scripts:
    Description:
        If you don't want to use express (ie if your app uses its own node.js webserver runtime), you can use this command to just add the scripts to your package.json.
      Usage
        $ sectionctl-helper scripts [options]
      Options
      --account, -a    Section.io account ID
      --app, -i    Section.io application ID
      Examples
       # With NPX
        $ npx "@section.io/sectionctl-helper" scripts -a 1234 -i 5678
       # Or with it installed in your node_modules
        $ sectionctl-helper scripts -a 1234 -i 5678

  help:
    Usage
      $ npx "@section.io/sectionctl-helper" help

Example (in this case it's a create-react-app, which uses the path build/ to compile production builds to.)

npx "@section.io/sectionctl-helper" static build/ --account 1234 --app 5678

For non-static apps that use their own node.js webserver runtime in production, ie: next.js, use the following:

npx "@section.io/sectionctl-helper" scripts --account 1234 --app 5678

Development of this script

to test the script in development, cd test then npm run test:static or npm run test:scripts and observe the contents of the test/ folder.

Publishing

git add .
git commit -m "my commit"
# an interactive terminal GUI will pop when you run the release script
npm run release
git push origin master

License

FOSSA Status

1.2.3

3 years ago

1.2.0

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago