Generate files and folder for google-apps-script project use TypeScript
npm install gasinitsudo bash
sudo npm install -g gasinit
` Usage
- Create new project
- cd to my project
> run command
`bash
gasinit
` `bash
% gasinit
? Enter a description for your project: (A sample test-npm project)
`
type description for your project and Enter > ### š ļø š ļø š ļø Install : dependencies listed in the package.json file.
`bash
npm install
` ---
File Structure
`plaintext
project/
āāā ./src
ā āāā ./config
ā ā āāā Config.ts
ā āāā ./helpers
ā ā āāā DateHelper.ts
ā āāā Code.ts
āāā LICENSE
āāā package-lock.json
āāā package.json
āāā README.md
āāā tsconfig.json
` Create
.gitignore
`gitignore
Node.js and npm
node_modules/
npm-debug.log
package-lock.json
yarn.lockTypeScript
dist/
build/
*.tsbuildinfoGoogle Apps Script
.gas/
**/appsscript.json
.clasp.json
.clasprc.json
creds.jsonJavaScript
*.log
*.min.js
*.min.js.mapIDE and Editor files
.vscode/
.idea/
*.suo
.ntvs
*.njsproj
*.sln
*.sw?Environment files
.env
.env.local
.env.development
.env.test
.env.productionmacOS files
.DS_StoreWindows files
Thumbs.dbLogs and databases
*.log
*.sqliteBuild and cache directories
.cache/
.temp/
.out/``