1
0
mirror of https://github.com/bobwen-dev/react-templates synced 2025-04-12 00:56:39 +02:00

move generated files to dist

This commit is contained in:
ido 2014-12-28 11:52:06 +02:00
parent 2abd385739
commit f3da1f73fe
8 changed files with 19 additions and 24 deletions

View File

@ -39,7 +39,7 @@ module.exports = function (grunt) {
browserify: {
rt: {
files: {
'playground/rt-main.browser.js': ['playground/rt-main.js']
'playground/dist/rt-main.browser.js': ['playground/rt-main.js']
},
options: {
transform: ['brfs'],
@ -77,7 +77,7 @@ module.exports = function (grunt) {
// sourceMapIn: 'example/coffeescript-sourcemap.js', // input sourcemap from a previous compilation
//},
files: {
'playground/rt-main.browser.min.js': ['playground/rt-main.browser.js'],
'playground/dist/rt-main.browser.min.js': ['playground/dist/rt-main.browser.js'],
'playground/libs/requirejs-plugins/text.min.js': ['playground/libs/requirejs-plugins/text.js'],
'playground/libs/requirejs-plugins/json.min.js': ['playground/libs/requirejs-plugins/json.js']
}

View File

@ -47296,7 +47296,7 @@ var tagTemplate = _.template('<%= name %>.apply(this,_.flatten([<%= props %><%=
var simpleTagTemplateCreateElement = _.template('React.createElement(<%= name %>,<%= props %><%= children %>)');
var tagTemplateCreateElement = _.template('React.createElement.apply(this,_.flatten([<%= name %>,<%= props %><%= children %>]))');
var commentTemplate = _.template(' /* <%= data %> */ ');
var templateAMDTemplate = _.template("/*eslint new-cap:0,no-unused-vars:0*/\ndefine([<%= requirePaths %>], function (<%= requireNames %>) {\n'use strict';\n <%= injectedFunctions %>\nreturn function(){ return <%= body %>};\n});");
var templateAMDTemplate = _.template("define([<%= requirePaths %>], function (<%= requireNames %>) {\n'use strict';\n <%= injectedFunctions %>\nreturn function(){ return <%= body %>};\n});");
var templateCommonJSTemplate = _.template("<%= vars %>\n\n'use strict';\n <%= injectedFunctions %>\nmodule.exports = function(){ return <%= body %>};\n");
var templatePJSTemplate = _.template('var <%= name %> = function () {\n' +
'<%= injectedFunctions %>\n' +
@ -47309,7 +47309,7 @@ var classSetProp = 'rt-class';
var scopeProp = 'rt-scope';
var propsProp = 'rt-props';
var defaultOptions = {commonjs: false, version: false, force: false, format: 'stylish', targetVersion: '0.12.1'};
var defaultOptions = {modules: 'amd', version: false, force: false, format: 'stylish', targetVersion: '0.12.1'};
function shouldUseCreateElement(context) {
switch (context.options.targetVersion) {

File diff suppressed because one or more lines are too long

View File

@ -1,4 +1,3 @@
/*eslint new-cap:0,no-unused-vars:0*/
define([
'react/addons',
'lodash',

View File

@ -1,4 +1,3 @@
/*eslint new-cap:0,no-unused-vars:0*/
define([
'react/addons',
'lodash',

View File

@ -1,4 +1,3 @@
/*eslint new-cap:0,no-unused-vars:0*/
define([
'react/addons',
'lodash',

View File

@ -1,4 +1,3 @@
/*eslint new-cap:0,no-unused-vars:0*/
define([
'react/addons',
'lodash',

View File

@ -1,4 +1,3 @@
/*eslint new-cap:0,no-unused-vars:0*/
define([
'react/addons',
'lodash',