Toggle navigation
P3X GitList Snapshot
GitHub
Repo
Changelog
To do
Releases
Themes
Change log
Loading change log ...
To do ...
Loading todo ...
browsing:
53d509e87c61167dc5a38e617310f543d806e6a6
Branches
master
Tags
1.1.129-287
1.1.113-149
1.1.108-143
1.1.95-138
1.1.92-119
1.0.35-18
1.0.13-14
Files
Commits
Log
Graph
Stats
angular-compile.git
Gruntfile.js
RSS
Git
Fetch origin
Download
ZIP
TAR
Clone
Raw
View
History
Clone
SSH
HTTPS
Blames found: 22
Mode: javascript
Binary: false
Hang on, we reloading big blames...
5c3da6ad
const utils = require('corifeus-utils'); const path = require('path') const fs = require('fs').promises
c605ea6f
5c3da6ad
module.exports = (grunt) => {
f46e4d96
5c3da6ad
const builder = require(`corifeus-builder`);
f46e4d96
const loader = new builder.loader(grunt);
5c3da6ad
loader.js({
f46e4d96
replacer: { type: 'p3x', npmio: true, },
292dec78
config: { htmlmin: { dist: { options: { // Target options removeComments: true, collapseWhitespace: true, minifyCSS: true, }, files: { './dist/angular-compile-workspace/index.html': './dist/angular-compile-workspace/index.html' } } }, }
f46e4d96
});
5c3da6ad
grunt.registerTask('publish', async function () { const done = this.async();
f46e4d96
5c3da6ad
try { await builder.utils.spawn({ grunt: grunt, gruntThis: this, }, { cmd: 'npm', args: [ 'run', 'build-lib', ] }); done() } catch (e) { done(e) }
f46e4d96
5c3da6ad
});
f46e4d96
a154a0f0
grunt.registerTask('build', async function () { const done = this.async(); try { await builder.utils.spawn({ grunt: grunt, gruntThis: this, }, { cmd: 'npm', args: [ 'run', 'build-app', ] }); done() } catch (e) { done(e) } });
f46e4d96
292dec78
const defaultTask = builder.config.task.build.js.concat(['cory-angular-hook-lib', 'cory-raw-npm-angular', 'build', 'htmlmin:dist'])
5c3da6ad
grunt.registerTask('default', defaultTask );
f46e4d96
09d923aa
}