UNPKG

ngx-store

Version:

Angular decorators to automagically keep variables in HTML5 LocalStorage, SessionStorage, cookies; injectable services for managing and listening to data changes and a bit more.

20 lines 904 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createConfigFile = void 0; const content = `var NGXSTORE_CONFIG = { prefix: 'bgi_', // default: 'ngx_' clearType: 'prefix', // default: 'prefix' mutateObjects: true, // default: true debugMode: false, // you can enable debug logs if you ever meet any bug to localize its source cookiesScope: '', // what you pass here will prepend base domain e.g. "." => .domain.com (all subdomains) cookiesCheckInterval: 0, // number in ms describing how often cookies should be checked for changes, 0 = disabled };`; function createConfigFile() { return (tree, _context) => { const fileName = './src/assets/js/ngx-store.config.js'; tree.create(fileName, content); return tree; }; } exports.createConfigFile = createConfigFile; //# sourceMappingURL=create-config-file.rule.js.map