
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
create-apps-script
Advanced tools
A tool to create a new local development package for a Google Apps Script project.
- Project-Scaffolder | Config-Contraptionator | DevTool-Assimilator -
[](http://commitizen.github.io/cz-cli/)
Combines the most popular and effective development tools
🤖 Use Babel to write and compile modern Javascript to Google Apps Script's ECMA spec.
💬 Leverage ESLint to catch syntax errors and future bugs before deployment.
☕️ Use Mocha to follow Test-Driven-Development practices.
init a project:
- npm:
npm init gas-project [destination] [options]- yarn:
yarn create gas-project [destination] [options]
Note - Ifdestinationdefault is the current working directory
The output directory will have the following structure:
[target]/
- .babelrc
- .editorconfig
- .eslintrc
- .eslintignore
- .gitignore
- webpack.config.js
+ config/
- appsscript.json
- .clasp.json
[ ... ]
+ dist/
+ src/
- index.js
- main.js
| Name | Required | Default Value | Description |
|---|---|---|---|
target | No | Current working directory | Directory. Relative paths are resolved from the current working directory. Will create non-existent directory (but not recursively). |
.npmrc and .yarnrc values are resolvedThis program uses the 'rc' package internally to locate and utilize .npmrc / .yarnrc files/content at run time.
--
devDependencies
A series of prompts regarding field values for the generated package.json file follow.
Aside from these fields, the package file contains a number of predefined properties within
devDependencies. The majority of these modules are webpack loaders/plugins, eslint configurations/plugins, babel plugins, or@types/*definitions.Detail of the provided dependencies, their version, and a brief explanation of their necessity is provided in the table below.
devDependency package Version Purpose @babel/core ^7.1.5 Coming Soon @babel/plugin-proposal-class-properties ^7.1.0 Coming Soon @babel/plugin-proposal-object-rest-spread ^7.0.0 Coming Soon @babel/plugin-transform-member-expression-literals ^7.0.0 Coming Soon @babel/plugin-transform-object-assign ^7.0.0 Coming Soon @babel/plugin-transform-property-literals ^7.0.0 Coming Soon @babel/preset-env ^7.1.5 Coming Soon @google/clasp ^1.6.3 Coming Soon @types/google-apps-script ^0.0.31 Coming Soon babel-eslint ^10.0.1 Coming Soon babel-loader ^8.0.4 Coming Soon babel-plugin-add-module-exports ^1.0.0 Coming Soon babel-plugin-array-includes ^2.0.3 Coming Soon clean-webpack-plugin ^0.1.19 Coming Soon copy-webpack-plugin ^4.6.0 Coming Soon eslint ^5.9.0 Coming Soon eslint-loader ^2.1.1 Coming Soon eslint-plugin-googleappsscript ^1.0.1 Coming Soon gas-lib ^2.0.2 Coming Soon gas-webpack-plugin ^0.3.0 Coming Soon uglifyjs-webpack-plugin ^2.0.1 Coming Soon webpack ^4.25.1 Coming Soon webpack-cli ^3.1.2 Coming Soon
In order to provide an eslint configuration file for the environment, create-gas-project exposes a partial eslint configuration object, containing properties and values specific to the Apps Script environment & tooling.
-- Base ESlint Configuration Object --
{
"root" : true,
"plugins": [
"googleappsscript"
],
"globals": {
"Calendar": true,
"CalendarApp": true,
"CardService": true,
"Charts": true,
"ContactsApp": true,
"DataStudioApp": true,
"DocumentApp": true,
"Drive": true,
"DriveApp": true,
"FirebaseApp": true,
"FormApp": true,
"Gmail": true,
"GmailApp": true,
"GroupsApp": true,
"HtmlService": true,
"LanguageApp": true,
"MailApp": true,
"Maps": true,
"OAuth1": true,
"OAuth2": true,
"PropertiesService": true,
"SitesApp": true,
"Slides": true,
"SlidesApp": true,
"SpreadsheetApp": true
},
"env": {
“googleappsscript/googleappsscript” : true
},
"parser": "babel-eslint",
"parseroptions" : {
"sourceType" : "module"
}
}
In order to provide a complete and valid configuration to eslint, create-gas-project then adds an extends property to the object and prompts the user to select a value from the following:
Once confirmed to be valid, the resolved absolute path is then assigned as the value of the "``extends``" field for the project’s eslint configuration.
Project Eslint Configuration The following settings are required in the Apps Script project’s development directory eslint configuration to ensure all tooling works as expected:
If existing files, confirm modification
FAQs
A tool to create a new local development package for a Google Apps Script project.
We found that create-apps-script 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.