Security News
GitHub Removes Malicious Pull Requests Targeting Open Source Repositories
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
stride-scripts
Advanced tools
Inspired by create-react-app, these scripts give you a great Stride addon development experience out of the box.
Inspired by create-react-app, these scripts give you a great Stride addon development and deployment experience out of the box.
# starts ngrok and express, transpiles your code in watch mode, opens browser
stride-scripts start
# compiles your whole addon into a /build folder
stride-scripts build
Main features
/installed
, /healthcheck
, etc) that can be overridden/src/routes/*.js
Dev features (stride-scripts start
)
baseUrl
field of your app-descriptor.json
nanos
Prod features (stride-scripts build
)
/src
and /public
folders into a single transpiled /build
directory, ready to be run.Just add stride-scripts
as a dependency in your package.json
and hook up the start/build scripts:
{
"name": "my-stride-addon",
"scripts": {
"start": "stride-scripts start",
"build": "stride-scripts build"
},
"dependencies": {
"stride-scripts": "^0.0.49"
}
}
The scripts expect your app to have the following structure:
- package.json
- src/
client/
index.js
routes/
hello-world.js
- public/
app-descriptor.json
That's it! Each route file should export a function that accepts the Express app object. You can do whatever you like with it:
export default app => {
app.get("/hello-world", (req, res) => {
res.send("Hello world");
});
};
To run in dev mode, use stride-scripts start
. This sets up an ngrok tunnel, an Express server, and webpack in watch mode.
Once you're ready to deploy, use stride-scripts build
to produce a /build
directory with everything you need to deploy.
Check out the /example
folder in this repo for a hello world example addon.
The Team Map for Stride addon also uses this.
This package is automatically released. Use fix(): ...
for a patch release, feat(): ...
for a minor release, and BREAKING CHANGE: ...
for a major release.
FAQs
Inspired by create-react-app, these scripts give you a great Stride addon development experience out of the box.
We found that stride-scripts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.