Merge pull request #55 from northword/rename-folder
Rename typings and build folder
This commit is contained in:
		
						commit
						d274334398
					
				@ -23,7 +23,7 @@
 | 
			
		||||
    "@typescript-eslint/no-non-null-assertion": "off"
 | 
			
		||||
  },
 | 
			
		||||
  "ignorePatterns": [
 | 
			
		||||
    "**/builds/**",
 | 
			
		||||
    "**/build/**",
 | 
			
		||||
    "**/dist/**",
 | 
			
		||||
    "**/node_modules/**",
 | 
			
		||||
    "**/scripts/**",
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -1,4 +1,4 @@
 | 
			
		||||
**/builds
 | 
			
		||||
**/build
 | 
			
		||||
node_modules
 | 
			
		||||
package-lock.json
 | 
			
		||||
zotero-cmd.json
 | 
			
		||||
@ -4,7 +4,7 @@
 | 
			
		||||
  },
 | 
			
		||||
  "github": {
 | 
			
		||||
    "release": true,
 | 
			
		||||
    "assets": ["builds/*.xpi"]
 | 
			
		||||
    "assets": ["build/*.xpi"]
 | 
			
		||||
  },
 | 
			
		||||
  "hooks": {
 | 
			
		||||
    "after:bump": "npm run build",
 | 
			
		||||
 | 
			
		||||
@ -87,7 +87,7 @@ function dateFormat(fmt, date) {
 | 
			
		||||
async function main() {
 | 
			
		||||
  const t = new Date();
 | 
			
		||||
  const buildTime = dateFormat("YYYY-mm-dd HH:MM:SS", t);
 | 
			
		||||
  const buildDir = "builds";
 | 
			
		||||
  const buildDir = "build";
 | 
			
		||||
 | 
			
		||||
  console.log(
 | 
			
		||||
    `[Build] BUILD_DIR=${buildDir}, VERSION=${version}, BUILD_TIME=${buildTime}, ENV=${[
 | 
			
		||||
 | 
			
		||||
@ -45,7 +45,7 @@ class Addon {
 | 
			
		||||
 *    and comment line 31:                      `ztoolkit: new ZoteroToolkit(),`.
 | 
			
		||||
 * 2. Uncomment this file's line 10:            `ztoolkit: MyToolkit;` in this file
 | 
			
		||||
 *    and comment line 11:                      `ztoolkit: ZoteroToolkit;`.
 | 
			
		||||
 * 3. Uncomment `./typing/global.d.ts` line 12: `declare const ztoolkit: import("../src/addon").MyToolkit;`
 | 
			
		||||
 * 3. Uncomment `../typings/global.d.ts` line 12: `declare const ztoolkit: import("../src/addon").MyToolkit;`
 | 
			
		||||
 *    and comment line 13:                      `declare const ztoolkit: import("zotero-plugin-toolkit").ZoteroToolkit;`.
 | 
			
		||||
 *
 | 
			
		||||
 * You can now add the modules under the `MyToolkit` class.
 | 
			
		||||
 | 
			
		||||
@ -7,6 +7,6 @@
 | 
			
		||||
    "skipLibCheck": true,
 | 
			
		||||
    "strict": true
 | 
			
		||||
  },
 | 
			
		||||
  "include": ["src", "typing", "node_modules/zotero-types"],
 | 
			
		||||
  "exclude": ["builds", "addon"]
 | 
			
		||||
  "include": ["src", "typings", "node_modules/zotero-types"],
 | 
			
		||||
  "exclude": ["build", "addon"]
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user