Issue 1
.claspignore not working at all. I have tried to ignored individual folders and files then I have changed concept into not ignore some files both way is not working
**/**
!*.gs
!appsscript.json
I found every files has been pushed from my terminal
鈹斺攢 node_modules/yargs/lib/usage.js
鈹斺攢 node_modules/yargs/lib/validation.js
鈹斺攢 node_modules/yargs/lib/yerror.js
鈹斺攢 node_modules/yargs/yargs.js
鈹斺攢 src/ActionHandlers.js
鈹斺攢 src/DeadlineMonitor.js
鈹斺攢 src/Main.js
鈹斺攢 src/MessageUtils.js
鈹斺攢 src/Scheduler.js
鈹斺攢 src/Settings.js
鈹斺攢 src/TimePeriod.js
鈹斺攢 src/Views.js
Pushed 1578 files.
Even it show files pushed files does not appearing in https://script.google.com/d/1FFfwocqXNQQvMky6gsN99j1cxDRkHDoQjdv5qxTKGXQA-_7QilXOpcqA/edit appscript project
If i run clasp push again and again, project appearing all files (ignored node_modules.. etc)
Sometimes appscript.json being updated but not Code.gs . Why google published this buggy development tool? Or am i missed anything. I'm trying this for two days
I also had the same problem.
Same here. I am using clasp 2.0.0 on a Windows 64-bit Pro.
I have resolved this situation with gulp script. Created script to build my code into dist folder. And added _npm run command_ in my package JSON for push my released code into clasp. It may be helpful until clasp issue resolved
My package JSON
``````````````
......
......
"scripts": {
"build": "gulp",
"push": "(cd ./dist && clasp push)",
"status": "(cd ./dist && clasp status)",
"watch": "gulp watch",
"all": "gulp all"
}
......
......
``````````````
I have resolved this situation with gulp script. Created script to build my code into dist folder. And added _npm run command_ in my package JSON for push my released code into clasp. It may be helpful until clasp issue resolved
My package JSON
...... ...... "scripts": { "build": "gulp", "push": "(cd ./dist && clasp push)", "status": "(cd ./dist && clasp status)", "watch": "gulp watch", "all": "gulp all" } ...... ......
@freddy-daniel Goog solution. Thanks. I tried using webpack but generated code doesn't work on App Script platform. Is this the reason that your're using gulp?
You can specify target directory by rootDir.
https://github.com/google/clasp#rootdir-optional
{
"scriptId": "XXXXXXXXXXXXXXXXXXXXX",
"rootDir": "dist/"
}
Perhaps the problem may be different,
In my environment rootDir is set up, but it seems that it is not reflected on script page side.
@kenchan0130 Thanks.
Maybe, This problem is caused by OS difference.
On Windows, since ignoreMatches is for example hoge\huga, I think that it has not been able to match properly.