Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
a7374ddda3ea32905d46c1693604c7aebe4b505b
Branches
master
Files
Commits
Log
Graph
Stats
angular-http-cache-interceptor.git
Gruntfile.js
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 13
Mode: javascript
Binary: false
Hang on, we reloading big blames...
ec938d9b
const utils = require('corifeus-utils');
78796470
const path = require('path') const fs = require('fs').promises
ec938d9b
module.exports = (grunt) => {
78796470
const builder = require(`corifeus-builder`); const loader = new builder.loader(grunt); loader.js({ replacer: { type: 'p3x', npmio: true, },
1b717405
config: { htmlmin: { dist: { options: { // Target options removeComments: true, collapseWhitespace: true, minifyCSS: true, }, files: { './dist/workspace/index.html': './dist/workspace/index.html' } } }, }
78796470
}); grunt.registerTask('publish', async function () { const done = this.async(); try { await builder.utils.spawn({ grunt: grunt, gruntThis: this, }, { cmd: 'npm', args: [ 'run', 'build-lib', ] }); done() } catch (e) { done(e) } });
81262c82
grunt.registerTask('build', async function () { const done = this.async();
a5c92a57
81262c82
try { await builder.utils.spawn({ grunt: grunt, gruntThis: this, }, { cmd: 'npm', args: [ 'run', 'build-app', ] }); done() } catch (e) { done(e) } });
a5c92a57
1b717405
const defaultTask = builder.config.task.build.js.concat(['cory-angular-hook-lib', 'cory-raw-npm-angular', 'build', 'htmlmin:dist'])
81262c82
grunt.registerTask('default', defaultTask);
ec938d9b
}